
gradle 导入
compile 'com.shizhefei:HVScrollView:1.0.1' compile 'com.android.support:support-v4:23.4.0'效果图
Download sample Apk
HVScrollView 配置 app:scrollOrientation="horizontal" 相当于 HorizontalScrollView HVScrollView 配置 app:scrollOrientation="vertical" 相当于 NestedScrollView 或者,ScrollView HVScrollView 配置 app:scrollOrientation="both" 双向滚动 HVScrollView 配置 app:scrollOrientation="none" 不能滚动 代码通过 setScrollOrientation 设置滚动方向
为什么写这个类库1.解决 ScrollView 嵌套 ScrollView,当然 NestedScrollView 也可以,但是它没有水平方向的 2.解决 HorizontalScrollView 在 ViewPager 下滑动,滑动到末尾切换不了下一个页面 ViewPager 3.支持双向滚动和配置滚动方向 4.支持 CoordinatorLayout 和实现 NestedScrollingParent,NestedScrollingChild 的配合滑动,当然 NestedScrollView 也是可以.但是它没有水平方向的
主力类库1.https://github.com/LuckyJayce/ViewPagerIndicator Indicator 取代 tabhost,实现网易顶部 tab,新浪微博主页底部 tab,引导页,无限轮播 banner 等效果,高度自定义 tab 和特效
2.https://github.com/LuckyJayce/MVCHelper 实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意 view,支持切换主流下拉刷新框架。
3.https://github.com/LuckyJayce/MultiTypeView 简化 RecyclerView 的多种 type 的 adapter,Fragment 可以动态添加到 RecyclerView 上,实现复杂的界面分多个模块开发
4.https://github.com/LuckyJayce/EventBus 事件总线,通过动态代理接口的形式发布,接收事件。定义一个接口把事件发给注册并实现接口的类
5.https://github.com/LuckyJayce/LargeImage 大图加载,可供学习
6.https://github.com/LuckyJayce/GuideHelper 新手引导页,轻松的实现对应的 view 上面的显示提示信息和展示功能给用户
7.https://github.com/LuckyJayce/HVScrollView 可以双向滚动的 ScrollView,支持嵌套 ScrollView 联级滑动,参照 NestedScrollView 和 RecyclerView 代码写的
有什么建议可以发到我的邮箱 794629068@qq.com