diff options
author | Jean Chalard <jchalard@google.com> | 2012-05-09 10:12:46 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-05-09 10:12:46 -0700 |
commit | 83dd99cdd47c727b5fe48515fc6664eebafb157d (patch) | |
tree | 38c9e3be1aee7b8c8ff5ea39674edae814f3264a /res | |
parent | 2c8c9eefad3850b2a3ebe67a6d7b59d60a13e40e (diff) | |
parent | 87b605a3698bf6640b5fc02c22add921877b3f35 (diff) | |
download | packages_apps_settings-83dd99cdd47c727b5fe48515fc6664eebafb157d.zip packages_apps_settings-83dd99cdd47c727b5fe48515fc6664eebafb157d.tar.gz packages_apps_settings-83dd99cdd47c727b5fe48515fc6664eebafb157d.tar.bz2 |
am 87b605a3: am 99e509cc: Rework the list interface
* commit '87b605a3698bf6640b5fc02c22add921877b3f35':
Rework the list interface
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/user_dictionary_item.xml | 66 |
1 files changed, 34 insertions, 32 deletions
diff --git a/res/layout/user_dictionary_item.xml b/res/layout/user_dictionary_item.xml index aaf3cbd..749986e 100644 --- a/res/layout/user_dictionary_item.xml +++ b/res/layout/user_dictionary_item.xml @@ -15,36 +15,38 @@ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="horizontal"> - - <TextView - android:id="@android:id/text1" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="1" - android:textAppearance="?android:attr/textAppearanceMedium" - android:gravity="center_vertical" - android:paddingLeft="16dip" - android:minHeight="?android:attr/listPreferredItemHeight"/> - - <ImageView - android:id="@+id/divider" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_gravity="center" - android:layout_marginLeft="8dip" - android:src="@drawable/nav_divider" - /> - - <ImageView - android:id="@+id/delete_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:padding="8dip" - android:src="@drawable/ic_item_delete" - android:background="?android:attr/selectableItemBackground" - /> + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:gravity="center_vertical" + android:paddingRight="?android:attr/scrollbarSize" + android:background="?android:attr/selectableItemBackground" > + + <RelativeLayout android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="15dip" + android:layout_marginRight="6dip" + android:layout_marginTop="6dip" + android:layout_marginBottom="6dip" + android:layout_weight="1"> + + <TextView android:id="@+android:id/text1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:ellipsize="marquee" + android:fadingEdge="horizontal" /> + + <TextView android:id="@+android:id/text2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@android:id/text1" + android:layout_alignLeft="@android:id/text1" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondary" + android:maxLines="1" /> + + </RelativeLayout> + </LinearLayout> |