Update compose styles for chips and other fields.

Fixes bug:5278687 update email compose to match gmail compose
Change-Id: I90ce594abd6c8e7215880eb12927f01ba6e985a8
This commit is contained in:
Mindy Pereira 2011-09-08 13:16:41 -07:00
parent e7e04343ae
commit 3d5581d8b9
4 changed files with 45 additions and 9 deletions

View File

@ -16,7 +16,8 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/RecipientComposeFieldLayout">
<EditText android:id="@+id/subject"
style="@style/ChipsComposeSubjectStyle"
style="@style/EmailRecipientEditTextView"
android:hint="@string/message_compose_subject_hint"
android:textColorHint="@color/compose_label_text"
/>
</LinearLayout>

View File

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<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:gravity">bottom</item>
<item name="android:minHeight">48dip</item>
</style>
<style name="EmailRecipientEditTextView" parent="@style/RecipientEditTextView">
<item name="android:minHeight">0dip</item>
</style>
<style name="ChipsComposeBodyStyle" parent="@style/ComposeBodyStyle">
<item name="android:background">@null</item>
<item name="android:gravity">bottom</item>
<item name="android:minHeight">0dip</item>
</style>
</resources>

View File

@ -18,15 +18,13 @@
<resources>
<style name="EmailTheme" parent="@android:style/Theme.Holo.Light">
</style>
<style name="EmailRecipientEditTextView" parent="@style/RecipientEditTextView">
<item name="android:minHeight">0dip</item>
</style>
<style name="ChipsComposeBodyStyle" parent="@style/ComposeBodyStyle">
<item name="android:minHeight">0dip</item>
<item name="android:background">@null</item>
<item name="android:minHeight">42dip</item>
<item name="android:gravity">center_vertical</item>
</style>
<style name="ChipsComposeSubjectStyle" parent="@style/ComposeSubjectStyle">
<item name="android:minHeight">0dip</item>
<item name="android:background">@null</item>
<item name="android:minHeight">0dip</item>
</style>
</resources>

View File

@ -210,7 +210,8 @@
</style>
<style name="EmailRecipientEditTextView" parent="@style/RecipientEditTextView">
<item name="android:minHeight">48dip</item>
<item name="android:minHeight">42dip</item>
<item name="android:gravity">center_vertical</item>
</style>
<style name="ComposeFieldLinearLayout" parent="android:Widget.Holo.Light.EditText">
@ -247,10 +248,10 @@
<item name="android:addStatesFromChildren">true</item>
<item name="android:focusable">false</item>
<item name="android:focusableInTouchMode">false</item>
<item name="android:gravity">bottom</item>
<item name="android:gravity">center</item>
<item name="android:minHeight">48dip</item>
<item name="android:paddingTop">4dip</item>
</style>
<style name="ComposeBodyStyle">
<item name="android:minHeight">48dip</item>
<item name="android:layout_height">wrap_content</item>