Drawable

backbtn.xml





 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">


    <item android:state_pressed="true">
        <ripple android:color="@color/white"
            tools:targetApi='lollipop'>
            <item android:id="@+id/mask">
                <shape android:shape="rectangle">
                    <solid android:color="@color/white" />
                    <corners android:radius="30dp"/>

                </shape>
            </item>

        </ripple>

    </item>


    <item android:state_enabled="true">

    <shape android:shape="rectangle">
        <solid android:color="@color/black" />
        <corners android:radius="30dp"/>

    </shape>


    </item>

</selector>


gradient_back.xml







 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">

    <gradient android:angle="45"
        android:endColor="@color/white"
        android:startColor="@color/black"

        />



</shape>
Powered by Blogger.