Android Question Keep scrollview on rotation

Discussion in 'Android Questions' started by omidaghakhani1368, May 8, 2015.

  1. omidaghakhani1368

    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?
     
  2. Peter Simpson

    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.
    Code:
    #Region  Project Attributes
        
    'SupportedOrientations possible values: unspecified, landscape or portrait.
        #SupportedOrientations: landscape
    #End Region
     
  3. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    I know.But i like to have a portrait and landscape state in my app.
     
  4. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice