Allow tablet to use different styles than phone for chips fields.
Fixes bug:5390583 To,CC & BCC field titles are aligned middle of the row in Email
Change-Id: Ia44ae510d740101d1cbbf1c59f233a2cd9d9af99
diff --git a/res/layout-sw600dp-v14/compose_subject.xml b/res/layout-sw600dp-v14/compose_subject.xml
index d72bd31..bb6b1f2 100644
--- a/res/layout-sw600dp-v14/compose_subject.xml
+++ b/res/layout-sw600dp-v14/compose_subject.xml
@@ -22,7 +22,7 @@
/>
<EditText
android:id="@+id/subject"
- style="@style/EmailRecipientEditTextView"
+ style="@style/EmailComposeEditTextView"
android:inputType
="textEmailSubject|textAutoCorrect|textCapSentences|textImeMultiLine"
android:imeOptions="actionNext"
diff --git a/res/values-sw600dp/styles.xml b/res/values-sw600dp/styles.xml
index bc51240..88159e8 100644
--- a/res/values-sw600dp/styles.xml
+++ b/res/values-sw600dp/styles.xml
@@ -174,4 +174,38 @@
<item name="android:paddingLeft">16dip</item>
<item name="android:paddingRight">16dip</item>
</style>
+
+ <style name="RecipientComposeHeading">
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:textSize">18sp</item>
+ <item name="android:textColor">@color/compose_label_text</item>
+ <item name="android:layout_gravity">center_vertical</item>
+ </style>
+
+ <style name="ComposeFieldRelLayout" parent="android:Widget.Holo.Light.EditText">
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:addStatesFromChildren">true</item>
+ <item name="android:focusable">false</item>
+ <item name="android:focusableInTouchMode">false</item>
+ <item name="android:gravity">center_vertical</item>
+ </style>
+
+ <style name="RecipientComposeFieldLayout" parent="@style/ComposeFieldRelLayout">
+ </style>
+
+ <style name="EmailRecipientEditTextView" parent="@style/RecipientEditTextView">
+ <item name="android:minHeight">0dip</item>
+ <item name="android:gravity">center_vertical</item>
+ </style>
+
+ <style name="EmailComposeEditTextView">
+ <item name="android:minHeight">0dip</item>
+ <item name="android:layout_gravity">center_vertical</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:background">@null</item>
+ </style>
+
</resources>