over-scrolling效果 OverScrollDecor
- 授权协议: 未知
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/jeasonlzy0216/OverScrollDecor
- 软件文档: https://github.com/jeasonlzy0216/OverScrollDecor.git
- 官方下载: https://github.com/jeasonlzy0216/OverScrollDecor.git
软件介绍
OverScrollDecor是一款类似IOS的over-scrolling效果的软件,
演示:
用法:
使用前,对于Android Studio的用户,可以选择添加:
compile project(':library_overscroll')实现原理:
采用ViewDragHelper 和重写布局的 dispatchTouchEvent实现。
代码参考:
使用简单,Java代码无需做任何修改,需要要将想要实现效果的布局外包一层OverScrollDecor即可。对于 ListView,GridView,ScrollView,WebView,RecyclerView 五个类需要使用该项目中提供的 Vertical开头的对应类,其余View 和 ViewGroup 使用原生即可。如果是自定义的 ListView(其余类似),只需要将你自定义的ListView 继承 VerticalListView ,在不修改代码的情况下同样可以实现。
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <com.lzy.ui.OverScrollDecor android:layout_width="match_parent" android:layout_height="match_parent"> <com.lzy.ui.VerticalListView android:id="@+id/listView" android:layout_width="match_parent" android:layout_height="match_parent"/> </com.lzy.ui.OverScrollDecor> </RelativeLayout>
数学建模
[美] Frank R.Giordano,Maurice D.Weir,William P.Fox / 机械工业出版社 / 2004-1 / 45.00元
数学建模是用数学方法解决各种实际问题的桥梁。本书分离散建模(第1~9章)和连续建模(第10~13章)两部分介绍了整个建模过程的原理,通过本书的学习,学生将**会在创造性模型和经验模型的构建、模型分析以及模型研究方面进行实践,增强解决问题的能力。 ·论证了离散动力系统,离散优化等技术对现代应用数学的发展的促进作用。 ·在创造性模型和经验模型的构建、模型分析以及模型研究中融入个人项目和小组......一起来看看 《数学建模》 这本书的介绍吧!
CSS 压缩/解压工具
在线压缩/解压 CSS 代码
HEX HSV 转换工具
HEX HSV 互换工具
