четверг, 2 октября 2014 г.

ParallaxHeaderViewPager Sample

This Sample Application is pager UI for Android.
(such as pager UI in Play NewsStand Application)

I made this based on very good libraries such as below.

NotBoringActionBar (https://github.com/flavienlaurent/NotBoringActionBar)
PagerSlidingTabStrip (https://github.com/astuetz/PagerSlidingTabStrip)
How to implement? see below.
1. Change ListView in NotBoringActionBar to ViewPager.
2. Make ListView or ScrollView of Fragment in ViewPager.
3. Make Interface that Activity can get a Listener when you use OnScroll() in ListView or ScrollView.
4. Make Interface which is available to scroll when some events is happened in ListView or ScrollView.

From now on, you can fix scrollY value in ListView wherever the pages are swiped through the interface you've just made.
—-
개발자 연락처 :




Комментариев нет:

Отправить комментарий