From 15f09d77ffd14b53d17b6fb27b921c740f625846 Mon Sep 17 00:00:00 2001 From: Jin Cao Date: Fri, 8 Aug 2014 13:27:34 -0700 Subject: [Quantum compose] custom anchor for to Add custom anchor for To field so the popup will have the full width of the field. b/16851158 Change-Id: I54cbd601d46c8d2fb3ee37956fb560dcb31905f9 --- res/layout/compose_recipients.xml | 27 ++++++++++++++--------- src/com/android/mail/compose/ComposeActivity.java | 1 + 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/res/layout/compose_recipients.xml b/res/layout/compose_recipients.xml index b10337527..b265318f5 100644 --- a/res/layout/compose_recipients.xml +++ b/res/layout/compose_recipients.xml @@ -38,17 +38,24 @@ android:text="@string/to" style="@style/ComposeHeading" /> - + + + + + - + diff --git a/src/com/android/mail/compose/ComposeActivity.java b/src/com/android/mail/compose/ComposeActivity.java index cf50fbc87..df90f724a 100644 --- a/src/com/android/mail/compose/ComposeActivity.java +++ b/src/com/android/mail/compose/ComposeActivity.java @@ -1295,6 +1295,7 @@ public class ComposeActivity extends ActionBarActivity mAttachmentsView = (AttachmentsView)findViewById(R.id.attachments); mTo = (RecipientEditTextView) findViewById(R.id.to); initializeRecipientEditTextView(mTo); + mTo.setAlternatePopupAnchor(findViewById(R.id.compose_to_dropdown_anchor)); mCc = (RecipientEditTextView) findViewById(R.id.cc); initializeRecipientEditTextView(mCc); mBcc = (RecipientEditTextView) findViewById(R.id.bcc); -- cgit v1.2.3