replicant-packages_apps_Email/res/values/styles.xml
Ben Komalo ab5ac4fd00 Fix widget padding.
Makes text vertically and horizontally centered
Also makes it more robust to text size changes

Bug: 5406487
Bug: 5360657
Change-Id: I5183c988163381237cf3aa38121075b7281df695
2011-10-04 16:23:45 -07:00

335 lines
15 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 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.
-->
<!-- non-xlarge. See also values-xlarge for specializations for xlarge screens -->
<resources>
<style name="EmailTheme" parent="@android:style/Theme.Holo.Light.DarkActionBar">
</style>
<style name="unreadCount">
<item name="android:ellipsize">end</item>
<item name="android:singleLine">true</item>
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
<item name="android:textColor">#FF000000</item>
<item name="android:paddingLeft">3dip</item>
<item name="android:paddingRight">3dip</item>
<item name="android:paddingTop">0dip</item>
<item name="android:paddingBottom">1dip</item>
<item name="android:minWidth">20dip</item>
<item name="android:maxWidth">48dip</item>
<item name="android:gravity">center_horizontal|center_vertical</item>
</style>
<style name="ThemeNoTitleBar" parent="android:Theme.NoTitleBar">
<item name="android:windowContentOverlay">@null</item>
</style>
<!-- The headline at the top of every account settings fragments (in preferences) -->
<!-- TODO these are estimates for the phone UX - final sizes TBD -->
<style name="accountSettingsHeadline">
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
</style>
<!-- The large headline at the top of every account setup screen -->
<!-- TODO these are estimates for the phone UX - final sizes TBD -->
<style name="accountSetupHeadline">
<item name="android:textSize">22sp</item>
<item name="android:textColor">@color/account_setup_headline_color</item>
</style>
<!-- Wizard buttons on the account setup screens -->
<!-- TODO these are estimates for the phone UX - final sizes TBD -->
<style name="accountSetupButton">
<item name="android:layout_width">160sp</item>
<item name="android:layout_height">40sp</item>
<item name="android:textColor">?android:attr/textColorPrimary</item>
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
</style>
<!-- Cancel/Done buttons on the account settings (server settings) fragments -->
<style name="accountSettingsButton">
<item name="android:layout_width">160sp</item>
<item name="android:layout_height">40sp</item>
<item name="android:textColor">?android:attr/textColorPrimary</item>
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
</style>
<!-- EditText style without the "tray" -->
<style name="PlainEditText" parent="android:Widget.Holo.Light.EditText">
<item name="android:background">@null</item>
</style>
<style name="notification_secondary_text">
<item name="android:textColor">?android:attr/textColorSecondary</item>
</style>
<style name="widget_list_item">
<item name="android:textColor">?android:attr/textColorSecondary</item>
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
</style>
<style name="message_details_label">
<item name="android:textSize">14dip</item>
<item name="android:textColor">@color/text_secondary_color</item>
<item name="android:textStyle">bold</item>
<item name="android:padding">8dip</item>
<item name="android:singleLine">true</item>
</style>
<style name="message_details_value">
<item name="android:textSize">14dip</item>
<item name="android:textColor">@color/text_secondary_color</item>
<item name="android:padding">8dip</item>
<item name="android:singleLine">false</item>
<item name="android:textIsSelectable">true</item>
</style>
<style name="message_view_subject">
<item name="android:textSize">18dip</item>
<item name="android:textColor">@color/text_primary_color</item>
<item name="android:textStyle">bold</item>
<item name="android:enabled">false</item>
<item name="android:ellipsize">end</item>
</style>
<style name="unread_count">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">center_vertical</item>
<item name="android:layout_marginRight">16dip</item>
<item name="android:layout_marginLeft">4dip</item>
<item name="android:textColor">@color/text_ternary_color</item>
<item name="android:textStyle">bold</item>
<item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
<item name="android:singleLine">true</item>
</style>
<style name="Attachment" />
<style name="Attachment.Button" parent="@android:style/Widget.Holo.Button.Borderless">
<item name="android:minHeight">0dip</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">0dip</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_gravity">center_vertical</item>
<item name="android:paddingTop">8dip</item>
<item name="android:paddingBottom">8dip</item>
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/buttontext</item>
<item name="android:singleLine">true</item>
<item name="android:textAllCaps">true</item>
</style>
<style name="attachment_container">
<item name="android:background">@drawable/attachment_background</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:orientation">horizontal</item>
</style>
<style name="attachment_name">
<item name="android:id">@id/attachment_name</item>
<item name="android:paddingLeft">5dip</item>
<item name="android:maxLines">1</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textColor">@color/text_primary_color</item>
</style>
<style name="attachment_thumbnail">
<item name="android:layout_gravity">center_vertical</item>
<item name="android:paddingLeft">5dip</item>
<item name="android:layout_width">32dip</item>
<item name="android:layout_height">32dip</item>
</style>
<style name="action_bar_custom_view">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">match_parent</item>
</style>
<style name="message_view_text">
<item name="android:textSize">14dip</item>
<item name="android:textColor">@color/text_secondary_color</item>
</style>
<style name="message_view_horizontal_divider">
<item name="android:layout_height">1dip</item>
<item name="android:background">?android:attr/dividerHorizontal</item>
</style>
<style name="message_view_tab" parent="@android:style/Widget.Holo.Light.Tab">
<item name="android:layout_height">32dip</item>
<item name="android:gravity">center</item>
<item name="android:textSize">14dip</item>
<item name="android:textColor">@color/text_secondary_color</item>
</style>
<style name="action_bar_account_name">
<item name="android:textSize">18dip</item>
<item name="android:textColor">@color/text_primary_color</item>
<item name="android:singleLine">true</item>
<item name="android:ellipsize">end</item>
</style>
<style name="action_bar_account_name_secondary">
<item name="android:textSize">14dip</item>
<item name="android:textColor">@color/text_ternary_color</item>
<item name="android:singleLine">true</item>
<item name="android:ellipsize">end</item>
</style>
<style name="action_bar_spinner_primary_text">
<item name="android:textSize">16sp</item>
<item name="android:textColor">@color/text_primary_color</item>
<item name="android:singleLine">true</item>
<item name="android:ellipsize">end</item>
</style>
<style name="action_bar_spinner_secondary_text">
<item name="android:textSize">14sp</item>
<item name="android:textColor">@color/text_secondary_color</item>
<item name="android:singleLine">true</item>
<item name="android:ellipsize">end</item>
<item name="android:layout_marginTop">-4dip</item>
</style>
<style name="search_header">
<item name="android:layout_height">32dip</item>
<item name="android:layout_width">match_parent</item>
<item name="android:paddingLeft">6dip</item>
<item name="android:paddingRight">6dip</item>
</style>
<style name="EmailRecipientEditTextView" parent="@style/RecipientEditTextView">
<item name="android:minHeight">42dip</item>
<item name="android:gravity">bottom</item>
</style>
<style name="EmailComposeEditTextView">
<item name="android:minHeight">44dip</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>
<style name="LargeComposeAreaBody" parent="@style/ComposeBodyStyle" >
<item name="android:background">@null</item>
<item name="android:minHeight">42dip</item>
<item name="android:layout_gravity">center_vertical</item>
</style>
<style name="RecipientComposeFieldSpacer">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">4dip</item>
</style>
<style name="ComposeFieldLinearLayout" parent="android:Widget.Holo.Light.EditText">
<item name="android:addStatesFromChildren">true</item>
<item name="android:focusable">false</item>
<item name="android:focusableInTouchMode">false</item>
<item name="android:orientation">horizontal</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:clickable">true</item>
<item name="android:paddingLeft">0dip</item>
<item name="android:paddingRight">0dip</item>
</style>
<style name="ComposeHeading">
<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:paddingLeft">8dip</item>
<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">wrap_content</item>
<item name="android:textSize">18sp</item>
<item name="android:textColor">@color/compose_label_text</item>
<item name="android:layout_marginRight">4dip</item>
<item name="android:layout_marginTop">4dip</item>
<item name="android:layout_gravity">center_vertical</item>
</style>
<style name="ComposeFieldLayout" 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>
<item name="android:paddingTop">0dip</item>
</style>
<style name="RecipientComposeFieldLayout" parent="@style/ComposeFieldLayout">
<item name="android:orientation">vertical</item>
</style>
<style name="ComposeBodyStyle">
<item name="android:minHeight">48dip</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">match_parent</item>
<item name="android:gravity">center_vertical</item>
<item name="android:inputType">textLongMessage|textMultiLine|textAutoCorrect|textCapSentences</item>
<item name="android:hint">@string/message_compose_body_hint</item>
<item name="android:imeOptions">flagNoExtractUi|actionDone|flagNoEnterAction</item>
<item name="android:textColorHint">@color/compose_label_text</item>
</style>
<style name="ComposeSubjectStyle">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
<item name="android:textColor">?android:attr/textColorSecondary</item>
<item name="android:textColorHint">@color/compose_label_text</item>
<item name="android:inputType">textEmailSubject|textAutoCorrect|textCapSentences|textMultiLine</item>
<item name="android:imeOptions">actionNext|flagNoExtractUi</item>
</style>
<style name="message_list_item_normal">
<!-- no styles on phones -->
</style>
<style name="message_list_item_wide">
<!-- no styles on phones -->
</style>
<style name="message_view_action_buttons" parent="android:Widget.Holo.Button.Borderless">
<item name="android:layout_width">48dip</item>
<item name="android:layout_height">48dip</item>
<item name="android:scaleType">center</item>
</style>
<style name="message_header_sender_name">
<item name="android:textSize">16dip</item>
<item name="android:textColor">@color/text_primary_color_inverse</item>
<item name="android:singleLine">true</item>
<item name="android:ellipsize">end</item>
</style>
<style name="message_header_sender_address">
<item name="android:textSize">14dip</item>
<item name="android:textColor">@color/text_secondary_color_inverse</item>
<item name="android:singleLine">true</item>
<item name="android:ellipsize">end</item>
</style>
</resources>