Revision control
Copy as Markdown
<?xml version="1.0" encoding="utf-8"?>
<item android:state_pressed="true">
<layer-list>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#00000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#10000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#20000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#30000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#50000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle" android:tint="@color/void_color"/>
</item>
</layer-list>
</item>
<item android:state_hovered="true">
<layer-list>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#00000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#10000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#20000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#30000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#50000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle" android:tint="@color/azure"/>
</item>
</layer-list>
</item>
<item android:state_hovered="false" android:drawable="@null">
<layer-list>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#00000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#10000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#20000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#30000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding android:bottom="@dimen/keyboard_key_pressed_padding"/>
<solid android:color="#50000000"/>
</shape>
</item>
<item>
<shape android:shape="rectangle" android:tint="@color/fog"/>
</item>
</layer-list>
</item>
</selector>