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

2

4

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?

Grandmotherly answered 25/2, 2016 at 20:51 Comment(0)
G
4

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.

Grandmotherly answered 25/2, 2016 at 20:51 Comment(3)
Would be good if we could highlight the urgency to Google by starring the relevant issue in the tracker - code.google.com/p/android/issues/…Genitals
@JamesBritton, thanks for link to bug tracker. I put star on it too)Grandmotherly
Have the same issue in 23.3.0 with ListView inside SwipeRefreshLayoutArabist
P
1

Here is my solution by fixing nested scrolling in SwipeRefreshLayout: https://mcmap.net/q/282110/-recyclerviews-and-swiperefreshlayout-using-support-library-23-2-0

Pedicab answered 23/3, 2016 at 14:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.