Fix alignment of to/cc/bcc fields.
Part of bug:5162602 Alignment of elements in compose screen seems off (master/tot/prime Change-Id: Ica741328c687b68c8995a1e9fde4d6bb566407ba
This commit is contained in:
parent
475a56fd0a
commit
5b5a9b3f9e
|
@ -22,18 +22,18 @@ automatically saved by framework.-->
|
|||
android:layout_marginRight="6dip">
|
||||
|
||||
<RelativeLayout
|
||||
style="@style/ComposeFieldLinearLayout"
|
||||
style="@style/RecipientComposeFieldLayout"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/to_content">
|
||||
|
||||
<TextView style="@style/ComposeHeading"
|
||||
<TextView style="@style/RecipientComposeHeading"
|
||||
android:text="@string/message_compose_to_hint"
|
||||
android:id="@+id/label"/>
|
||||
|
||||
<com.android.email.activity.ChipsAddressTextView
|
||||
style="@style/RecipientEditTextView"
|
||||
style="@style/EmailRecipientEditTextView"
|
||||
android:layout_toRightOf="@id/label"
|
||||
android:id="@+id/to_address_field" />
|
||||
|
||||
|
@ -47,32 +47,32 @@ automatically saved by framework.-->
|
|||
android:visibility="gone">
|
||||
|
||||
<RelativeLayout
|
||||
style="@style/ComposeFieldLinearLayout"
|
||||
style="@style/RecipientComposeFieldLayout"
|
||||
android:layout_alignParentTop="true"
|
||||
android:id="@+id/cc_content">
|
||||
|
||||
<TextView style="@style/ComposeHeading"
|
||||
<TextView style="@style/RecipientComposeHeading"
|
||||
android:text="@string/message_compose_to_hint"
|
||||
android:id="@+id/label"/>
|
||||
|
||||
<com.android.email.activity.ChipsAddressTextView
|
||||
style="@style/RecipientEditTextView"
|
||||
style="@style/EmailRecipientEditTextView"
|
||||
android:layout_toRightOf="@id/label"
|
||||
android:id="@+id/cc_address_field" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
style="@style/ComposeFieldLinearLayout"
|
||||
style="@style/RecipientComposeFieldLayout"
|
||||
android:layout_alignParentTop="true"
|
||||
android:id="@+id/bcc_content">
|
||||
|
||||
<TextView style="@style/ComposeHeading"
|
||||
<TextView style="@style/RecipientComposeHeading"
|
||||
android:text="@string/message_compose_to_hint"
|
||||
android:id="@+id/label"/>
|
||||
|
||||
<com.android.email.activity.ChipsAddressTextView
|
||||
style="@style/RecipientEditTextView"
|
||||
style="@style/EmailRecipientEditTextView"
|
||||
android:layout_toRightOf="@id/label"
|
||||
android:id="@+id/bcc_address_field" />
|
||||
|
||||
|
|
|
@ -18,4 +18,8 @@
|
|||
<resources>
|
||||
<style name="EmailTheme" parent="@android:style/Theme.Holo.Light">
|
||||
</style>
|
||||
<style name="EmailRecipientEditTextView" parent="@style/RecipientEditTextView">
|
||||
<item name="android:layout_marginBottom">2dip</item>
|
||||
<item name="android:layout_marginTop">2dip</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
|
@ -210,6 +210,27 @@
|
|||
<item name="android:layout_gravity">center_vertical</item>
|
||||
</style>
|
||||
|
||||
<style name="RecipientComposeHeading">
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
<item name="android:layout_height">48dip</item>
|
||||
<item name="android:textSize">18sp</item>
|
||||
<item name="android:paddingLeft">8dip</item>
|
||||
<item name="android:gravity">center_vertical</item>
|
||||
<item name="android:textColor">@color/compose_label_text</item>
|
||||
</style>
|
||||
|
||||
<style name="RecipientComposeFieldLayout" 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:paddingLeft">0dip</item>
|
||||
<item name="android:paddingRight">0dip</item>
|
||||
<item name="android:paddingTop">0dip</item>
|
||||
<item name="android:paddingBottom">8dip</item>
|
||||
</style>
|
||||
|
||||
<style name="message_list_item_normal">
|
||||
<!-- no styles on phones -->
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue