Hello,
According to your description, ViewPager should better meet your needs.
ViewPager
is a layout manager that lets you implement gestural navigation. Gestural navigation allows the user to swipe left and right to step through pages of data.
ViewPager
uses an adapter pattern to provide it with the views to display. The adapter used here is conceptually similar to that used by RecyclerView
– you supply an implementation of PagerAdapter
to generate the pages that the ViewPager
displays to the user. The pages displayed by ViewPager
can be Views
or Fragments
. When Views are displayed, the adapter subclasses Android's PagerAdapter
base class. If Fragments
are displayed, the adapter subclasses Android's FragmentPagerAdapter
.
To use ViewPager in your app project, you must install the Android Support Library v4 package.
For more, you can check document https://learn.microsoft.com/en-us/xamarin/android/user-interface/controls/view-pager/ .
And there are samples included in above document, you can check them here:
https://learn.microsoft.com/en-us/samples/xamarin/monodroid-samples/userinterface-treepager/
https://learn.microsoft.com/en-us/samples/xamarin/monodroid-samples/userinterface-flashcardpager/
Best Regards,
Jessie Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.