add click effect on space
This commit is contained in:
parent
767f65c5e9
commit
92ac97ded2
|
@ -1,14 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:id="@+id/button_background_shape"
|
||||
android:bottom="@dimen/normal_margin"
|
||||
android:left="@dimen/normal_margin"
|
||||
android:right="@dimen/normal_margin"
|
||||
android:top="@dimen/normal_margin">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/md_grey_700" />
|
||||
<corners android:radius="@dimen/medium_margin" />
|
||||
</shape>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true">
|
||||
<layer-list>
|
||||
<item android:id="@+id/space_pressed" android:bottom="@dimen/normal_margin" android:left="@dimen/normal_margin" android:right="@dimen/normal_margin" android:state_pressed="true" android:top="@dimen/normal_margin">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/md_grey_600" />
|
||||
<corners android:radius="@dimen/medium_margin" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
</item>
|
||||
</layer-list>
|
||||
<item>
|
||||
<layer-list>
|
||||
<item android:id="@+id/space_normal" android:bottom="@dimen/normal_margin" android:left="@dimen/normal_margin" android:right="@dimen/normal_margin" android:state_pressed="true" android:top="@dimen/normal_margin">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/md_grey_700" />
|
||||
<corners android:radius="@dimen/medium_margin" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
</item>
|
||||
</selector>
|
||||
|
|
Loading…
Reference in New Issue