2019独角兽企业重金招聘Python工程师标准>>>
shape.xml
xx
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient
android:startColor="#00000000"
android:centerColor="#000000"
android:endColor="#00000000"
/>
<corners
android:radius="4dp"
/>
</shape>
oo
在ListView中这样设置(xml):
oo
android:divider="@drawable/shape"
android:dividerHeight="2dp"
xx