The simplest way is to just use a vertical linear layout, and for the part that you want to have stretch set the height to 0 and weight to 1.
On Wed, Sep 16, 2009 at 4:10 PM, Mihai Dumitrache <[email protected]> wrote: > > Hello, > My application has some buttons in the bottom part of activity layout, > almost the same like iphone has on ipod app for example. > I would like to create my layout so that it will self adjust on > different screen sizes. > For example if the content in my layout has height = 400dip and the > menu bar in the bottom has height = 100 dip, on every screen size > (240*320, 320*480 etc.) i would like the menu bar to stay at the > bottom so : > > - on screen size 240*320 > -> 100dip - for menubar > -> 220dip - for content => it remains 180 dip to show, so this > content area should be in some kind of a scrollview so that i can view > 400dip in only 220dip. > > I have tested different possibilities, with relativelayout so that the > menu bar could stay on bottom, but i could not put the scroll view on > top so that the scroll appears only on small screen sizes. > > This is so sick, how do you build your layouts for different screen > sizes ? > 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 -~----------~----~----~----~------~----~------~--~---

