InfiniteViewPager

A modified ViewPager that allows infinite paging

Лицензия

Лицензия

Группа

Группа

com.thehayro
Идентификатор

Идентификатор

infiniteviewpager
Последняя версия

Последняя версия

0.4
Дата

Дата

Тип

Тип

apklib
Описание

Описание

InfiniteViewPager
A modified ViewPager that allows infinite paging

Скачать infiniteviewpager

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.google.android : support-v4 jar r13

provided (1)

Идентификатор библиотеки Тип Версия
com.google.android : android jar 4.3_r1

Модули Проекта

Данный проект не имеет модулей.

InfiniteViewPager

InfiniteViewPager is a modified ViewPager that allows infinite paging.

Usage

Bind it in your layout:

<com.thehayro.view.InfiniteViewPager 
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"/>

Setup the adapter:

public class MyInfinitePagerAdapter<T> extends InfinitePagerAdapter {  // ...
}

And initialize with any init value:

MyInfinitePagerAdapter<Integer> adapter = 
                    new MyInfinitePagerAdapter<Integer>(0);

Bind the adapter to the InfiniteViewPager with:

// ...
InfiniteViewPager pager = (InfiniteViewPager) findViewById(R.id...);
pager.setAdapter(adapter);

Also see website for further details.

Changelog

  • 0.4.1 fix #1 (thanks to RogerParis)
  • 0.4 added OnInfinitePageChangeListener
  • 0.3 fixed some errors
  • 0.2 Added custom 'setCurrentItem()'
  • 0.1 initial release

License

Apache Licence

Версии библиотеки

Версия
0.4
0.3