Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

Recyclerview

Version 1.1.0-alpha04

April 3rd, 2019

androidx.recyclerview:recyclerview:1.1.0-alpha04 is released. The commits included in this version can be found here.

Bug fixes

  • RV OnItemTouchListener's previously couldn’t intercept on ACTION_UP, preventing OnItemTouchListener’s from blocking other code from responding to ACTION_UP. This is now fixed: (aosp/916137)

Version 1.1.0-alpha03

March 13th, 2019

androidx.recyclerview:recyclerview:1.1.0-alpha03 is released. The full list of commits included in this version can be found here.

New features

  • GridLayoutManager: Opt in, higher resolution GridLayoutManager scroll bar dimension estimation (aosp/838836):
    • Uses span information to estimate scroll bar dimensions for a GridLayoutManager.
    • To enable, call GridLayoutManager#setUsingSpansToEstimateScrollbarDimensions(boolean) passing in true.
    • See the documentation on GridLayoutManager#setUsingSpansToEstimateScrollbarDimensions(boolean) for more information.

Bug fixes

  • Accessibility: There was a bug where once a ViewHolder was recycled and then rebound, the ItemDelegate associated with the RecyclerView’s RecyclerViewAccessibilityDelegate was not being associated with the ViewHolder’s itemView, breaking Accessibility. This is now fixed (aosp/917740).

Version 1.1.0-alpha02

January 30, 2019

androidx.recyclerview:recyclerview 1.1.0-alpha02 is released.

API changes

  • RecyclerView.setLayoutFrozen(boolean) and RecyclerView.isLayoutFrozen() are deprecated in favor of RecyclerView.suppressLayout(boolean) and RecyclerView.isLayoutSuppressed(). (aosp/839414)
  • RecyclerView.setLayoutTransition(LayoutTransition) is formally deprecated and will throw an IllegalArgumentException when called with a non null value. (aosp/839414)

Bug fixes

  • Fix bug in RV where SmoothScroller is never stopped (aosp/843741)
  • Bug fixed where SCROLL_STATE_IDLE may not be called at the end of a scrolling animation. (aosp/812576)

Version 1.1.0-alpha01

December 3, 2018

androidx.recyclerview 1.1.0-alpha01 and androidx.recyclerview-selection 1.1.0-alpha01 are released.

androidx.recyclerview 1.1.0-alpha01

API changes

  • aosp/723649: RecyclerView now implements NestedScrollingChild3, enabling it to be informed of when all its nested scrolling parents have stopped consuming nested scrolling distances. If developer code currently overrides RecyclerView.onNestedScroll(View, int, int, int, int, int), it will likely no longer be called and RecyclerView.onNestedScroll(View, int, int, int, int, int, int[]) should be overridden instead.

Bug fixes

  • Fixed crash when using TransitionManager to collapse/expand item in RecyclerView (b/37129527).
  • Fixed bug where RecyclerView.OnItemTouchListener’s behavior was inconsistent with the view system’s onInterceptTouchEvent and onTouchEvent behavior (aosp/721235)
  • Fixed few edge case bugs related to smooth scrolling (aosp/729718, aosp/747168, aosp/812576)
  • Fixed snap strategy in PagerSnapHelper to deal with non-typical child views (aosp/795752)

androidx.recyclerview-selection 1.1.0-alpha01

Bug fixes

  • Fixed ConcurrentModificationException when data set changed with removing selection.