Git Product home page Git Product logo

horizontalpager's Introduction

HorizontalPager for Android

((NOTE)) This library is obsoleted by Google's release of their own ViewPager library as part of the Android Compatibility Package, revision 3. I would recommend using that for any new development.

HorizontalPager is a modified version of Marc Reichelt's RealViewSwitcher. It's essentially a horizontal ScrollView that snaps to a full-width child (like the Android homescreen's switching behavior). This modified version supports vertically scrolling children inside the view (Lists, vertical ScrollView children), animates a little more quickly and consistently to views regardless of how "far away" a child is when the animation is requested, scrolls a bit more easily, and is screen-density-neutral regarding swipe sensitivity. It also includes a demo of how you can nest vertically scrolling elements inside the pager and use a RadioGroup as a tablike controller to switch pages (somewhat like the Android 2.0+ News widget). There's a simple demo to get you started in addition to the more complex one with an XML layout), or just grab the PageSwitcher class, drop it into your app, and get rolling.

PageSwitcher screenshot

License

Like Marc's original, this modified version is released under an Apache 2.0 license.

horizontalpager's People

Contributors

ysamlan avatar

Stargazers

Pham Trung Phuong avatar

Watchers

Pham Trung Phuong 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.