lcodecorex / TwinklingRefreshLayout

RefreshLayout that support for OverScroll and better than iOS. 支持下拉刷新和上拉加载的RefreshLayout,自带越界回弹效果,支持RecyclerView,AbsListView,ScrollView,WebView
Apache License 2.0
4k stars 672 forks source link

在 xml中配置tr_enable_loadmore不起作用, 必须在代码中调用setEnableLoadmore才其作用 #74

Closed zzh1026 closed 7 years ago

zzh1026 commented 7 years ago

在 xml中配置swip:tr_enable_loadmore="false"不起作用, 必须在代码中调用refreshLayout.setEnableLoadmore(false)才起作用 , 这是怎么回事呢?是不是xml中的一些配置不起作用啊

lcodecorex commented 7 years ago

好的。感谢反馈!我测试一下

zzh1026 commented 7 years ago

你好, 在设置是否可以加载更多的时候 public void setEnableLoadmore(boolean enableLoadmore1) { enableLoadmore = enableLoadmore1; if (mBottomView != null) { if (enableLoadmore) mBottomView.getView().setVisibility(VISIBLE); else mBottomView.getView().setVisibility(GONE); } } 但是在设置是否可以下拉加载更多的时候 public void setEnableRefresh(boolean enableRefresh1) { this.enableRefresh = enableRefresh1; } 这块没有更新,所以没有起作用吧, 应该这里也得隐藏控件布局的. 然后在初始话的时候 addHeader,和addFooter 的时候没有根据是否隐藏头尾布局来进行控件隐藏

lcodecorex commented 7 years ago

v1.07版已修复!