Android分页UI库:Android-ParallaxHeaderViewPager

jopen 10年前

这是一个Android分页UI库。(就像在Play NewsStand应用中的pager UI)

为使用这个项目你需要添加:

  1. NineOldAndroids (https://github.com/JakeWharton/NineOldAndroids)
  2. Appcompat (http://developer.android.com/tools/support-library/features.html#v7-appcompat)
    Android分页UI控件: Android-ParallaxHeaderViewPager

此外还用到下两个很好的库.

  1. NotBoringActionBar (https://github.com/flavienlaurent/NotBoringActionBar)
  2. PagerSlidingTabStrip (https://github.com/astuetz/PagerSlidingTabStrip)
如何实现:
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.

项目主页:http://www.open-open.com/lib/view/home/1404283481217