1<!--
2  ~ Copyright (C) 2012 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License
15  -->
16
17<resources>
18
19    <style name="DirectoryHeader">
20        <item name="android:background">@android:color/transparent</item>
21    </style>
22
23    <style name="SectionHeaderStyle" parent="@android:style/TextAppearance.Large">
24        <item name="android:textSize">20sp</item>
25        <item name="android:textAllCaps">true</item>
26        <item name="android:textColor">@color/section_header_text_color</item>
27        <item name="android:fontFamily">sans-serif-medium</item>
28    </style>
29
30    <style name="DirectoryHeaderStyle" parent="@android:style/TextAppearance.Small">
31        <item name="android:textSize">14sp</item>
32        <item name="android:textColor">@color/dialtacts_secondary_text_color</item>
33        <item name="android:fontFamily">sans-serif-medium</item>
34    </style>
35
36    <!-- TextView style used for headers.
37
38This is similar to ?android:attr/listSeparatorTextView but uses different
39background and text color. See also android:style/Widget.Holo.TextView.ListSeparator
40(which is private, so we cannot specify it as a parent style).  -->
41    <style name="ContactListSeparatorTextViewStyle">
42        <item name="android:layout_width">match_parent</item>
43        <item name="android:layout_height">wrap_content</item>
44        <!-- See comments for @dimen/list_section_divider_min_height -->
45        <item name="android:minHeight">@dimen/list_section_divider_min_height</item>
46        <item name="android:background">@drawable/list_section_divider_holo_custom</item>
47        <item name="android:textAppearance">@style/DirectoryHeaderStyle</item>
48        <item name="android:gravity">center_vertical</item>
49        <item name="android:paddingLeft">8dip</item>
50        <item name="android:paddingStart">8dip</item>
51        <item name="android:paddingTop">4dip</item>
52        <item name="android:paddingBottom">4dip</item>
53        <item name="android:ellipsize">end</item>
54        <item name="android:singleLine">true</item>
55        <item name="android:textAllCaps">true</item>
56    </style>
57
58    <style name="TextAppearanceMedium" parent="@android:style/TextAppearance.Medium">
59        <item name="android:textSize">16sp</item>
60        <item name="android:textColor">#000000</item>
61    </style>
62
63    <style name="TextAppearanceSmall" parent="@android:style/TextAppearance.Small">
64        <item name="android:textSize">14sp</item>
65        <item name="android:textColor">#737373</item>
66    </style>
67
68    <style name="ListViewStyle" parent="@android:style/Widget.Material.Light.ListView">
69        <item name="android:overScrollMode">always</item>
70    </style>
71
72    <style name="ContactListFilterTheme" parent="@android:Theme.Holo.Light">
73        <item name="android:listViewStyle">@style/ListViewStyle</item>
74    </style>
75
76    <style name="CustomContactListFilterView" parent="ContactListFilterTheme">
77        <item name="android:layout_width">match_parent</item>
78        <item name="android:layout_height">match_parent</item>
79    </style>
80
81    <style name="BackgroundOnlyTheme" parent="@android:style/Theme.Material.Light">
82        <item name="android:windowBackground">@null</item>
83        <item name="android:windowContentOverlay">@null</item>
84        <item name="android:windowAnimationStyle">@null</item>
85        <item name="android:windowNoTitle">true</item>
86        <!-- Activities that use this theme are background activities without obvious displays.
87            However, some also have dialogs. Therefore, it doesn't make sense to set this true.-->
88        <item name="android:windowNoDisplay">false</item>
89        <item name="android:windowIsFloating">true</item>
90    </style>
91</resources>
92