diff options
Diffstat (limited to 'samples/drawable')
-rw-r--r-- | samples/drawable/button_bg.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/samples/drawable/button_bg.xml b/samples/drawable/button_bg.xml new file mode 100644 index 0000000..dd54065 --- /dev/null +++ b/samples/drawable/button_bg.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true"> + <shape android:shape="rectangle"> + <gradient + android:startColor="#111" + android:endColor="#000" + /> + </shape> + </item> + <item> + <shape android:shape="rectangle"> + <gradient + android:startColor="#111" + android:endColor="#222" + /> + </shape> + </item> +</selector> |