1. 程式人生 > >用shape畫一個圓角矩形框

用shape畫一個圓角矩形框

<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 內部顏色 -->
<solid
android:color="#ffffff" />
<!-- 邊緣線條顏色 -->
<stroke
android:width="1dp"
android:color="@color/rgb53_99" />
<!-- 圓角的幅度 -->
<corners
android
:topLeftRadius="5dip" android:topRightRadius="5dip" android:bottomLeftRadius="5dip" android:bottomRightRadius="5dip" /> </shape>