summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJin Cao <jinyan@google.com>2014-08-10 13:10:01 -0700
committerJin Cao <jinyan@google.com>2014-08-10 13:10:01 -0700
commit7bb942b4402a8d24904baf637db98784c3d79983 (patch)
tree778d82715de59779a81e6db8d71a27adfd75fc08 /res
parent52d9a8d4990a1e9c765e24d715a29eea51aad051 (diff)
downloadandroid_packages_apps_UnifiedEmail-7bb942b4402a8d24904baf637db98784c3d79983.tar.gz
android_packages_apps_UnifiedEmail-7bb942b4402a8d24904baf637db98784c3d79983.tar.bz2
android_packages_apps_UnifiedEmail-7bb942b4402a8d24904baf637db98784c3d79983.zip
Restyle alt/single dropdown to redline
b/16851158 Change-Id: I2d5fb3ce14d320aa3fe747500aad435ee386a10c
Diffstat (limited to 'res')
-rw-r--r--res/layout/compose_recipients.xml44
-rw-r--r--res/values-ldrtl/styles-ldrtl.xml4
-rw-r--r--res/values/styles.xml4
3 files changed, 38 insertions, 14 deletions
diff --git a/res/layout/compose_recipients.xml b/res/layout/compose_recipients.xml
index b265318f5..3c3a0e4b4 100644
--- a/res/layout/compose_recipients.xml
+++ b/res/layout/compose_recipients.xml
@@ -39,21 +39,37 @@
style="@style/ComposeHeading" />
<LinearLayout
- android:id="@+id/compose_to_dropdown_anchor"
android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <com.android.ex.chips.RecipientEditTextView
- android:id="@+id/to"
- android:contentDescription="@string/to"
- android:dropDownAnchor="@id/to_content"
- style="@style/ToRecipientEditTextViewStyle" />
-
- <ImageView
- android:id="@+id/add_cc_bcc"
- android:src="@drawable/ic_expand_more_24dp"
- android:contentDescription="@string/add_cc_label"
- style="@style/ComposeFieldButton" />
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <com.android.ex.chips.RecipientEditTextView
+ android:id="@+id/to"
+ android:contentDescription="@string/to"
+ android:dropDownAnchor="@id/to_content"
+ style="@style/ToRecipientEditTextViewStyle" />
+
+ <ImageView
+ android:id="@+id/add_cc_bcc"
+ android:src="@drawable/ic_expand_more_24dp"
+ android:contentDescription="@string/add_cc_label"
+ style="@style/ComposeFieldButton" />
+
+ </LinearLayout>
+
+ <!--
+ 0dp high space just so the anchor has appropriate right padding since it was
+ removed for To field to compensate the show cc/bcc button
+ -->
+ <Space
+ android:id="@+id/compose_to_dropdown_anchor"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ style="@style/ComposeToDropdownAnchor" />
</LinearLayout>
diff --git a/res/values-ldrtl/styles-ldrtl.xml b/res/values-ldrtl/styles-ldrtl.xml
index 93c9ea771..6416c5111 100644
--- a/res/values-ldrtl/styles-ldrtl.xml
+++ b/res/values-ldrtl/styles-ldrtl.xml
@@ -362,6 +362,10 @@
<item name="android:paddingEnd">@dimen/compose_content_end_padding</item>
</style>
+ <style name="ComposeToDropdownAnchor">
+ <item name="android:layout_marginEnd">@dimen/compose_content_end_padding</item>
+ </style>
+
<style name="ComposeFieldButton" parent="@style/BaseComposeFieldButton">
<item name="android:layout_marginStart">@dimen/compose_header_btn_padding</item>
</style>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 91820d08b..20da0c234 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -112,6 +112,10 @@
<item name="android:paddingRight">@dimen/compose_content_end_padding</item>
</style>
+ <style name="ComposeToDropdownAnchor">
+ <item name="android:layout_marginRight">@dimen/compose_content_end_padding</item>
+ </style>
+
<style name="BaseComposeFieldButton">
<item name="android:layout_width">56dp</item>
<item name="android:layout_height">@dimen/compose_header_min_height</item>