商城中很常见的效果:上下列表的联动效果(实现的效果是上方的指示器切换到对应的Tab时,下方的RecyclerView滚动到对应Tab的条目;下方的RecyclerView滑动时,上方的指示器切换到对应的Tab)
直接放我项目的效果图:
项目的代码就不给大家展示了,我写了一个Demo;上图:
OK就这样,是不是很酷,感觉好多商城都有这个效果。注意代码是kotlin编写的。如果你还需要Title悬停,请Issue,我把代码单独发给你。
Demo下载地址:
This project forked from chishengcan/liandongdemo
商城中很常见的效果:上下列表的联动效果(实现的效果是上方的指示器切换到对应的Tab时,下方的RecyclerView滚动到对应Tab的条目;下方的RecyclerView滑动时,上方的指示器切换到对应的Tab)
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.