swarmbutton.xml 1.42 KB
Newer Older
1
2
3
4
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
  <item android:state_checked="true">
    <shape>
Dave Griffiths's avatar
Dave Griffiths committed
5
6
      <gradient android:endColor="#eea276ff"
                android:startColor="#eea276ef" android:angle="270" />
7
8
9
10
11
12
13
      <corners android:radius="10dp" />
      <padding android:left="4dp" android:top="4dp"
               android:right="4dp" android:bottom="4dp" />
    </shape>
  </item>
  <item android:state_pressed="true">
    <shape>
Dave Griffiths's avatar
Dave Griffiths committed
14
15
      <gradient android:endColor="#77a276ff"
                android:startColor="#77a276ef" android:angle="270" />
16
17
18
19
20
21
22
      <corners android:radius="10dp" />
      <padding android:left="4dp" android:top="4dp"
               android:right="4dp" android:bottom="4dp" />
    </shape>
  </item>
  <item android:state_focused="true">
    <shape>
Dave Griffiths's avatar
Dave Griffiths committed
23
24
      <gradient android:endColor="#ffa276ff"
                android:startColor="#ffa276ef" android:angle="270" />
25
26
27
28
29
30
31
      <corners android:radius="10dp" />
      <padding android:left="4dp" android:top="4dp"
               android:right="4dp" android:bottom="4dp" />
    </shape>
  </item>
  <item>
    <shape>
Dave Griffiths's avatar
Dave Griffiths committed
32
33
      <gradient android:endColor="#888256ff"
                android:startColor="#88a276ef" android:angle="270" />
34
35
36
37
38
39
40
      <corners android:radius="10dp" />
      <padding android:left="4dp" android:top="4dp"
               android:right="4dp" android:bottom="4dp" />
    </shape>
  </item>

</selector>