0
I would like besides my button to have a lower edge more than had the button states pressed, not pressed would be another color...
I am trying to do all this in my drawable xml to set a background for my button. It follows drawable xml:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#362E2E" />
</shape>
</item>
<item android:bottom="3dp" >
<shape android:shape="rectangle">
<solid android:color="#2a5aa4" />
</shape>
</item>
<selector >
<!-- pressed -->
<item android:drawable="@android:color/transparent" android:state_pressed="true"/>
<!-- focused -->
<item android:drawable="#362E2E" android:state_focused="true"/>
<!-- default -->
<item android:drawable="#362E2E"/>
</selector>
How can I do that?