Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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!