안드로이드 xml을 만들다 보면 버튼 끝부분을 라운딩처리를 하고싶을때가 있다.
그럴때는 res 폴더에 drawable에 xml을 하나 만들고 다음을 복사 붙여넣기한후에
버튼의 background에 해당 xml을 연결시켜주면 된다.
...더보기
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:angle="270"
android:endColor="#FFFFFF"
android:startColor="#FFFFFF" />
<corners android:radius="100dp" />
<stroke
android:width="1dp"
android:color="#ff0055" />
</shape>
'안드로이드' 카테고리의 다른 글
[Android ] 로딩 다이얼로그(Dialog) 띄우기 (0) | 2019.04.02 |
---|---|
byte를 string으로 변환하는 방법 (0) | 2019.03.16 |
Activity Service 컴포넌트간에 데이터 교환 (0) | 2019.03.16 |
안드로이드 에러 Don't call setOnClickListener for an AdapterView (0) | 2019.03.14 |
안드로이드 퍼미션 받아야하는 것들 (0) | 2019.03.14 |