[DEPRECATED] Implementation of the compatibility library ViewPager class that supports paging both vertically and horizontally.

Min SDK   4
Latest Commit   2011-10-20 22:02:37
License   Apache-2.0

Github   https://github.com/JakeWharton/Android-DirectionalViewPager

         

Using app client to scan QR code to run Demo


...

JakeWharton
Google, Inc.
Pittsburgh, PA, USA

http://jakewharton.com

         

Similarily...
Android-ConvenientBanner Simple and convenient banner, loop viewpager with 3D effects
MagicViewPager 单页显示3个Item的ViewPager炫酷切换效果,适用于Banner等。
AdvancedPagerSlidingTabStrip Android AdvancedPagerSlidingTabStrip是一种Android平台的导航控件,完美兼容Android自带库和兼容库的ViewPager组件。
README

README.md

Android DirectionalViewPager

Implementation of the compatibility library ViewPager class that supports paging both vertically and horizontally as well as changing between the two at runtime.

Try out the sample application on the Android Market.

Example Image

Usage

For a working implementation of this project see the sample/ folder.

  1. Include the widget in your view.

    <com.directionalviewpager.DirectionalViewPager android:id="@+id/pager" android:layout_height="fill_parent" android:layout_width="fill_parent" />

By default the widget will page horizontally. You can alter this behavior by
including `android:orientation="vertical"` in the layout or by calling
`setOrientation(DirectionalViewPager.VERTICAL)` in your code.
  1. In your onCreate method (or onCreateView for a fragment), bind to a PagerAdapter implementation.

    DirectionalViewPager pager = (DirectionalViewPager)findViewById(R.id.pager);
    pager.setAdapter(new TestAdapter(getSupportFragmentManager()));
    

Including In Your Project

Android-DirectionalViewPager is presented as a standalone .jar file. It should included in addition to the compatibility library .jar.

You can download the file from the GitHub downloads page or compile your own by running mvn clean package (it will be in the library/target/ folder).

If you are using maven you can easily include the library by specifying it as a dependency:

<dependency>
  <groupId>com.directionalviewpager</groupid>
  <artifactId>library</artifactId>
  <version>1.2.0</version>
</dependency>

You must also include the following repository:

<repository>
  <id>com.jakewharton</id>
  <url>http://r.jakewharton.com/maven/release</url>
</repository>

Developed By

License

Copyright 2011 Jake Wharton
Copyright 2011 Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.