Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 273
mamba4ever Avatar asked Apr 29 '13 01:04

mamba4ever


2 Answers

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.

like image 93
ianhanniballake Avatar answered Oct 11 '22 07:10

ianhanniballake


its quite simple..

mTabStrip.setIndicatorHeight(int indicatorLineHeightPx);
like image 41
Mohsin Hussain Butt Avatar answered Oct 11 '22 09:10

Mohsin Hussain Butt