去除ListView下拉的到顶部或底部的渲染色
listview_ticket_chil.setOverScrollMode(View.OVER_SCROLL_NEVER);
用于圆角背景或item
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="#ffffff" /> <stroke android:width="1dp" android:color="#EBEBEB" /> <corners android:bottomLeftRadius="4dp" android:bottomRightRadius="4dp" android:topLeftRadius="4dp" android:topRightRadius="4dp" /> </shape>
listview item块状
<ListView android:id="@+id/listview_ticket_chil" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="10dp" android:background="#EBEBEB" android:cacheColorHint="#00000000" android:divider="#EBEBEB" android:dividerHeight="8dp" android:scrollbars="none"></ListView>
<p>版权声明:本文为博主原创文章,未经博主允许不得转载。</p>