w446108264 / scrollablelayout Goto Github PK
View Code? Open in Web Editor NEWAdd a headview for any view and supports sticking the navigator on the top when ItemView scrolls.
License: Apache License 2.0
Add a headview for any view and supports sticking the navigator on the top when ItemView scrolls.
License: Apache License 2.0
ViewPager切换到第二页时,无法下拉刷新
How collapse (close) and open headview in programmatically?
直接调用set了cancel的 super然后返回true好像更简洁吧
现在我用的是viewPage,然后第一个界面是一个ScrollView,第二个跟第三个都是ListView,打开界面的时候默认显示的是ScroView,然后一推到顶了就拉不下来了,我切换到ListView之后再切回来就正常了。这个怎么解决呢?只有第一次打开的时候会有这个情况呢。。。。
ScrollableLayout中有一个公有的scrollTo方法,但是如果能增加一个smoothScrollTo方法就好了。就像ScrollableHelper中的smoothScrollBy方法那样。
当手机权限切换、横竖屏切换后,顶部的view就无法下拉,getScrollableView()一直返回null,导致isTop()方法一直返回false
如果page 1的scrollView已经到顶了,现在切换到page 2,此时page 2的scrollView没有到顶,会不能刷新,如果把ScrollableLayout的isCanPullToRefresh改成
if (getScrollY() <= 0 && !mIsHorizontalScrolling) { return true; } return false; }
就可以解决了
像监听整个布局 不仅仅是在下面的viewpager + fragment 响应下拉刷新
直接Demo里集成 compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-20' 发现下拉header会直接出发刷新导致header无法显示完全
测试机型:MEIZU M3
系统版本:YunOS 3.1.6
测试代码:1. 此项目源码编译的APK 2. 根据sample写的新样例apk 均出现如下两个问题。
问题1:偶尔出现,header还没有被顶上去,但是下方的recyclerview却通过手指向上滑动上去了。出现了类似sticky的效果(https://github.com/emilsjolander/StickyListHeaders)
复现频率:大量测试下会出现几次。
问题2:偶尔出现,下拉刷新无法触发,下拉重复2次到3次,再次触发下拉刷新。
复现频率:大量测试下会出现几次。
there is a problem when rotating from landscape to portrait. the tab bar falls below the title bar and disapear. this seems to be a bug.
any solution?
部分手机滑不动,
支持底部上滑动,隐藏悬浮的布局,向下滑动显示悬浮布局吗
然后滑动gridview后,就滑不动了,zzz。但是我自己写个demo用的listview就咩有问题。楼猪,求帮忙下。
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.