MagicHeaderViewPager
Android HeaderViewPager control. A ViewPager with a header can be fixed and many scrollable Fragments (listFragments, gridFragments and ScrollFragments) inside.
Install / Use
/learn @XAVlER-S/MagicHeaderViewPagerREADME
Deprecated
This project is archived.
MagicHeaderViewPager
HeaderViewPager with a header can be fixed and many scrollable Fragments (listFragments, gridFragments and ScrollFragments) inside.
Introduction
0. Example
0.1、Simply immobilizing tabs and keeping locaiton
<br>
<br>
0.2、Support large Header taller than screen
<br>
<br>
0.3、Support Mixed ListView items and their heights need not be the same
<br>
<br>
0.4、Combined with pull to refresh
<br>
<br>
0.5、Magic header can be drag down as you like. The header and inner ListView(ScrollView) can respond touch respctively
<br>
<br>
0.6、Inner Scroller(ListView、GridView、ScrollView) can be scrolled even if content is null, and the empty content can be customized to improve user experience
<br>
<br>
0.7、Dispatch touch event as expected
<br>
<br>
0.8、Example of height auto completion: empty content colored green, and auto completion colored blue
<br>
<br>
1. Dependency
Add the following lines to your build.gradle for pure MagicHeaderViewPager.
dependencies {
compile 'com.culiu.android:mhvp-core:2.1.2@aar'
}
For using integrated Pull-To-Refresh:
dependencies {
compile 'com.culiu.android:mhvp-core:2.1.2@aar'
compile 'com.culiu.android:mhvp-integrated-ptr:2.1.2@aar'
}
For more details, see Guide or Demo.
Developed By
- Xavier S - Xavier-S@foxmail.com X.S.Xavier.S@gmail.com
- https://github.com/XavierSAndroid https://github.com/CuliuDev
License
Copyright (c) 2015 Xavier-S
Licensed under the Apache License, Version 2.0
