边框,圆角,都可以实现的
在drawable目录下添加view_yuan_morelist.xml,设置控件的边框代码。如下:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ff0000ff"/>
<stroke android:width="1dp" android:color="#000000" />
<gradient
android:startColor="#FFFFFF"
android:endColor="#FFFFFF"/>
<padding android:left="7dp"
android:top="7dp"
android:right="7dp"
android:bottom="7dp" />
<corners android:radius="10dp" />
</shape>
调用样式只要设置控件的android:background="@drawable/view_yuan_morelist"