Because of the project needs, the manager called me to do a waterfall stream view, on the Internet to find several current mainstream waterfall flow solutions. Finally, the respective solutions were studied, and I chose the stageredgridview. You can find them on GitHub. But in the end I found that using Stageredgridview to achieve pull-down refresh, pull-up loading more inconvenient, and stageredgridview in a lot of features are not perfect. After thinking, after several setbacks I still found a breakthrough in the Stageredgridview.
Goal: Because of the drop-down refresh, pull-up loading more, online already in a lot of related solutions, I studied these solutions, found a common point, are in the ListView, GridView, ScrollView processing. There is currently a project on GitHub called Pulltorefresh, can be used directly in the ListView, GridView, ScrollView, on the Stageredgridview is not applicable. Think about, if can make a such a control, any view (such as: LinearLayout,) put in it, it is very convenient to implement this function, that is how good ah. I think of a set of solutions, I hope we can discuss together, advice.
Scenario: In a relativelayout, put 5 layouts first (of course it can be arbitrary, I choose linearlayout). As shown in the following illustration:
Under such a scheme, I tested the stageredgridview,srcollview separately. can achieve the desired effect, because the project is not too much to test other views, this is what I took out to discuss the purpose, I hope that we can improve together.
Example effect: Here is the effect diagram of my test Stageredgridview.
Initializing the interface
In the drop-down process
Prompt to update
In update
Hint Pull-up load
Release load More
Load in
You can also drag left
You can also right-drag
Source: Resource