diff --git a/res/layout-v14/address_text_view.xml b/res/layout-v14/address_text_view.xml
index f261455f2..f66b90cae 100644
--- a/res/layout-v14/address_text_view.xml
+++ b/res/layout-v14/address_text_view.xml
@@ -14,6 +14,18 @@
limitations under the License.
-->
-
\ No newline at end of file
+ style="@style/ComposeFieldLinearLayout"
+ android:layout_alignParentTop="true">
+
+
+
+
+
+
\ No newline at end of file
diff --git a/res/layout/address_text_view.xml b/res/layout/address_text_view.xml
index ccae747ea..9abca3a10 100644
--- a/res/layout/address_text_view.xml
+++ b/res/layout/address_text_view.xml
@@ -14,10 +14,22 @@
limitations under the License.
-->
-
\ No newline at end of file
+ style="@style/ComposeFieldLinearLayout"
+ android:layout_alignParentTop="true">
+
+
+
+
+
+
\ No newline at end of file
diff --git a/res/layout/message_compose.xml b/res/layout/message_compose.xml
index abb53509b..d4b3d51a2 100644
--- a/res/layout/message_compose.xml
+++ b/res/layout/message_compose.xml
@@ -39,14 +39,15 @@
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorSecondary"
/>
-
-
+
-
+ android:layout_marginRight="6dip">
+
+
-
+
+
-
+
+ android:layout_marginLeft="6dip"
+ android:layout_marginRight="6dip"/>
#3cb8e6
#ffff66
+
+
+ #aaaaaa
diff --git a/res/values/styles.xml b/res/values/styles.xml
index fd71530a0..874bd2489 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -195,6 +195,27 @@
- 48dip
+
+
+
diff --git a/src/com/android/email/activity/MessageCompose.java b/src/com/android/email/activity/MessageCompose.java
index 727b90e72..f7c6b8438 100644
--- a/src/com/android/email/activity/MessageCompose.java
+++ b/src/com/android/email/activity/MessageCompose.java
@@ -662,14 +662,30 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
};
private void initViews() {
- mToView = UiUtilities.getView(this, R.id.to);
- mCcView = UiUtilities.getView(this, R.id.cc);
- mBccView = UiUtilities.getView(this, R.id.bcc);
- // add hints only when no labels exist
- if (UiUtilities.getViewOrNull(this, R.id.to_label) == null) {
- mToView.setHint(R.string.message_compose_to_hint);
- mCcView.setHint(R.string.message_compose_cc_hint);
- mBccView.setHint(R.string.message_compose_bcc_hint);
+ ViewGroup toParent = UiUtilities.getViewOrNull(this, R.id.to_content);
+ if (toParent != null) {
+ mToView = (MultiAutoCompleteTextView) toParent.findViewById(R.id.address_field);
+ ((TextView) toParent.findViewById(R.id.label))
+ .setText(R.string.message_compose_to_hint);
+ ViewGroup ccParent, bccParent;
+ ccParent = (ViewGroup) findViewById(R.id.cc_content);
+ mCcView = (MultiAutoCompleteTextView) ccParent.findViewById(R.id.address_field);
+ ((TextView) ccParent.findViewById(R.id.label))
+ .setText(R.string.message_compose_cc_hint);
+ bccParent = (ViewGroup) findViewById(R.id.bcc_content);
+ mBccView = (MultiAutoCompleteTextView) bccParent.findViewById(R.id.address_field);
+ ((TextView) bccParent.findViewById(R.id.label))
+ .setText(R.string.message_compose_bcc_hint);
+ } else {
+ mToView = UiUtilities.getView(this, R.id.to);
+ mCcView = UiUtilities.getView(this, R.id.cc);
+ mBccView = UiUtilities.getView(this, R.id.bcc);
+ // add hints only when no labels exist
+ if (UiUtilities.getViewOrNull(this, R.id.to_label) == null) {
+ mToView.setHint(R.string.message_compose_to_hint);
+ mCcView.setHint(R.string.message_compose_cc_hint);
+ mBccView.setHint(R.string.message_compose_bcc_hint);
+ }
}
mFromView = UiUtilities.getView(this, R.id.from);