On Mon, Mar 26, 2012 at 9:18 PM, adev <[email protected]> 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.
>

http://developer.android.com/guide/practices/screens_support.html


> 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 <http://sites.google.com/site/rezmobileapps/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 [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