drawable폴더에서 xml을 만들어줍니다.
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FFFFFF"/>
<stroke android:width="3dip" android:color="#B1BCBE" />
<corners android:radius="10dip"/>
<padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
</shape>
둥글게하고싶은 레이아웃에 적용
android:background="@drawable/rounded"
'안드로이드' 카테고리의 다른 글
구글 핏 api 걸음 히스토리 받아오기 (google fit Api - get step count last 10 days) (0) | 2019.08.07 |
---|---|
카카오톡으로 로그인하기(구버전 버그 해결) (0) | 2019.08.07 |
안드로이드 Google Admob 구현하기 (0) | 2019.07.07 |
안드로이드 8.0(api26) 알림채널 생성하기 (notification channel) (0) | 2019.07.06 |
Android Splash 화면을 구현하는 올바른 방법 (0) | 2019.06.12 |