I have a ListView that contains several elements, one of which is
another ListView.
All elements of the outer ListView except for the inner ListView
respect their layout params.
The inner ListView respects margin left/right, but toally ignores
layout_gravity and layout_width.
Ie consumes the entire row sans the margins and is left justified.
I'd really like to have the inner ListView of the right hand side of
th screen.
I suspect its something obvious I am doing, but after several hours I
can't see it.
Any one got any ideas?
Here is the lauout for the inner ListView
<ListView android:id="@+id/rawContactsList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5px"
android:layout_marginRight="3px"
android:layout_gravity="right"
/>
Here is the config for the
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:id="@+id/test_raw_contact_entry"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
>
<TextView android:id="@+id/contactId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView android:id="@+id/rawContactId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
--
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