原本打算写系列关于自定义view的文章,包括onTouch涉及到的对应MotionEvent一些介绍, 其中就计划用这个轮子来做案例讲解。 不过原项目代码格式看起来有点不和胃口,顺便做了些调整,使他支持三种不同的滑动模式。 现在先把代码贴在这里,哪天合适再写文章.
- STICK :头部图片固定不动的样子,下面的各个item上滚
- NORMAL:正常的listView效果
- PARALLAX: 头部图片有些折叠的效果
支持三种模式的滑动设置
原本打算写系列关于自定义view的文章,包括onTouch涉及到的对应MotionEvent一些介绍, 其中就计划用这个轮子来做案例讲解。 不过原项目代码格式看起来有点不和胃口,顺便做了些调整,使他支持三种不同的滑动模式。 现在先把代码贴在这里,哪天合适再写文章.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.