728x90
<item android:id="@android:id/background">
<shape>
<corners android:radius="0dp"/>
<stroke android:width="3dp" android:color="@color/second_bar"/>
<solid android:color="@color/background_color"/>
</shape>
</item>
원형의 정도 <corners>
태그로 곡선을 정한다. 값을 크게 줄수록, 원형이 됨
테두리 지정 <stroke>
<stroke android:width="3dp" android:color="@color/second_bar"/>
width : 테두리 굵기
color : 테두리 색상
모양 색상 지정 <solid>
<solid android:color="@color/background_color"/>
안에 채워지는 색상
728x90
'기타 > Android' 카테고리의 다른 글
[ Android / Kotlin ] 안드로이드 액티비티 전환 애니메이션 (0) | 2022.02.26 |
---|---|
[Android] 상태바, 타이틀바 없애기 (0) | 2022.02.20 |
[Android] Progressbar 커스텀하기 (색상변경, 테두리) (0) | 2022.02.19 |
[Android] 원형 버튼 만들기 (0) | 2022.02.19 |
[Android] 글꼴 적용하기 (0) | 2022.02.19 |