Hi Mike,
It appears you may be running out of room. RelativeLayout is drawing
your first LinearLayout and then placing the other on top. My
understanding is that Relative Layout (and FrameLayout) maintain a Z-
ordering of children essentially each child is on a layer above the
previous and will obscure previous children unless you tell it to do
otherwise. You got lucky with your portrait layout.
You could consider trying the following :
1/ Declare your button bar linear layout aligning it with the parent
bottom.
2/ Declare your other LinearLayout next aligning it's top with the
parent and bottom with the button bar.
3/ make this second linear layout scrollable with
android:isScrollContainer="true"
http://developer.android.com/intl/de/reference/android/view/View.html#attr_android:isScrollContainer
The idea is that your top linear layout will scroll if there is
insufficient room and your layout will be more flexible to cope with
more devices.
If this doesn't work try a ScrollView.
http://developer.android.com/intl/de/reference/android/widget/ScrollView.html
Don't let any of this put you off RelativeLayout. They are extremely
powerful and help to reduce the depth/levels of your view hierarchy.
In fact, you might consider using a second relative layout which would
allow you to get rid of all those nested LinearLayouts with one
Relative Layout. They are trickier but definitely worth it.
http://developer.android.com/intl/de/resources/articles/layout-tricks-efficiency.html
Best Regards,
Geoff
--
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