kavie
kavie

Reputation: 2244

Show Single Item at a time in Recycler view

I'm showing list of items in WearableRecyclerView. As of now I am getting like this enter image description here

But I need to show Single Row(Single Item) in a Page,Scroll down,then show next Item.

enter image description here

Any Help to do this in android app?

Upvotes: 1

Views: 2664

Answers (2)

Ahmet Özaydın
Ahmet Özaydın

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

Md.ibrahim khalil
Md.ibrahim khalil

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

Related Questions