diff options
author | Danesh M <daneshm90@gmail.com> | 2016-02-03 16:07:43 -0800 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2016-02-03 16:21:56 -0800 |
commit | 1f31bd847e3871b0e4571db01ffa77be0700b15e (patch) | |
tree | 1a3977368bcfe050ee44a834d213939fd54221cd /res/layout | |
parent | eaa16db73c61aa3e1f32aacb740492456b59f4ac (diff) | |
download | packages_apps_Settings-1f31bd847e3871b0e4571db01ffa77be0700b15e.zip packages_apps_Settings-1f31bd847e3871b0e4571db01ffa77be0700b15e.tar.gz packages_apps_Settings-1f31bd847e3871b0e4571db01ffa77be0700b15e.tar.bz2 |
Settings : Add radio button / selection states for default SIMs
CRACKLING-928
Change-Id: I786d4d921987d483cd0a5fa77976a0b8047d06db
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/select_account_list_item.xml | 60 |
1 files changed, 36 insertions, 24 deletions
diff --git a/res/layout/select_account_list_item.xml b/res/layout/select_account_list_item.xml index 3587e55..c3d4e3a 100644 --- a/res/layout/select_account_list_item.xml +++ b/res/layout/select_account_list_item.xml @@ -16,42 +16,54 @@ <!-- Layout of a single item for displaying sim cards. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?android:attr/selectableItemBackground" > + android:orientation="horizontal" + android:gravity="center_vertical" + android:paddingStart="12dp" + android:paddingEnd="12dp" + android:minHeight="?android:attr/listPreferredItemHeightSmall" + android:background="@android:color/transparent"> <ImageView android:id="@+id/icon" android:layout_width="48dp" android:layout_height="48dp" android:scaleType="center" /> - <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="vertical" - android:layout_marginStart="15dip" - android:layout_marginEnd="6dip" - android:layout_marginTop="6dip" - android:layout_marginBottom="6dip" + <LinearLayout + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_width="0dp" - android:layout_weight="1" > + android:layout_weight="1" + android:orientation="vertical" + android:gravity="center_vertical"> + <TextView android:id="@+id/title" - android:textAppearance="?android:attr/textAppearanceLarge" - android:gravity="start|center_vertical" - android:layout_marginLeft="8dp" - android:layout_width="match_parent" + android:layout_width="wrap_content" android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceListItem" + android:textColor="?android:attr/textColorAlertDialogListItem" + android:gravity="center_vertical|start" android:singleLine="true" - android:ellipsize="marquee" - android:fadingEdge="horizontal" /> + android:ellipsize="marquee" /> + <TextView android:id="@+id/summary" - android:textAppearance="?android:attr/textAppearanceSmall" - android:gravity="start|center_vertical" - android:layout_marginLeft="8dp" - android:layout_width="match_parent" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_below="@id/title" - android:textColor="?android:attr/textColorSecondary" - android:layout_alignStart="@id/title" /> + android:textAppearance="?android:attr/textAppearanceListItemSecondary" + android:textColor="?android:attr/textColorAlertDialogListItem" + android:gravity="center_vertical|start" + android:singleLine="true" + android:ellipsize="marquee" /> + </LinearLayout> -</LinearLayout> + + <RadioButton + android:id="@+id/radio" + android:layout_width="35dip" + android:layout_height="wrap_content" + android:paddingEnd="12dip" + android:gravity="center_vertical" + android:focusable="false" + android:clickable="false" /> + +</LinearLayout>
\ No newline at end of file |