Customize view pager android

2.2k views Asked by At

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.

1

There are 1 answers

2
Liran Peretz On

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.