I am making an app which uses a ScrollView to display a bunch of images. When switching to horizontal orientation the view will be replaced with a HorizontalScrollView. I want to preseve the scroll position after orientation change, and I tried to save the position in onSaveInstanceState/onRestoreInstanceState. However it appears the ScrollView is not fully rendered at onRestoreInstanceState (scrollView.getHeight() returns 0 at this point), so calling scrollView.scrollTo(<saved_position>) has no effect.
Does anyone know how to do this properly? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.