//레이아웃
<xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="1dip" android:color="@android:color/black" />
<shape>
리사이클러뷰에 적용할때 매우 유용 ㅇ.ㅇ
//이미지뷰
<xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#0fff"/>
<stroke android:width="1px" android:color="#000000" />
<padding android:left="1px" android:top="1px"
<android:right="1px" android:bottom="1px" />
<shape>
//둥근 버튼만들기
<xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
<android:shape="rectangle" >
<solid android:color="@null"/>
<corners android:bottomRightRadius="10dp"
<android:bottomLeftRadius="10dp"
<android:topLeftRadius="10dp"
<android:topRightRadius="10dp"/>
<stroke
<android:width="2dp"
<android:color="#ACA7A7" />
<shape>
'Android(JAVA)' 카테고리의 다른 글
레이팅바 (별점) (0) | 2020.04.28 |
---|---|
이미지 크롭 하기 (Android-Image-Cropper 라이브러리) (0) | 2020.04.27 |
textview 글쓰기 초과 표시 (0) | 2020.04.25 |
안드로이드 에러 (계속 추가) (0) | 2020.04.25 |
Java String 클래스 메서드 (0) | 2020.04.14 |