Domanda

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.

È stato utile?

Soluzione

Use the ViewPagerIndicator Library. This has an option for your desire.


ADDITION

I found this official Xamarin ViewPagerIndicator Library. Maybe this would help.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top