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属性调用就可以了。
posted @ 2013-08-09 10:58  HanleyTang  阅读(761)  评论(0编辑  收藏  举报