summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-11-03 17:08:47 -0800
committerNancy Chen <nancychen@google.com>2014-11-04 11:59:15 -0800
commit75b25b5975be11e1d609f16be0653ef7821f8ae8 (patch)
treeb7adcb67dbe822ed08676e39013d8bdbd7055749 /res/layout
parent3ca0571e873c6e5e109f1807c2a511edec31867a (diff)
downloadandroid_packages_apps_ContactsCommon-75b25b5975be11e1d609f16be0653ef7821f8ae8.tar.gz
android_packages_apps_ContactsCommon-75b25b5975be11e1d609f16be0653ef7821f8ae8.tar.bz2
android_packages_apps_ContactsCommon-75b25b5975be11e1d609f16be0653ef7821f8ae8.zip
Modify Select Account Dialog to align with UI mocks.
+ Additional line for the phone number + Support optional title (for phone calls it will be titled "Call With") + Tweaks to make it more visually appealing. Bug: 18204058 Change-Id: Ie2c0fce0b20cf5e889cb17254bc6462ed4fb6438
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/default_account_checkbox.xml16
-rw-r--r--res/layout/select_account_list_item.xml23
2 files changed, 26 insertions, 13 deletions
diff --git a/res/layout/default_account_checkbox.xml b/res/layout/default_account_checkbox.xml
index 15180761..9a1a4504 100644
--- a/res/layout/default_account_checkbox.xml
+++ b/res/layout/default_account_checkbox.xml
@@ -18,21 +18,19 @@
android:id="@+id/default_account_checkbox_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginTop="8dip"
+ android:padding="4dp"
android:orientation="vertical">
- <!-- Dummy to enable right-justification of checkbox -->
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"/>
<CheckBox
android:id="@+id/default_account_checkbox_view"
+ android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingStart="20dip"
- android:layout_marginLeft="20dip"
+ android:paddingStart="15dip"
+ android:layout_marginLeft="13dip"
android:layout_marginBottom="20dip"
android:gravity="center"
- android:textSize="14sp"
android:textAlignment="viewStart"
- android:text="@string/set_default_account"/>
+ android:text="@string/set_default_account"
+ android:textColor="@color/dialtacts_secondary_text_color"
+ />
</LinearLayout> \ No newline at end of file
diff --git a/res/layout/select_account_list_item.xml b/res/layout/select_account_list_item.xml
index 1999fced..39a5af05 100644
--- a/res/layout/select_account_list_item.xml
+++ b/res/layout/select_account_list_item.xml
@@ -20,7 +20,7 @@
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="4dp" >
+ android:padding="8dp" >
<ImageView android:id="@+id/icon"
android:layout_width="48dp"
@@ -28,11 +28,26 @@
android:tint="@color/dialtacts_secondary_text_color"
android:scaleType="center" />
- <TextView android:id="@+id/text"
- android:textAppearance="?android:attr/textAppearanceMedium"
+ <LinearLayout
+ android:id="@+id/text"
android:gravity="start|center_vertical"
android:layout_marginLeft="8dp"
android:layout_width="0dp"
android:layout_weight="1"
- android:layout_height="match_parent" />
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+ <TextView android:id="@+id/label"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="@color/dialtacts_primary_text_color"
+ android:includeFontPadding="false"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+ <TextView android:id="@+id/number"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:includeFontPadding="false"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:visibility="gone" />
+ </LinearLayout>
+
</view>