Waterfall stream, drop-down refresh, pull up load more

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.