【问题标题】:PullToRefresh always have shadow at the top and bottom of listview.How to hide it?PullToRefresh 在 listview 的顶部和底部总是有阴影。如何隐藏它?
【发布时间】:2013-05-31 04:26:04
【问题描述】:

我在我的应用中添加了 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 listview pull-to-refresh


    【解决方案1】:

    我认为是分隔线,去掉

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

    它现在应该可以工作了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-27
      • 2015-02-28
      • 1970-01-01
      • 2011-10-04
      • 1970-01-01
      相关资源
      最近更新 更多