Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ozodrukh/oviewpager
ViewPager where you can manage page scroll animation in setCurrentItem
https://github.com/ozodrukh/oviewpager
Last synced: about 2 months ago
JSON representation
ViewPager where you can manage page scroll animation in setCurrentItem
- Host: GitHub
- URL: https://github.com/ozodrukh/oviewpager
- Owner: ozodrukh
- License: other
- Created: 2013-08-12T09:39:25.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-12T13:17:07.000Z (over 11 years ago)
- Last Synced: 2024-04-16T12:12:05.132Z (8 months ago)
- Size: 148 KB
- Stars: 31
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
OViewPager
==========This is ViewPager with handling duration page changing
i modifed stock ViewPager class, and added 2 methods
```java
setCurrentItem(int position, int duration)
smoothScrollToWithDuration(int x, int y, int duration)
```Documantation
=============Copy `src/OViewPager.java` then add it to your package. And see some code below
```xml
```
``` java
int position = 15;
int duration = 5000;OViewPager mPager = (OViewPager) findViewById(R.id.pager);
mPager.setAdapter(mAdapter)
mPager.setCurrentItem(position, duration);
```## Some Information
* Tested on Galaxy Nexus
* Tested with 100 Elements
* 100% support Android 4.0+
* Can't garrant with memory issue##Thanks!