ListView加边框

在drawable加一个xml文件 内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
        <stroke android:width="1dp" android:color="#F07BA210" />
</shape>
然后再listview里用background属性调用就可以了。
原文地址:https://www.cnblogs.com/hanleytang/p/3247655.html