android source

layer xml로 버튼모양 만들기

리오파파 2023. 12. 17. 20:02

밖은 진한 색, 안은 옅은색

안엔 top, bottom, left에 padding

 

이후 textview background에 반영


<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<corners android:radius="10dp"/>
<solid android:color="#37873A" />
</shape>
</item>
<item
android:top="1dp"
android:left="1dp"
android:bottom="4dp"
android:right="3dp">
<shape android:shape="rectangle">
<corners android:radius="8dp"/>
<solid android:color="#7ACC7D" />
</shape>
</item>
</layer-list>

'android source ' 카테고리의 다른 글

Phone Metric 얻기  (0) 2023.12.17
bitmap <-> string  (0) 2023.12.17
Background Handler 준비해 두기  (0) 2022.05.15
Direction Sensor  (0) 2022.05.15
OBDII 연결 방법  (0) 2022.05.13