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

2012-01-25 Thread James Lavery
Hi Andreas, Thanks for the tip - yes this looks a lot cleaner and I agree about 'less being more'. James -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Layout-Activity-with-ListView-and-TextView-below-it-tp5149952p5429728.html Sent from the Mono for Android mailin

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

2012-01-23 Thread subsembly
A more optimized layout serving the same purpose would be: http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > Less nesting means faster layout. Also I would prefer to u

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

2012-01-17 Thread James Lavery
Thanks - that's exactly what I wanted! I'd tried /almost/ exactly what you've posted. The crucial parameter was /layout_weight/ which is what I was missing. James -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Layout-Activity-with-ListView-and-TextView-below-it-t

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

2012-01-17 Thread James Lavery
Hi Chris, Thanks a lot - I'd looked at gravity, and it looked like what I might want but I wasn't sure. I'll look further into it! James -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Re-Layout-Activity-with-ListView-and-TextView-below-it-tp5152064p5153230.html Se

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

2012-01-17 Thread riteshsahu
Something like this should work in any resolution: http://schemas.android.com/apk/res/android"; android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > The Listvie

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

2012-01-17 Thread Tossing, Chris
James, Do a google search using a term like 'android gravity fill vertical'. It is possible to have a view auto-fill the remaining space. The attribute you need to use either 'gravity' or 'layout_gravity', I believe. Thank you, Chris The details of this company are as follows: G4S Technolog

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

2012-01-17 Thread James Lavery
Hi Ben, Thanks a lot - that's what I needed to know, that I need to code for each layout/density. Other layout systems have attributes which allow one to specify that an item should fill remaining space, and I thought Android would have this. No problem! Thanks for your help. James -- View this

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

2012-01-16 Thread Benjamin Baldacci
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

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

2012-01-16 Thread James Lavery
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

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

2012-01-16 Thread Benjamin Baldacci
I think you could use a RelativeLayout. Put the Textiew on Bottom and the ListView OnTop of the TextView. There is maybe a better solution (because I didn't try it) but the first thing I could try is this :) -- Benjamin Baldacci linkedin On Mon, Jan