Reputation: 2672
I am using android.support.v4.view.PagerTabStrip
in my application.
Here's how I use tabIndicator
PagerTabStrip pagerTabStrip = (PagerTabStrip)
findViewById(R.id.pager_title_strip);
pagerTabStrip.setDrawFullUnderline(true);
pagerTabStrip.setTabIndicatorColor(Color.parseColor("#32CD32"));
My tabIndicator's height is quite small. How can I set/increase it's height like the one that google play has?
Upvotes: 6
Views: 5513
Reputation: 21
its quite simple..
mTabStrip.setIndicatorHeight(int indicatorLineHeightPx);
Upvotes: 1
Reputation: 199795
The Google Play Store uses a custom implementation, rather than the provided PagerTabStrip
. If you'd like to emulate the look and feel of the Google Play Store, you can use an existing library such as Pager Sliding TabStrip which was designed to model the Google Play Store behavior.
Upvotes: 5