자료

둥근 모서리 만들기

사진미소 2011. 6. 24. 08:46

res/drawable에 com_corner_ round.xml만들고

<?xml version="1.0" encoding="UTF-8"?>

<shape xmlns:android="http://schemas.android.com/apk/res/android">

    <solid android:color="#99FFFFFF"/>

    <corners android:radius="15dip"/>

    <padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" /> 

</shape>



적용할 레이아웃의 백그라운드를 지정
android:background="@drawable/com_rounded_corner"

끝~!