add click effect on space

This commit is contained in:
tibbi 2022-01-17 21:23:39 +01:00
parent 767f65c5e9
commit 92ac97ded2
1 changed files with 21 additions and 12 deletions

View File

@ -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>