Harry
Harry

Reputation: 1472

Horizontal Page Indicator in a ViewPager

I have a ViewPager and I want to use the "horizontal page indicator" (see pic below) to make it clear the user can scroll horizontally. Although I see it used in many apps I can't find much info on it. I was hoping it would be as simple as an enableX method in the ViewPager or Adapter but it doesn't seem to be the case. Can anybody tell me if there is a way to enable this on the ViewPager or is this implemented as an image on all apps that use it? Also, what is the name of this type of page indicator?

enter image description here

Upvotes: 0

Views: 1806

Answers (2)

Ali Behzadian Nejad
Ali Behzadian Nejad

Reputation: 9044

You can use Jake Wharton's Android-ViewPagerIndicator.

enter image description here

This is combination of android's ViewPager and a set of different indicators as you can see in the image above.

Upvotes: 0

krossovochkin
krossovochkin

Reputation: 12122

Use Android-ViewPagerIndicator library by Jake Wharton https://github.com/JakeWharton/Android-ViewPagerIndicator

Upvotes: 1

Related Questions