简体   繁体   中英

PullToRefresh always have shadow at the top and bottom of listview.How to hide it?

I add PullToRefresh( https://github.com/chrisbanes/Android-PullToRefresh ) Listview in my app.

Then scroll it to the bottom or top ,it auto show the shadow. 在此处输入图片说明

And i set some attribute in xml like

    <com.handmark.pulltorefresh.library.PullToRefreshListView
    android:id="@+id/pull_refresh_list"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:cacheColorHint="#00000000"
    android:divider="#19000000"
    android:dividerHeight="4dp"
    android:fadingEdge="none"
    android:fastScrollEnabled="false"
    android:footerDividersEnabled="false"
    android:headerDividersEnabled="false"
    android:scrollingCache="false"
    android:smoothScrollbar="true" />

It could not hide it.

Any one could help me??

Thanks

It is the divider I think, remove

android:divider="#19000000"
android:dividerHeight="4dp"

and it should work now

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM