반응형
Notice
Recent Posts
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- google-login
- hung-up
- Firebase
- 워치
- TIZEN
- 오즈뷰어
- gradle
- NoSuchMethodError
- socket.io
- ActivityResult-API
- ozd
- Kotlin
- AWS
- firebase-database
- Java8
- mosquitto
- cloud-firestore
- git
- mqtt
- socket-client
- git-push
- Android
- JNI
- OZViewer
- Galaxy Watch
- socket-server
- firebase-storage
- BottomSheetDialog
- Dva
- Flavors
Archives
- Today
- Total
Hyeyeon blog
[Android] 둥근 모서리 레이아웃 적용하기 본문
반응형
1. round.xml
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/colorPrimaryDark"/>
<corners android:radius="10dp"/>
<padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" /></shape>2. 레이아웃의 background로 지정
<FrameLayout
android:id="@+id/layout"
android:background="@drawable/round"
... >
3. 해당 레이아웃에 clipToOutline() 설정
layout.clipToOutline = true
728x90
'개발 > Android' 카테고리의 다른 글
| [Android] Kotlin - Room Database (0) | 2019.03.19 |
|---|---|
| [Android] Recyclerview.Adapter notifyItemChanged 애니메이션 제거 (0) | 2019.03.12 |
| [Android] Kotlin - SMS Retriever API (0) | 2019.02.15 |
| [Android] Kotlin - Higher-order Function (0) | 2019.01.30 |
| [Android] Databinding - EditText의 OnTextChanged() 구현 (0) | 2019.01.30 |
Comments