본문 바로가기
프로그래밍

안드로이드 버튼 배경 샘플 xml

by hansoo.labs 한수댁 2015. 6. 10.



안드로이드 버튼 배경 샘플.
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true"><shape>
            <solid android:color="#78cccccc" />
            <stroke android:width="1dp" android:color="#99999999" />
            <corners android:radius="6dp" />
            <padding android:bottom="6dp" android:left="6dp" android:right="6dp" android:top="6dp" />
        </shape></item>
        
    <item><shape>
            <gradient android:angle="270" android:endColor="#78cccccc" android:startColor="#78fcfcfc" />
            <stroke android:width="1dp" android:color="#78999999" />
            <corners android:radius="6dp" />
            <padding android:bottom="6dp" android:left="6dp" android:right="6dp" android:top="6dp" />
        </shape></item>

</selector>


댓글0