Android drop-down refresh pull-up loads a variety of application scenarios Super Big Broadcast (top)

Source: Internet
Author: User

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

about AndroidDrop-down refresh pull-up, online demo too Much too much, here is not to introduce how to achievePull-up refreshes the pull-up, but it's a summary of some of the scenarios that are often used for pull-up refresh loading, includingDrop -down refresh encountered during pull-up loadingA fewa solution to the problem of gesture conflict ( only as a way of doing it)。

last September. At that time, I was doing the Android project independently.

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 no one loaded in many other footerview. The company's only product Wang came to see the effect of my implementation. said: How not to pull the refresh, pull up ah, this but the app standard Ah!

Because it was really too much food at that time, just will hello World soon, but also rush to catch the project. Although later also toss out. But I clearly remember that time is very eager for someone to give me a perfect demo ah.

The thing that came into contact later was much longer. Discover the fact that the drop-down refreshes. Pull-up loading is easy, slightly more complex is the use of certain scenarios, need to solve some gesture conflict problems. so. Hope that the demo can be unfamiliar 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?

in git also looked for some, oneself also tried to write some demo, although function also can realize. But the effect does not make oneself comfortable, so here does not consider Reclerview!

Why is the item not full screen when initializing?

There are some exceptions (perhaps due to the fact that this is rare) because some of the apps on the market now pull up and load up without considering the item's dissatisfaction screen. Even on git. A lot of people are using the Pull-to-refresh, in the case of the item is not satisfied with the screen, pull loading many other time. Loading's footerview will stick to the last item below, not at the bottom of the screen. Individuals are less likely to like this unfriendly way of interacting.

Because of the knowledge points involved is a bit miscellaneous, a lot of knowledge is not to go to the blog in detail, here is the main introduction of the Android pull-down refresh loading into a variety of application scenarios.

      demo includes some basic points of knowledge: The event distribution mechanism for view and ViewGroup, the Drawerlayout-slide menu, Swipelistview Slide Delete. Waterfall Flow Photo Wall effect (refer to great god Guo Lin Code, made a little modification", picture carousel. Pagerslidingtabstrip,tablayout,vewpager and other usage in the demo will be part of the show, 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 first. At least look at the code to make it clear.

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

    • Easy to use and can be used in many situations
    • Resolve some gesture slip conflicts
The demo includes some common pull-flush pull-up loading into the usage scenario (QQ. Netease. Pea pods. You'll see it all in apps like Youku. Only can say that the domestic app looks too much like.
  1. Basic ListView drop-down refresh pull-up loading
  2. Basic GridView drop-down refresh pull-up loading
  3. The basic ScrollView drop-down refreshes the pull-up loading. including Button,textview. ImageView
  4. Drawerlayout in the ListView drop-down refresh pull-up to resolve the drawerlayout side slip with the ListView drop-down gesture conflict
  5. Swipelistview pull-down refresh pull-up loading. Fix sliding deleted item with ListView drop-down gesture conflict
  6. Multicolumn Waterfall Stream drop-down refresh pull-up loading
  7. listview+ Picture Carousel drop-down refresh pull-up to resolve carousel image sliding with listview drop-down gesture conflict
  8. pagerslidingtabstrip+listview+ Image Carousel Pull-up reload. Solve Viewpager, carousel picture Swipe, ListView pull-up gesture conflict
  9. ...... Continue to join not completed

Demo:



The demo should be on the code and the demo source code , due to the recent small busy little worry Mulberry, and some of the drop-down refresh loading of the application scenario is not finished, so the code and demo will be in the back of the blog.


A good optimization before uploading. Recently too busy, I put the code out, Sorry ...

CSDN:http://download.csdn.net/detail/yalinfendou/9187925

Android drop-down refresh pull-up loads a variety of application scenarios Super Big Broadcast (top)

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.