question

njsokalski avatar image
0 Votes"
njsokalski asked RobCaplan edited

Scroll to Center When Using RecyclerView & SmoothScrollToPosition

When using the SmoothScrollToPosition method of a RecyclerView, I would like it to scroll to the center rather than the side. Is there any easy built-in way to do this without manually calculating the size of the items? Thanks.

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @njsokalski If you want to scroll to center of items, I think mRecyclerView.SmoothScrollToPosition(items.count/2); is better way to do.

0 Votes 0 ·

0 Answers