GithubHelp home page GithubHelp logo

w446108264 / scrollablelayout Goto Github PK

View Code? Open in Web Editor NEW
829.0 23.0 173.0 37.47 MB

Add a headview for any view and supports sticking the navigator on the top when ItemView scrolls.

License: Apache License 2.0

Java 100.00%

scrollablelayout's Issues

Collapse?

How collapse (close) and open headview in programmatically?

你好,有个问题想跟你请教一下。

现在我用的是viewPage,然后第一个界面是一个ScrollView,第二个跟第三个都是ListView,打开界面的时候默认显示的是ScroView,然后一推到顶了就拉不下来了,我切换到ListView之后再切回来就正常了。这个怎么解决呢?只有第一次打开的时候会有这个情况呢。。。。

切换ViewPager会出现不能刷新状况

如果page 1的scrollView已经到顶了,现在切换到page 2,此时page 2的scrollView没有到顶,会不能刷新,如果把ScrollableLayout的isCanPullToRefresh改成
if (getScrollY() <= 0 && !mIsHorizontalScrolling) { return true; } return false; }
就可以解决了

1. 偶现header还未顶上去,但是下方列表滚动上去了。2. 偶现,无法触发下拉刷新

测试机型:MEIZU M3
系统版本:YunOS 3.1.6
测试代码:1. 此项目源码编译的APK 2. 根据sample写的新样例apk 均出现如下两个问题。

问题1:偶尔出现,header还没有被顶上去,但是下方的recyclerview却通过手指向上滑动上去了。出现了类似sticky的效果(https://github.com/emilsjolander/StickyListHeaders)
复现频率:大量测试下会出现几次。

问题2:偶尔出现,下拉刷新无法触发,下拉重复2次到3次,再次触发下拉刷新。
复现频率:大量测试下会出现几次。

希望可以加一个smoothScrollTo方法

ScrollableLayout中有一个公有的scrollTo方法,但是如果能增加一个smoothScrollTo方法就好了。就像ScrollableHelper中的smoothScrollBy方法那样。

无法下拉出顶部view

当手机权限切换、横竖屏切换后,顶部的view就无法下拉,getScrollableView()一直返回null,导致isTop()方法一直返回false

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.