[mono-android] Layout - Activity with ListView and TextView below it

Benjamin Baldacci benjamin.baldacci at gmail.com
Tue Jan 17 07:39:09 UTC 2012


To have the same size (for a button for exemple) you have to use dp instead
of px. Then your UI does not depend of the density.

But if you try to change the resolution, you'll find that your view is too
long compare to the screen (or too small).
To do this you have to create different layouts for different screen size
(look at this link to understand
http://developer.android.com/resources/dashboard/screens.html)

And here is a sample for the recent android versions:
http://developer.android.com/resources/samples/MultiResolution/index.html.
And here is the documentation:
http://developer.android.com/guide/practices/screens_support.html#qualifiers
.

Hope it'll help,

--
Benjamin Baldacci linkedin <http://www.linkedin.com/in/benjaminbaldacci>


On Mon, Jan 16, 2012 at 23:48, James Lavery <james at microsec.co.uk> wrote:

> Hi Ben,
> Thanks - that positions them correctly relative to each other, but are
> there
> width/height (well, specifically height) attributes which I can use to make
> the ListView fill the space left by the TextView, or do I have to specify
> the height specifically, in px, to do this?
>
> James
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Layout-Activity-with-ListView-and-TextView-below-it-tp5149952p5150113.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120117/59cb4eb6/attachment.html>


More information about the Monodroid mailing list