A helper class which turns any existing recycler view to a spinner that allows the user to scroll the whole list through a single dragging gesture. The use of recycler view ensures better performance and better long-term support. Both vertical and horizontal scrolling are supported; set the orientation by using LinearLayoutManager.setOrientation(int). Customization is not included in the helper class; check the companion demo app to see how to add indication arrows and for other tricks.
The helper class is backward-compatible the same way as RecyclerView. The demo app is Lollipop+ due to vector drawables.
Subscribe to Android Example 365
Get the latest posts delivered right to your inbox