JakeWharton / ViewPagerIndicator

Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.
http://viewpagerindicator.com
10.13k stars 4.01k forks source link

TabPageIndicator Change #215

Closed unripeapple1 closed 11 years ago

unripeapple1 commented 11 years ago

TabPageIndicator Change the underline width and hegiht and color?

how to do? where i go fix it?

JakeWharton commented 11 years ago

There's a styled sample which demonstrates how to do this.

Basically you have to create your own theme for the tab style which uses a different background. The background is a state-list drawable that has 9-patches for the unselected, selected, pressed states. Despite not being used for the action bar tabs, you can generate the 9-patches and selector XML using @jgilfelt's Action Bar Style Generator.

JakeWharton commented 11 years ago

Here's the sample's selector XML: https://github.com/JakeWharton/Android-ViewPagerIndicator/blob/master/sample/res/drawable/custom_tab_indicator.xml

And the drawables are in the drawable-xhdpi/, drawable-hdpi/, and drawable-mdpi/ folders. Here's the XHDPI stuff: https://github.com/JakeWharton/Android-ViewPagerIndicator/tree/master/sample/res/drawable-xhdpi

unripeapple1 commented 11 years ago

Thx for your answer

i can't speak english well.. sorry

just read think word..

read for sentence plz

I check ... upper links

I got One Question

if i change 9-patch image size

bigger than older imgs

tabindicator _____ <---like this

change to size height ???

why i think

no attribute........input size change

nschwermann commented 9 years ago

Annoyingly, these are all the wrong size with material specs.