iamyours / flingappbarlayout Goto Github PK
View Code? Open in Web Editor NEWA custom AppBarLayout that can fling smoothly
Home Page: https://juejin.im/post/5ce895806fb9a07ec955e953
A custom AppBarLayout that can fling smoothly
Home Page: https://juejin.im/post/5ce895806fb9a07ec955e953
在 findCommonScroll 这一步返回false
if (lm instanceof LinearLayoutManager) 返回 false
拿大众点评app举个例子,快速滑动上面的 AppBarLayout,AppBarLayout收缩完成后,下面的 ViewPager 可以继续滑动,直到均匀减速到停止。
使用 FlingAppBarLayout,快速滑动上面的 FlingAppBarLayout,FlingAppBarLayout收缩完成后,下面的 ViewPager 可以继续滑动,但是会突然停止~
这时的滑动会异常快,超出正常值
如果ViewPager中一个fragment中的recyclerview的数据很短,不满一屏,那么在这个recyclerView中会有滑动冲突问题。下拉不会拉出appbarLayout而是直接触发smartRefreshLayout
复现:
在Demo中ViewPagerFlingActivity的xml中 根布局加入smartRefreshLayout,然后再NestedScrollViewFragment中去掉一个图片,只用一张图片,这样就不满一屏了,然后你上滑下滑操作试试
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.