android - How to change the color of tab 'underbar' in actionbarsherlock -


ok i'm loosing more sanity ever. can't find/understand how style damn thing. managed change background of tab can't cahnge color of bar under selected tab.

how change blue something.

my styles.xml unfortunately have bad understanding of how works

<?xml version="1.0" encoding="utf-8"?> <resources>       <style name="theme.styled" parent="theme.sherlock.light">         <item name="actionbartabstyle">@style/widget.styled.actionbartab</item>         <item name="android:actionbartabstyle">@style/widget.styled.actionbartab</item>          <item name="actionbartabbarstyle">@style/widget.styled.actionbartabbar</item>         <item name="android:actionbartabbarstyle">@style/widget.styled.actionbartabbar</item>          <item name="actionbartabtextstyle">@style/mytext</item>         <item name="android:actionbartabtextstyle">@style/mytext</item>       </style>      <style name="widget.styled.actionbartab" parent="widget.sherlock.light.actionbar.tabview">     <!--    <item name="background">@drawable/startbcg</item>         <item name="android:background">@drawable/startbcg</item>         <item name="backgroundsplit">@drawable/bg_striped_split</item>         <item name="android:backgroundsplit">@drawable/bg_striped_split</item>     -->     </style>       <style name="widget.styled.actionbartabbar" parent="widget.sherlock.light.actionbar.tabbar">          <item name="background">@drawable/startbcg</item>         <item name="android:background">@drawable/startbcg</item>          <item name="backgroundsplit">@drawable/bg_striped_split</item>         <item name="android:backgroundsplit">@drawable/bg_striped_split</item>      </style>      <style name="mytext" parent="widget.sherlock.light.actionbar.tabtext">         <item name="android:textappearance">@android:style/textappearance.medium</item>         <item name="android:textcolor">@android:color/primary_text_dark</item>         <item name="android:textsize">10sp</item>       </style> <style name="mytextinv" parent="widget.sherlock.light.actionbar.tabtext.inverse">         <item name="android:textappearance">@android:style/textappearance.medium</item>         <item name="android:textcolor">@android:color/primary_text_dark</item>         <item name="android:textsize">10sp</item>       </style> </resources> 

bonus question: can find properties (like background) stuff has.

use actionbarstylegenerator style actionbar. far simplest , intuitive way.

how to:

  1. use ui select colors different items
  2. once done click on "download .zip"
  3. the zip file contains resource files have copy in project res/layout , res/drawablexxxx folders

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -