I think I have a hint as to what is going on.
 
Basically my first focussable item is not right on top.
So when the layout changes, the current focussable item is brought into 
view. During this calculation, the scroll is set.
That is why my top portion of the layout is scrolled out.
 
How do I prevent this?
 

On Thursday, March 8, 2012 4:51:52 PM UTC+5:30, Put_tiMe wrote:

> I have a scroll view activity under which I have lot's of UI objects.
>  
> Now let's say when the activity starts up, the view is right on top.
>  
> Now if I change the orientation of the phone, I observe that my activity 
> has automatically scrolled to a different position.
> I don't want the scroll position to change, i.e. I want to see 
> approximately the same content.
>  
> I tried fixing it by saving the scroll position in the 
> 'onSaveInstanceState' and then restoring it in 'onCreate'.
> But didn't work.
>  
> How do I fix this?
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to