Android顏色漸變的分隔線(ListView)

shape.xml
android

xxide

<?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>
spa

ooxml

在ListView中這樣設置(xml):utf-8

ooio

  android:divider="@drawable/shape"
  android:dividerHeight="2dp"
coding

xxList

相關文章
相關標籤/搜索