Saturday, March 31, 2012

Re: [android-developers] layout height relative to screen height

On Mon, Mar 26, 2012 at 9:18 PM, adev <enricong@gmail.com> wrote:
I would like to set the height of my layout items based on the height
of the screen to allow it to scale to screens of different resolution
and in landscape.

 
my current layout structure uses a relativelayout with linearlayout
childeren.
one of the linear layouts consists of a table layout which I would
like to always take approx 50% of the screen.

Is there a simple way to do this?

Use the Weight property of LinearLayouts.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate