问题描述
有没有办法使用SwipeRefreshLayout刷新ListView控件时,它从底部拉?
Is there a way to use SwipeRefreshLayout to refresh ListView when it's pulled from bottom?
我创造了自上拉,但我还需要从底部拉。有关于如何创建自上拉很多教程,但我找不到任何教程拉从底部?
I created pull from top, but I would also need pull from bottom. There are many tutorials on how to create pull from top, but I couldn't find any tutorials for pull from bottom?
推荐答案
SwipeRefreshLayout从Android的支持库版本21没有从下方支撑拉动。我做了修改SwipeRefreshLayoutBottom与基于原有SwipeRefreshLayout code。它完全基于原有的谷歌code坐标的只是反转和新所著canChildScrollDown方法。所有的修改都被标记为TODO。
SwipeRefreshLayout from Android Support Library version 21 does not support pull from bottom.I have made modification SwipeRefreshLayoutBottom with is based on original SwipeRefreshLayout code.It is fully based on original Google code with just inversion of coordinates and newly writed canChildScrollDown method. All modification are marked as TODO.
这篇关于SwipeRefreshLayout - 拉从底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!