e36648697f
This introduces an in-memory cache of file paths for an attachment so that we can install from a filepath instead of a content URI. The cache also allows us to prevent duplicated files made if the user hits save multiple times (the save button is disabled). Bug: 3338997 Change-Id: I56651a55eef2f1a3f24b6d936c37736c4fc3d295
117 lines
5.0 KiB
XML
117 lines
5.0 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.
|
|
-->
|
|
|
|
<!-- See also values-xlarge for specializations for xlarge screens -->
|
|
<resources>
|
|
<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:textAppearance">?android:attr/textColorPrimary</item>
|
|
</style>
|
|
|
|
<!-- Cancel/Done buttons on the account settings (server settings) fragments -->
|
|
<!-- TODO these are estimates for the phone UX - final sizes TBD -->
|
|
<style name="accountSettingsButton">
|
|
<item name="android:layout_width">160sp</item>
|
|
<item name="android:layout_height">40sp</item>
|
|
<item name="android:textAppearance">?android:attr/textColorPrimary</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:layout_marginLeft">16dip</item>
|
|
<item name="android:layout_marginRight">8dip</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="Attachment" />
|
|
|
|
<style name="Attachment.Button" parent="@android:style/Widget.Holo.Button.Borderless">
|
|
<item name="android:padding">0dip</item>
|
|
<item name="android:textColor">@color/buttontext</item>
|
|
<item name="android:textSize">14dip</item>
|
|
<item name="android:textStyle">bold</item>
|
|
<item name="android:singleLine">true</item>
|
|
<item name="android:ellipsize">end</item>
|
|
<item name="android:gravity">center</item>
|
|
</style>
|
|
</resources>
|