SwipeToLoadLayout
SwipeToLoadLayout copied to clipboard
A reusable pull-to-refresh and pull-to-loadmore widget
add a switcher whither hiding headerView/footView when refreshing/loadingmore. I think keep the headerView/footView while refreshing/loadingmore is not good for user, so I add this switcher to give more choices. I...
我头部使用的是项目demo中的GoogleCircleHookRefreshHeaderView 我碰上了一个使用自动刷新( swipeToLoadLayout.setRefreshing(true))的时候,看不到头部视图,但是,控件会下移,并且也回调了。 我测试了一下,没有找到问题所在,希望能得到指点一下.
…bled=false 1. upgrade gradle
刷新状态的改变
SwipeToLoadLayout的刷新过程中是停留在顶部的, 可不可以加一种状态就是在刷新的时候 可以像其他刷新一样在刷新的过程中上划隐藏头部. 还望作者可以帮忙解决, 本来想自己改的但是没有搞定. 希望作者可以联系我 或者直接在这里回复我. [email protected].谢谢
先看布局 ``` xml ``` 上面 `` 就是下面的 AppBarLayout。 中间的 FrameLayout 是主内容,是给Fragment的,Fragment的布局就是你的SwipeToLoadLayout AppBarLayout ``` xml ``` SwipeToLoadLayout ``` xml ``` 再看截图 这是初始状态  上面蓝色区域整个都是 AppBarLayout,里面就是自己加了几个image和button。 蓝色区域下面就是你的SwipeToLoadLayout。 初始状态下下拉当然是没有问题的,如下图  当屏幕往上滚动的时候,AppBarLayout 整个会一起滚上去,然后往下滚动的时候,AppBarLayout 会马上出现,等...
刷新效果不对
使用的这个类SwipToLoadLayoutGoogleCustomHeader 下拉刷新的时候 ,那个圆圈我建议是怎么出来就怎么回去,刷新完成了之后 会 慢慢缩回去,有时候会直接消失,刷新完成之后直接消失 这个问题请问怎么解决。
很棒的代码。:D 但是我在使用的时候发现 定制下拉刷新的头部布局文件中,控件貌似必须要给出精确的宽度或者默认值,否则就显示不出来…譬如TextView 要么指定宽度,要么设置android:text=”xxx“ 否则下拉的时候就是空白的,但是功能都是正常的。