Solve Problem/Android
[Android] Button 동그랗게 만들기 Radius
안다희
2019. 1. 5. 13:55
728x90
1. drawable에 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="15dp"
android:bottomRightRadius="15dp"
android:topLeftRadius="15dp"
android:topRightRadius="15dp"></corners>
<stroke android:width="2dp"
android:color="#BDBDBD"></stroke>
</shape>
2. button 속성에 background 추가
android:background="@drawable/radius"
완성!!