The home screen uses a custom layout manager for this, and this is probably a situation where a custom layout manager makes sense since there isn't a way I can think of to express such a layout with the standard classes.
And you'll need some kind of custom container anyway to get per-page flinging like the home screen, because this is not how scroll views work. On Sun, Aug 30, 2009 at 11:41 AM, smallbug <[email protected]> wrote: > > Hi, > > I am using a HorizontalScrollView to contain and scroll 3 child > widgets, each of which is either an ImageView or a custom widget. What > I'd like to achieve is something like homescreen, where each child > widget filling up the whole width of the display and the user is able > to switch to the other widget by flickering horizontally. I am having > a hard time figuring out what properties I should assign to each of > the child widget in order to have them fill the parent container. I > get it working if I hard coded the width for each child but I'd like > them to be able to fit to any screen resolutions, as the current > Android homescreen does. > > Here is the xml (pseudo like) > > HorizontalView -> LinearLayout -> children widgets > > Hope this makes sense. Thanks! > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

