簡體   English   中英

PullToRefresh始終在列表視圖的頂部和底部都有陰影。如何隱藏它?

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

我在應用程序中添加了PullToRefresh( https://github.com/chrisbanes/Android-PullToRefresh )Listview。

然后將其滾動到底部或頂部,它會自動顯示陰影。 在此處輸入圖片說明

我在xml中設置了一些屬性,例如

    <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" />

它無法隱藏它。

任何人都可以幫助我嗎?

謝謝

我認為是分隔線,移除

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

它現在應該可以工作

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM