[챕터 2-2-4] Drawable 3
2020. 2. 9. 10:49ㆍAndroid/Android 챕터 2-2
반응형
[챕터 2-2-3] Drawable 2 에 이어서 계속 진행됨
res/drawable : New - Drawable resource file
border_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">
<stroke android:width="1dp"
android:color="#BE55DA" />
<solid android:color="#00000000"/>
<size android:width="200dp" android:height="100dp" />
</shape>
</item>
<item android:top="1dp"
android:bottom="1dp"
android:right="1dp"
android:left="1dp">
<shape android:shape="rectangle">
<stroke android:width="1dp"
android:color="#FF55DA"/>
<solid android:color="#00000000"/>
</shape>
</item>
</layer-list>
버튼 생성 후 위에서 만든 보더 드러블 적용
반응형
'Android > Android 챕터 2-2' 카테고리의 다른 글
[챕터 2-2-6] 오리엔테이션 (0) | 2020.02.09 |
---|---|
[챕터 2-2-5] 이벤트 (0) | 2020.02.09 |
[챕터 2-2-3] Drawable 2 (0) | 2020.02.09 |
[챕터 2-2-2] Drawable 1 (0) | 2020.02.09 |
[챕터 2-2-1] 위젯 (0) | 2020.02.09 |