mamba4ever
mamba4ever

Reputation: 2672

Change height of pagerTabStrip tabIndicator

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?

enter image description here

Upvotes: 6

Views: 5513

Answers (2)

Mohsin Hussain Butt
Mohsin Hussain Butt

Reputation: 21

its quite simple..

mTabStrip.setIndicatorHeight(int indicatorLineHeightPx);

Upvotes: 1

ianhanniballake
ianhanniballake

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

Related Questions