Browse files

Edited readme to point people to Google's new ViewPager library instead

  • Loading branch information...
1 parent 531474b commit cc13b0a0f8534b204ea87148660850c13f59ee17 @ysamlan committed Aug 24, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.markdown
View
3 README.markdown
@@ -1,5 +1,8 @@
HorizontalPager for Android
==============
+
+((NOTE)) This library is obsoleted by Google's release of their own [ViewPager](http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+blogspot%2FhsDu+%28Android+Developers+Blog%29) 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](http://marcreichelt.blogspot.com/2010/09/android-use-realviewswitcher-to-switch.html). 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](https://github.com/ysamlan/horizontalpager/blob/master/src/com/github/ysamlan/horizontalpager/HorizontalPagerDemo.java) to get you started in addition to the [more complex one](https://github.com/ysamlan/horizontalpager/blob/master/src/com/github/ysamlan/horizontalpager/TabbedHorizontalPagerDemo.java) with an [XML layout](https://github.com/ysamlan/horizontalpager/blob/master/res/layout/activity_tabbed_horizontal_pager_demo.xml)), or just grab the [PageSwitcher class](https://github.com/ysamlan/horizontalpager/blob/master/src/com/github/ysamlan/horizontalpager/HorizontalPager.java), drop it into your app, and get rolling.
![PageSwitcher screenshot](http://ysamlan.github.com/horizontalpager/horizontal-pager-screenshot.png)

0 comments on commit cc13b0a

Please sign in to comment.