Android Question Keep scrollview on rotation

omidaghakhani1368

Well-Known Member
Licensed User
Hi.
I have a scrollview with many item that load into it.
Ok
Now if i rotate device and my scrollview again load and it is bad.
may be i use random access file for save scrollview and load from it for prevent again load?
 

Peter Simpson

Expert
Licensed User
Hello,
Don't allow the orientation of the device, set the apps orientation to landscape or portrait so that the ScrollView does not get reset.
B4X:
#Region  Project Attributes
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: landscape
#End Region
 

omidaghakhani1368

Well-Known Member
Licensed User
Hello,
Don't allow the orientation of the device, set the apps orientation to landscape or portrait so that the ScrollView does not get reset.
B4X:
#Region  Project Attributes
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: landscape
#End Region
I know.But i like to have a portrait and landscape state in my app.
 
Top