Reputation: 16278
I'm using a ViewPager
to host multiple views, and I want something to visually show where the user is currently located. I don't want to use PagerTitleStrip
or PagerTabStrip
cause I don't want titles.
I want something similar to the horizontal line in the default launcher of the Nexus 4 shown in here:
When you swipe left or right, there is a slightly bigger rectangle that shows your position relative to the pages.
How can I do this?
PS: I can't use any library cause the code is going to be written in C# with Xamarin
, also can't use any Xamarin
component cause license won't let it have any more components.
Upvotes: 1
Views: 722
Reputation: 1681
Use the ViewPagerIndicator Library. This has an option for your desire.
I found this official Xamarin ViewPagerIndicator Library. Maybe this would help.
Upvotes: 1