# Android-DirectionalViewPager
**Repository Path**: androidfuntor/Android-DirectionalViewPager
## Basic Information
- **Project Name**: Android-DirectionalViewPager
- **Description**: Android-DirectionalViewPager
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 2
- **Created**: 2014-10-09
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Android DirectionalViewPager
============================
Implementation of the [compatibility library][1] `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][4].
![Example Image][3]
Usage
=====
*For a working implementation of this project see the `sample/` folder.*
1. Include the widget in your view.
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.
2. 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][2] 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:
com.directionalviewpager
library
1.2.0
You must also include the following repository:
com.jakewharton
http://r.jakewharton.com/maven/release
Developed By
============
* Jake Wharton -
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.
[1]: http://developer.android.com/sdk/compatibility-library.html
[2]: https://github.com/JakeWharton/Android-DirectionalViewPager/downloads
[3]: https://raw.github.com/JakeWharton/Android-DirectionalViewPager/master/sample/screens.png
[4]: https://market.android.com/details?id=com.directionalviewpager.sample