问题
I'm trying to make a ViewPager that slides between fragments and a custom slidebar, that shows which page is selected.
Should be like this:
I don't want to display tab titles, only the bar itself. How can i do this?
回答1:
You can do this by following a trick. Like as, First remove your all title from tab then make same color your layout and tablayout background.
回答2:
you can use
ViewPager
with
CircleIndicator - can be customized.
in gradle:
compile 'me.relex:circleindicator:1.1.8@aar'
you can look sample here
来源:https://stackoverflow.com/questions/37489488/tabwidget-without-title