1<?xml version="1.0" encoding="utf-8"?> 2<resources> 3 <style name="Theme.Robolectric" parent="@android:style/Theme"> 4 <item name="android:buttonStyle">@style/Widget.Robolectric.Button</item> 5 <item name="string1">string 1 from Theme.Robolectric</item> 6 <item name="string2">string 2 from Theme.Robolectric</item> 7 <item name="string3">string 3 from Theme.Robolectric</item> 8 </style> 9 10 <style name="Theme.Robolectric.ImplicitChild"> 11 <item name="string2">string 2 from Theme.Robolectric.ImplicitChild</item> 12 <item name="string3">string 3 from Theme.Robolectric.ImplicitChild</item> 13 </style> 14 15 <style name="Theme.Robolectric.EmptyParent" parent=""/> 16 17 <style name="Theme.AnotherTheme" parent="@style/Theme.Robolectric"> 18 <item name="android:buttonStyle">@style/Widget.AnotherTheme.Button</item> 19 <item name="logoWidth">?attr/averageSheepWidth</item> 20 <item name="logoHeight">@dimen/test_dp_dimen</item> 21 <item name="averageSheepWidth">@dimen/test_dp_dimen</item> 22 <item name="animalStyle">@style/Gastropod</item> 23 <item name="isSugary">?attr/isSugary</item> 24 <item name="styleReference">?android:attr/buttonStyle</item> 25 <item name="typeface">custom_font</item> 26 <item name="string1">string 1 from Theme.AnotherTheme</item> 27 <item name="string2">string 2 from Theme.AnotherTheme</item> 28 </style> 29 30 <style name="Theme.ThirdTheme" parent="@style/Theme.Robolectric"> 31 <item name="snail">@style/Gastropod</item> 32 <item name="animalStyle">?attr/snail</item> 33 <item name="someLayoutOne">@layout/activity_main</item> 34 <item name="someLayoutTwo">?someLayoutOne</item> 35 </style> 36 37 <style name="Theme"> 38 </style> 39 40 <style name="Theme.ThemeReferredToByParentAttrReference"> 41 <item name="parentStyleReference">@style/YetAnotherStyle</item> 42 </style> 43 44 <style name="Theme.ThemeContainingStyleReferences" parent="@style/Theme.ThemeReferredToByParentAttrReference"> 45 <item name="styleReference">@style/YetAnotherStyle</item> 46 </style> 47 48 <style name="YetAnotherStyle"> 49 <item name="string2">string 2 from YetAnotherStyle</item> 50 </style> 51 52 <style name="Widget.Robolectric.Button" parent="@android:style/Widget.Button"> 53 <item name="android:background">#ff00ff00</item> 54 </style> 55 56 <style name="Widget.AnotherTheme.Button" parent="@android:style/Widget.Button"> 57 <item name="android:background">#ffff0000</item> 58 <item name="android:minWidth">?attr/logoWidth</item> 59 <item name="android:minHeight">?attr/logoHeight</item> 60 </style> 61 62 <style name="Widget.AnotherTheme.Button.Blarf"/> 63 64 <style name="MyCustomView"> 65 <item name="aspectRatioEnabled">true</item> 66 </style> 67 68 <style name="SomeStyleable"> 69 <item name="snail">@style/Gastropod</item> 70 <item name="animalStyle">@style/Gastropod</item> 71 </style> 72 73 <style name="Sized"> 74 <item name="android:layout_width">42px</item> 75 <item name="android:layout_height">42px</item> 76 </style> 77 78 <style name="Gastropod"> 79 <item name="aspectRatio">1.69</item> 80 </style> 81 82 <style name="MyBlackTheme"> 83 <item name="android:windowBackground">@android:color/black</item> 84 <item name="android:textColorHint">@android:color/darker_gray</item> 85 </style> 86 87 <style name="MyBlueTheme"> 88 <item name="android:windowBackground">@color/blue</item> 89 <item name="android:textColor">@color/white</item> 90 </style> 91 92 <style name="ThemeWithSelfReferencingTextAttr"> 93 <!-- android's Widget style (among others) does this, wtf? --> 94 <item name="android:textAppearance">?android:attr/textAppearance</item> 95 </style> 96 97 <style name="IndirectButtonStyle" parent="@android:style/Widget.Button"> 98 <item name="android:minHeight">12dp</item> 99 </style> 100 101 <!-- Styles for testing inheritance --> 102 <style name="SimpleParent"> 103 <item name="parent_string">parent string</item> 104 </style> 105 <style name="SimpleChildWithOverride" parent="@style/SimpleParent"> 106 <item name="parent_string">parent string overridden by child</item> 107 </style> 108 <style name="SimpleParent.ImplicitChild"> 109 <item name="parent_string">parent string overridden by child</item> 110 </style> 111 112 <style name="SimpleChildWithAdditionalAttributes" parent="@style/SimpleParent"> 113 <item name="child_string">child string</item> 114 <item name="child_string2">child string2</item> 115 </style> 116 117 <style name="StyleA"> 118 <item name="string1">string 1 from style A</item> 119 </style> 120 <style name="StyleB"> 121 <item name="string1">string 1 from style B</item> 122 </style> 123 124 <style name="StyleWithReference"> 125 <item name="stringReference">@string/hello</item> 126 </style> 127 128 <style name="StyleWithAttributeReference"> 129 <item name="anAttribute">@string/hello</item> 130 <item name="attributeReferencingAnAttribute">?anAttribute</item> 131 </style> 132 133 <style name="StyleWithCircularReference"> 134 <item name="circularReference">?circularReference</item> 135 </style> 136 <style name="StyleWithMultipleAttributes"> 137 <item name="string1">string 1 from StyleWithMultipleAttributes</item> 138 <item name="string2">string 2 from StyleWithMultipleAttributes</item> 139 </style> 140</resources> 141