Android: fastScrollEnabled not working at first

与世无争的帅哥 提交于 2019-12-02 01:15:15
ngesh

try list.setFastScrollAlwaysVisible(true)

and also try list.smoothScrollToPosition(0); so that icon appears when scroll is called...

something like this..

new Handler().postDelayed(new Runnable() {
  @Override
  public void run(){
    list.smoothScrollToPosition(0);
  }
}, 100);

So again I'm posting this because my issue was genuinly different. Fast scrolling also doesn't seem to work in a ConstraintLayout. Both ListView Fast Scrolling and RecyclerView Fast Scrolling don't seem to work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!