Reputation: 1138
I have a Viewpager and want to set title for the same. I am able to do this. But customizing the same is creating problems for me.
1). I dont want the default strip below the title instead I want my selection bar to be in that place. I know we can change color for the strip but is it possible to give a drawable for the same.
2). I only have 3 pages for ViewPager so I want all 3 titles to be visible at the same time.
3). Can we define the width for the strip below title
Please provide suggestions for the same. Ihave stuck in middle of this.
Thanks in advance.
Upvotes: 4
Views: 4852
Reputation: 141
I'm not sure if I understand correctly your first question, but try reading this post:
android: How to add icons/drawables to the PagerTabStrip from the Android Support Lib version 4?
Upvotes: 2