文件名称:Android-DirectionalViewPager
介绍说明--下载内容均来自于网络,请自行研究使用
DirectionalViewPager支持横向和纵向的ViewPager
项目地址:
https://github.com/JakeWharton/Android-DirectionalViewPager
这个别人已经试过了:
Android之仿网易V3.5新特性http://blog.csdn.net/way_ping_li/article/details/9359191
我只是重新测试了一下,感觉可以用。
只是要注意,需要导入-v4.jar包,并且VerticalViewPagerCompat.java一定要放在android.support.v4.view包中,具体见附件。
用法同ViewPager几乎一样,只要设定
viewPager.setOrientation(com.mobovip.views.DirectionalViewPager.VERTICAL)
就可以纵向滑动了。
参考代码如下:-DirectionalViewPager support horizontal and vertical ViewPager
Project Address:
https://github.com/JakeWharton/Android-DirectionalViewPager
The others have tried:
Android V3.5 new features of imitation Netease http://blog.csdn.net/way_ping_li/article/details/9359191
I just re-test a little, feeling can be used.
Just pay attention to the need to import-v4.jar package and VerticalViewPagerCompat.java android.support.v4.view package must be placed in a specific annex.
Usage with ViewPager almost as long as the set
viewPager.setOrientation (com.mobovip.views.DirectionalViewPager.VERTICAL)
You can slide longitudinally up.
Reference code:
项目地址:
https://github.com/JakeWharton/Android-DirectionalViewPager
这个别人已经试过了:
Android之仿网易V3.5新特性http://blog.csdn.net/way_ping_li/article/details/9359191
我只是重新测试了一下,感觉可以用。
只是要注意,需要导入-v4.jar包,并且VerticalViewPagerCompat.java一定要放在android.support.v4.view包中,具体见附件。
用法同ViewPager几乎一样,只要设定
viewPager.setOrientation(com.mobovip.views.DirectionalViewPager.VERTICAL)
就可以纵向滑动了。
参考代码如下:-DirectionalViewPager support horizontal and vertical ViewPager
Project Address:
https://github.com/JakeWharton/Android-DirectionalViewPager
The others have tried:
Android V3.5 new features of imitation Netease http://blog.csdn.net/way_ping_li/article/details/9359191
I just re-test a little, feeling can be used.
Just pay attention to the need to import-v4.jar package and VerticalViewPagerCompat.java android.support.v4.view package must be placed in a specific annex.
Usage with ViewPager almost as long as the set
viewPager.setOrientation (com.mobovip.views.DirectionalViewPager.VERTICAL)
You can slide longitudinally up.
Reference code:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Android-DirectionalViewPager\.gitignore
............................\CHANGELOG.md
............................\library\AndroidManifest.xml
............................\.......\checkstyle.xml
............................\.......\libs\android-support-v4.jar
............................\.......\pom.xml
............................\.......\project.properties
............................\.......\src\android\support\v4\view\VerticalViewPagerCompat.java
............................\.......\...\com\directionalviewpager\DirectionalViewPager.java
............................\LICENSE.txt
............................\pom.xml
............................\README.md
............................\sample\AndroidManifest.xml
............................\......\icon_web.png
............................\......\libs\android-support-v4.jar
............................\......\logo.png
............................\......\logo.psd
............................\......\pom.xml
............................\......\project.properties
............................\......\res\drawable-hdpi\icon.png
............................\......\...\.............\Thumbs.db
............................\......\...\.........mdpi\icon.png
............................\......\...\.............\Thumbs.db
............................\......\...\.........xhdpi\icon.png
............................\......\...\..............\Thumbs.db
............................\......\...\layout\main.xml
............................\......\screens.png
............................\......\.rc\com\directionalviewpager\sample\SampleActivity.java
............................\......\...\...\....................\......\TestFragment.java
............................\......\...\...\....................\......\TestFragmentAdapter.java
............................\......\Thumbs.db
............................\library\src\android\support\v4\view
............................\.......\...\.......\.......\v4
............................\sample\src\com\directionalviewpager\sample
............................\library\src\android\support
............................\.......\...\com\directionalviewpager
............................\sample\src\com\directionalviewpager
............................\library\src\android
............................\.......\...\com
............................\sample\res\drawable-hdpi
............................\......\...\drawable-mdpi
............................\......\...\drawable-xhdpi
............................\......\...\layout
............................\......\src\com
............................\library\libs
............................\.......\src
............................\sample\libs
............................\......\res
............................\......\src
............................\library
............................\sample
Android-DirectionalViewPager