Coder Social home page Coder Social logo

android-pulltorefresh's Introduction

Android-Pulltorefresh

Gmail like pulltorefresh w/o breaking touch interactions

Of course, ListView is one of the mostly used GUI structure for displaying list of scrollable items, and Android Developers have put a lot of effort to make it beautiful, responsive, and memory efficient. Pull To Refresh is/was innovative and sleek UX design to refresh the list data. And it's Twitter who rendered this new way of refreshing list data first, instead of doing a button click. And it became viral, got a lot of attention. Twitter patented the gesture in 2010, in year 2013 Twitter officially announced that the patent will be used only for defensive purpose, anyone using it can continue the usage without any issues. This year Google updated their Apps (Gmail, G+) and integrated their own, a variant of pull to refresh design. But its touch interaction is broken in a way. You can't do pull to refresh while you are scrolling the list. List's first item needs to be positioned at the top to occur the pull to refresh gesture. ie, First you have to scroll the list to top, leave the touch (scroll gesture) and then start the pulling.

This sample code will help you write custom pulltorefresh without breaking touch interactions. !!!

The whole logic is explained in the following blog/link http://im-dexter.blogspot.in/2013/10/write-your-own-android-pull-to-refresh.html . Feel free to look into it.

Thanks

android-pulltorefresh's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.