Rúben Sousa

Results 10 issues of Rúben Sousa

The open/close methods in the DrawerBehavior class don't require any arguments (parent and child views). I had to switch the SimpleArrayMap to an ArrayMap to allow this, since we couldn't...

Fix for #11. When the drawer state is idle (ViewDragHelper.STATE_IDLE), I'm checking if onScreen is less than 1 but not 0. I noticed that it was 0.1 when it was...

This requires the open/query API. Please, check #19

API example: ```kotlin val topAlignment = ParentAlignment(fraction = 0f) recyclerView.setParentAlignmentOverride(object : ParentAlignmentOverride { override fun getAlignment(position: Int): ParentAlignment? { return if (position == 0) { // Align the first position...

enhancement

- Useful to persist scrolling positions of nested lists

enhancement

Leanback doesn't support this out of the box as well: https://developer.android.com/reference/androidx/recyclerview/widget/ItemTouchHelper

enhancement

- Use the `SnapHelper` API to observe flings and just select the target view closest to the keyline

enhancement

Move existing implementation in the sample to the library and polish it up

enhancement

We no longer need this, as the min SDK is now at 21