Foreword: Because the project needs, the manager calls me to do a waterfall flow view, has looked for several current mainstream waterfall flow solution on the net. Finally, the respective solutions were studied, and I chose the stageredgridview. We can find it on the GitHub. But in the end, I found that it is inconvenient to use Stageredgridview to pull down and load more, and Stageredgridview is not perfect in many functions. After thinking over and over, I still found a breakthrough in the Stageredgridview.
Goal: As a result of Drop-down refresh, pull load more, online has been a lot of related solutions, I studied these solutions, found a common ground, are in the ListView, the GridView, ScrollView on the deal. Including the current GitHub on a project called Pulltorefresh, can be used directly in ListView, GridView, ScrollView, in the Stageredgridview is not applicable. Think for a moment, if you can do a control like this, arbitrary view (such as: LinearLayout,) placed in it, can be very convenient to achieve this function, that should be much better. I think a set of solutions, I hope that we can discuss, advice.
Solution: 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 tight to test other views, this is what I took out the purpose of discussion, I hope that we can improve together.
Instance effect: Below is my test Stageredgridview's effect.
Initialize interface
In the process of pulling down
Hints can be updated
In the update
Hint Pull up load
Release load More
In load
You can also drag left
You can also drag right
Source: Resource