
drawable에 ----.xml 파일 하나를 만들어줍니다. (ex. radius.xml)

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding = "10dp">
<solid android:color="#ffffff"></solid>
<corners
android:bottomLeftRadius="45dp"
android:bottomRightRadius="45dp"
android:topLeftRadius="45dp"
android:topRightRadius="45dp"></corners>
<stroke android:width="2dp"
android:color="#000000"></stroke>
</shape>
<corners> 부분 숫자로 둥근정도를 조절합니다.

button 부분 background에 아까 만든 radius.xml 파일을 적용시켜준 모습입니다.
'안드로이드' 카테고리의 다른 글
| [Android] layout 부분 Reformat (0) | 2021.10.25 |
|---|