Notice
Recent Comments
Link
JY-Dev Tech Blog
안드로이드(Android) - Round Square 도형 만들기 본문
[OverView]
이번에는 Drawable에 Round Square 도형 만들기에 대해 알려드리겠습니다.
Round Square 같은경우는 Dialog나 Button Background로 많이 사용하실텐데요.
만드는방법은 엄청 간단합니다.
Drawable에 Resource를 생성해줍니다.
[RoundSquare.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="2dp"
android:color="#808080" />
<corners
android:bottomRightRadius="10dp"
android:topLeftRadius="10dp"
android:topRightRadius="10dp"
android:bottomLeftRadius="10dp" />
</shape>
<Solid>
이 Resource의 배경색 지정
<Stroke>
Resource 선의 두께 및 색상
<Coners>
Resource의 Radius 설정
'안드로이드 > 레이아웃' 카테고리의 다른 글
안드로이드(Android) - Spinner Arrow Button(화살표 버튼) 제거 (0) | 2020.08.07 |
---|---|
안드로이드(Android) - Spinner DropDown Option Custom (0) | 2020.08.07 |
안드로이드(Android) - ListView Item Empty일때 다른 뷰 보여주기 (0) | 2020.08.04 |
안드로이드(Android) - Linear Layout 에서 View 하단에 고정시키기 (0) | 2020.07.08 |
안드로이드(Android) - Addview(동적으로 View를 생성해서 추가하는 방법) (0) | 2020.07.08 |
Comments