Sample code for an AppBarLayout
that automatically expands when a RecyclerView
's first entry becomes visible (i.e. from a fling gesture). The most relevant class is ScrollFeedbackRecyclerView.
Supports StackOverflow answer: How to expand AppBarLayout when scrolling down reaches at top of the RecyclerView