可以在布局文件中设置自定义的这些样式,使用方法如下:
<com.handmark.pulltorefresh.libaray xmlns:ptr=“http://schemas.android.com/apk/res-auto”
android:id=“@+id/lv”
android:layout_width=“match_parent”
android:layout_height=“match_parent”
android:background=“@color/white”
android:cacheColorHint=“#00000000”
android:divider=“@drawable/border”
android:fadingEdge=“none”
android:fadingEdgeLength=“0dip”
android:scrollbars=“none”
android:scrollingCache=“true”
ptr:ptrDrawable=“@drawable/infzm_logo”
/>
注意:需要声明命名空间:xmlns:ptr=http://schemas.android.com/apk/res-auto