Android dropdown Refresh Pull-up load a variety of application scenarios Super Big Broadcast (on)

Source: Internet
Author: User

Reprint please indicate the original address:http://blog.csdn.net/yalinfendou/article/details/47707017

about AndroidDrop-down refresh pull-up loading, online demo too Much too much, here is not to introduce how to achieve dropdown refresh Pull-up loading, but for the pull-up refresh pull-up load commonly used some of the application scenarios on the line of some summary, including drop-down refresh the pull-up load encountered during the some Resolution of the gesture conflict problem ( can only be considered as a call to ) .

       last September, when I was doing the Android project on my own. Remember just finished the ListView list page (The wood has a drop-down refresh, pull-up loading), there is only a simple paging function, that is, when the ListView swipe to the bottom of the time, will go to request the next page of data, but not the load more footerview. The company's product Wang came to see my implementation of the effect, said: How did not pull the refresh, pull load ah, this is the app standard Ah!

       because at that time really too much food, just will hello world soon, but also rush to catch the project, although later was toss out, But I remember very well that it was a great craving for someone to give me a perfect demo. Later contact things more long, found in fact dropdown refresh, pull-up loading is simple, slightly more complicated is that some use scenarios, need to solve some gesture conflict problems. Therefore, I hope that the demo can be not familiar with the drop-down refresh, pull-loaded children's shoes have a little help, the great gods have floated!

Why is there no recyclerview pull-up loading in the demo?

git also looked for some, oneself also tried to write some demo, although the function can also be realized, but the effect can not let oneself satisfied, so here does not consider Reclerview!

Why is the item not full screen when initializing?

Because there are some apps on the market pull-up pull-up loading does not consider the item dissatisfaction screen situation, there will be some exceptions (perhaps because of this situation is very rare), even on git, many people are using the Pull-to-refresh, in the case of item dissatisfaction screen, pull up load more, Loading's footerview will cling to the last item, rather than at the bottom of the screen, and the individual doesn't like this unfriendly interaction.

       because of the knowledge points involved a bit miscellaneous, a lot of knowledge points can not go to the blog, the main introduction is Android Drop-down refresh pull-up loads multiple scenarios.

      Demo contains some of the main points of knowledge: The event distribution mechanism for view and ViewGroup, Drawerlayout slide-by menu, Swipelistview slide Delete, waterfall stream photo wall effect (refer to great god Guo Lin Code, made a little change," picture Carousel, Pagerslidingtabstrip,tablayout,vewpager and so on the use of methods in the demo will be part of the embodiment, Online about these aspects of the blog too much, I also learn from others, so it is recommended to familiarize yourself with the above knowledge points, at least see the code to understand some of it.

A drop-down refresh on a pull-up loading control should be noted:

    • Easy to use and can be used in many situations
    • Resolve some gesture slip conflicts
The demo contains some common pull-refresh pull-up loading usage scenarios (QQ, NetEase, pea pods, Youku and other apps above are all seen, only to say that the domestic app looks too much like).
  1. Basic ListView drop-down refresh pull-up load
  2. Basic GridView Dropdown Refresh pull-up load
  3. Basic ScrollView pull-up reload, including Button,textview,imageview
  4. Drawerlayout in the ListView dropdown refresh Pull-up load, resolve drawerlayout side-slip with the ListView drop-down gesture conflict
  5. Swipelistview drop-down refresh pull-up load, fix sliding deleted item with ListView drop-down gesture conflict
  6. Multicolumn Waterfall Stream drop-down refresh pull-up load
  7. listview+ Image Carousel Pull-up load, solve carousel image sliding with listview drop-down gesture conflict
  8. pagerslidingtabstrip+listview+ Picture Carousel Dropdown Reload Pull-up load, fix Viewpager, carousel picture Slide, ListView pull-up gesture conflict
  9. ...... Continue to add not completed

Demo:



read the demo should be on the Code and demo source , because the recent small busy little worry Mulberry, there are some drop-down refresh loading application scenario is not finished, so the code and demo will be in the later blog.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android dropdown Refresh Pull-up load a variety of application scenarios Super Big Broadcast (on)

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.