1.布局方式
在drawable文件夹新建一个xml文件,里面内容如下:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke android:color="@color/colorAccent" android:width="1dp"
1.布局方式
在drawable文件夹新建一个xml文件,里面内容如下:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke android:color="@color/colorAccent" android:width="1dp"