在drawable文件夹下创建xml文件,当普通图片使用。
stroke:边框厚度和颜色;
solid:内部颜色;
corners:圆角弧度;
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<stroke android:width="2dip" android:color="#99999999"/>
<solid android:color="#ffffffff" />
<corners android:radius="5dip" />
</shape>