본문 바로가기
Android 기법/# Study

[Android/안드로이드]동그란 배경, 테두리

by 퍼즐잎 2017. 2. 13.
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" android:padding="15dp">
    <solid android:color="#ffff"/>
    <corners
        android:bottomRightRadius="7dp"
        android:bottomLeftRadius="7dp"
        android:topLeftRadius="7dp"
        android:topRightRadius="7dp"/>
    <stroke android:width="1dp"
        android:color="#3d8b8b"
        />
</shape>
cs


xml로 만들고 background로 사용할 수 있다.

댓글