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"
완성!!
'Solve Problem > Android' 카테고리의 다른 글
[Android] Checkbox event 체크박스 이벤트 - 체크박스 선택되었을 때 (0) | 2019.01.06 |
---|---|
[Android/Java] Checkbox 선언 시 주의사항! (0) | 2019.01.06 |
[Android] FLAG: CLEAR_TOP (0) | 2019.01.05 |
[Android] SharedPreferences 앱이 종료되어도 작성하던 글은 그대로 유지하는 방법!? (0) | 2019.01.05 |
[Android] ButterKnife 사용법, findViewById 너무 귀찮을 때!! (0) | 2019.01.05 |