I am using tabs in my app programatically i.e using tabspec. im not able to change the color of font of indicator the tab.
I am able to change the background color of the tab.
Create custom theme to change colors of tabs or tab indicator go to this link
http://jgilfelt.github.io/android-actionbarstylegenerator/#name=example&compat=holo&theme=light&actionbarstyle=solid&texture=0&hairline=0&backColor=E4E4E4%2C100&secondaryColor=D6D6D6%2C100&tabColor=33B5E5%2C100&tertiaryColor=F2F2F2%2C100&accentColor=33B5E5%2C100&cabBackColor=FFFFFF%2C100&cabHighlightColor=33B5E5%2C100
Related
How to set background color only in one tab of tablayout, like instagram on the first version.
I have a view pager and have tabs at the very top. Each tab has an icon. I am not using textviews for the tabs. I've tried searching for a way to change the background color of the tabs, but all I get is solutions involving use a textview for the tabs.
Is there a way to set the background color of the tabs without using a textview? I have set icons to the tabs.
Note: The tabs will all be the same color.
This will be Awesome for you ,you can customize everything,set an icon or text or both ,change Background color and Everything
https://github.com/astuetz/PagerSlidingTabStrip
I have three tabs (ActionBarSherlock) and by default there is a small indicator which is blue. What I want is to change so that the selected tab is red, i.e. not only the indicator but the whole tab.
Is that possible? I have tried some suggested solutions without luck.
I am new to android and I created some tabs. However as bock background and text are set to black as default I cant see any text on the tabs.
How can I change the tab background or the text colour please? thanks
To change the background of your TabWidget just add in your xml file:
android:background="#b2b2b2"
Otherwise if you want to change the color of text you need to create a Custom Tab in which you can change the textcolor, font, etc.
Hope I helped you
I want to change the colour of a tabview from the default grey (and black when not selected) to red and green when not selected.
In the tab Widget class I'm trying to set the colour using these functions
tabHost.setBackgroundColor(Color.RED);
tabHost.getTabWidget().setBackgroundColor(Color.GREEN);
But they don't work, its still the default colour. How do I manually set the background and tab colours of a tab widget in android? Also, is it possible to do it in xml?
See Step 4. at this blog, it's how I have done it, very simple, easy to change and tweak if you need to and it's all in XML.
Custom tabs in android tabhost