listView分割线

<ListView android:id="@id/android:list" 
  android:layout_width="fill_parent"  
  android:layout_height="fill_parent" 
  android:layout_weight="1" 
  android:headerDividersEnabled="false" 
  android:footerDividersEnabled="true" 
  android:divider="@drawable/list_divider" 
  android:dividerHeight="1dip" 
  android:cacheColorHint="#FFFFFF" 
/> 
<?xml version="1.0" encoding="utf-8"?> 
<layer-list 
    xmlns:android="http://schemas.android.com/apk/res/android"> 
    <item> 
        <shape> 
            <gradient 
                android:startColor="#000000" 
                android:centerColor="#CCCCCC" 
                android:endColor="#FFFFFF" 
                android:height="1px" 
                android:angle="0" /> 
        </shape> 
    </item> 
</layer-list> 

 

你可能感兴趣的:(xml,android)