Buttons visual feedback
This commit is contained in:
parent
5222b48fc6
commit
e1d7b9918f
@ -1,12 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<stroke
|
<item android:state_pressed="true"
|
||||||
android:width="2dp"
|
android:drawable="@drawable/button_background_pressed"/>
|
||||||
android:color="@color/accent" />
|
<item android:drawable="@drawable/button_background_released"/>
|
||||||
<corners android:radius="15dp" />
|
</selector>
|
||||||
<padding
|
|
||||||
android:bottom="5dp"
|
|
||||||
android:left="5dp"
|
|
||||||
android:right="5dp"
|
|
||||||
android:top="5dp" />
|
|
||||||
</shape>
|
|
14
app/src/main/res/drawable/button_background_pressed.xml
Normal file
14
app/src/main/res/drawable/button_background_pressed.xml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<stroke
|
||||||
|
android:width="2dp"
|
||||||
|
android:color="@color/accent" />
|
||||||
|
<solid
|
||||||
|
android:color="@color/accent" />
|
||||||
|
<corners android:radius="15dp" />
|
||||||
|
<padding
|
||||||
|
android:bottom="5dp"
|
||||||
|
android:left="5dp"
|
||||||
|
android:right="5dp"
|
||||||
|
android:top="5dp" />
|
||||||
|
</shape>
|
12
app/src/main/res/drawable/button_background_released.xml
Normal file
12
app/src/main/res/drawable/button_background_released.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<stroke
|
||||||
|
android:width="2dp"
|
||||||
|
android:color="@color/accent" />
|
||||||
|
<corners android:radius="15dp" />
|
||||||
|
<padding
|
||||||
|
android:bottom="5dp"
|
||||||
|
android:left="5dp"
|
||||||
|
android:right="5dp"
|
||||||
|
android:top="5dp" />
|
||||||
|
</shape>
|
Loading…
Reference in New Issue
Block a user