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?
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
.
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