1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <!-- 填充颜色 --> <solid android:color="#FFFFFF" > </solid> <!-- 线的宽度,颜色灰色 --> <stroke android:width="1dp" android:color="@color/bg_list_item_shape_color" > </stroke> <!-- 矩形的圆角半径 --> <corners android:radius="0dp" /> </shape>