1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2008 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="Whatever"> 20 <item name="type1">true</item> 21 <item name="type2">false</item> 22 <item name="type3">#ff0000ff</item> 23 <item name="type4">#ff00ff00</item> 24 <item name="type5">0.75px</item> 25 <item name="type6">10px</item> 26 <item name="type7">18px</item> 27 <item name="type8">@drawable/pass</item> 28 <item name="type9">3.14</item> 29 <item name="type10">100%</item> 30 <item name="type11">365</item> 31 <item name="type12">86400</item> 32 <item name="type13">@string/hello_android</item> 33 <item name="type14">TypedArray Test!</item> 34 <item name="type15">@array/difficultyLevel</item> 35 <item name="type16">Typed Value!</item> 36 </style> 37 38 <style name="TextViewWithoutColorAndAppearance"> 39 <item name="android:textSize">18sp</item> 40 </style> 41 42 <style name="TextViewWithColorButWithOutAppearance"> 43 <item name="android:textColor">#ff0000ff</item> 44 </style> 45 46 <style name="TextViewWithColorAndAppearance"> 47 <item name="android:textColor">#ff0000ff</item> 48 <item name="android:textAppearance">@style/TextAppearance.WithColor</item> 49 </style> 50 51 <style name="TextViewWithoutColorButWithAppearance"> 52 <item name="android:textAppearance">@style/TextAppearance.WithColor</item> 53 </style> 54 55 <style name="TextAppearance" parent="android:TextAppearance"> 56 </style> 57 58 <style name="TextAppearance.WithColor"> 59 <item name="android:textColor">#ffff0000</item> 60 </style> 61 62 <style name="TextAppearance.All"> 63 <item name="android:textColor">@drawable/black</item> 64 <item name="android:textSize">20px</item> 65 <item name="android:textStyle">bold</item> 66 <item name="android:textColorHint">@drawable/red</item> 67 <item name="android:textColorLink">@drawable/blue</item> 68 <item name="android:textColorHighlight">@drawable/yellow</item> 69 </style> 70 71 <style name="TextAppearance.Colors"> 72 <item name="android:textColor">@drawable/black</item> 73 <item name="android:textColorHint">@drawable/blue</item> 74 <item name="android:textColorLink">@drawable/yellow</item> 75 <item name="android:textColorHighlight">@drawable/red</item> 76 </style> 77 78 <style name="TextAppearance.NotColors"> 79 <item name="android:textSize">17px</item> 80 <item name="android:typeface">sans</item> 81 <item name="android:textStyle">normal</item> 82 </style> 83 84 <style name="TextAppearance.Style"> 85 <item name="android:textStyle">normal</item> 86 </style> 87 88 <style name="TestEnum1"> 89 <item name="testEnum">val1</item> 90 </style> 91 92 <style name="TestEnum2"> 93 <item name="testEnum">val2</item> 94 </style> 95 96 <style name="TestEnum10"> 97 <item name="testEnum">val10</item> 98 </style> 99 100 <style name="TestFlag1"> 101 <item name="testFlags">bit1</item> 102 </style> 103 104 <style name="TestFlag2"> 105 <item name="testFlags">bit2</item> 106 </style> 107 108 <style name="TestFlag31"> 109 <item name="testFlags">bit31</item> 110 </style> 111 112 <style name="TestFlag1And2"> 113 <item name="testFlags">bit1|bit2</item> 114 </style> 115 116 <style name="TestFlag1And2And31"> 117 <item name="testFlags">bit1|bit2|bit31</item> 118 </style> 119 120 <style name="TestEnum1.EmptyInherit" /> 121 122 <style name="Theme_AlertDialog"> 123 <item name="android:textSize">18sp</item> 124 </style> 125 126 <style name="TestProgressBar"> 127 <item name="android:indeterminateOnly">false</item> 128 <item name="android:progressDrawable">?android:drawable/progress_horizontal</item> 129 <item name="android:indeterminateDrawable">?android:drawable/progress_horizontal</item> 130 <item name="android:minHeight">20dip</item> 131 <item name="android:maxHeight">20dip</item> 132 <item name="android:focusable">true</item> 133 </style> 134 135 <style name="Test_Theme"> 136 <item name="android:windowNoTitle">true</item> 137 <item name="android:panelColorForeground">#ff000000</item> 138 <item name="android:panelColorBackground">#ffffffff</item> 139 </style> 140 141 </resources> 142