bogdand
bogdand

Reputation: 76

Customize view pager android

i am trying to implement a view pager with indicator like in the image bellow. The problem is that i can't manage to style the indicator in order to look like that. enter image description here

Could someone tell me how can i obtain that indicator because using the normal one will give me something like enter image description here

I have tried to change the style but will only change to the size of the tab, not smaller than that.

Thank you.

Upvotes: 0

Views: 2235

Answers (1)

Liran Peretz
Liran Peretz

Reputation: 580

i recommend to you to see this tutorial about sliding tabs.

if this not what u looking for u can create your own tabs layout and implement OnPageChangeListener, when the method "onPageSelected" invoked u can change the visibility of the indicator in your custom tab layout.

Upvotes: 1

Related Questions