自己用xml实现shape,需要绘制边框,最后的结果如下!
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:right="0dp"> <shape android:shape="rectangle" > <solid android:color="@color/greennormal" /> </shape> </item> <item android:right="1dp" android:top="1dp" android:left="1dp" android:bottom="1dp"> <shape android:shape="rectangle" > <solid android:color="@color/white" /> </shape> </item> </layer-list>
原文地址:http://blog.csdn.net/zhangxiweicaochen/article/details/41481463