Reputation: 2244
I'm showing list of items in WearableRecyclerView. As of now I am getting like this
But I need to show Single Row(Single Item) in a Page,Scroll down,then show next Item.
Any Help to do this in android app?
Upvotes: 1
Views: 2664
Reputation: 51
The code snippet below is used to show one item at a time. After configuration of your recyclerview add the code snippet.
PagerSnapHelper().attachToRecyclerView(nameOfYourRecylerView)
Upvotes: 1
Reputation: 479
You can do it by two way.
option 1: putting recycler view item width and height both to match_parent.which will cover the screen with with one item at a time and need to scroll for see the next item.
option 2: use this library which will do the exact thing that you are looking for.
Upvotes: 1