SwipeRefreshLayout prevents AppBarLayout scrolling down with showing refresh circle after updating support libs to 23.2.0

删除回忆录丶 提交于 2019-12-07 07:51:14

问题


After updating google libs to 23.2.0 faced issue, that was in previous support libs version (as I remember it was 22+ or 23.1.0).

I have RecyclerView in SwipeRefreshLayout, which is in CoordinatorLayout that have AppBarLayout with CollapsingToolbarLayout.

So when I now have CollapsingToolbarLayout not fully expanded and try to expand it the swipeRefresh indicator appears, instead of expanding CollapsingToolbarLayout.

What can I do?


回答1:


So seems to be that it's an old-new bug in 23.2.0 version of support library.

When I change my depencies to older version (23.1.1) bug dissapears.

Now we should wait for new bug fix for old bug.

There is a list of depencies that you should not update to 23.2.0 to avoid this bug:

compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'

You can also use workaround with overriding SwipeRefreshLayout


Here is link to google bugtracker: RecyclerView v23.2.0 - doesn't play nicely with SwipeRefreshLayout


Same question and answer in russian:
SwipeRefreshLayout не даёт скроллить вниз не раскрытый AppBarLayout показывая вместо этого индикатор загрузки после обновления support до 23.2.0


UPD 08.04.2016:

Problem fixed in libs version 23.3.0.




回答2:


Here is my solution by fixing nested scrolling in SwipeRefreshLayout: https://stackoverflow.com/a/36181176/5002337



来源:https://stackoverflow.com/questions/35638081/swiperefreshlayout-prevents-appbarlayout-scrolling-down-with-showing-refresh-cir

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