PageRenderTime 102ms CodeModel.GetById 41ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/TheElements/res/drawable/btn_ui_element.xml

http://thelements.googlecode.com/
XML | 52 lines | 35 code | 3 blank | 14 comment | 0 complexity | fb1e0b391af435af237e7c5a05228d28 MD5 | raw file
 1<!-- 
 2
 3<shape xmlns:android="http://schemas.android.com/apk/res/android"
 4 android:shape="rectangle">
 5     <gradient 
 6     	android:type="radial"
 7     	android:startColor="#FFAA00" 
 8     	android:endColor="#FF0000" 
 9     	android:angle="0" />
10     <stroke android:width="1px" android:color="#000" />
11
12     <corners android:radius="5dp" />
13</shape>
14 -->
15<selector xmlns:android="http://schemas.android.com/apk/res/android">
16
17    <item android:state_pressed="true" >
18        <shape android:shape="oval">
19            <gradient
20                android:startColor="#c17f05"
21                android:endColor="#faac1d"
22                android:angle="0" />
23            <stroke
24                android:width="1px"
25                android:color="#000" />
26        </shape>
27    </item>
28
29    <item android:state_focused="true" >
30        <shape android:shape="oval">
31            <gradient
32                android:endColor="#aafaac1d"
33                android:startColor="#aac17f05"
34                android:angle="0" />
35            <stroke
36                android:width="1px"
37                android:color="#A000" />
38        </shape>
39    </item>
40
41    <item>        
42        <shape android:shape="oval">
43            <gradient
44                android:endColor="#A555"
45                android:startColor="#A222"
46                android:angle="90" />
47            <stroke
48                android:width="1px"
49                android:color="#000" />
50        </shape>
51    </item>
52</selector>