title: How to manage the width of ActionBar navigation tabs?
body: <p>I am using ActionBarSherlock and have an ActionBar with navigation tabs in it. I want the tabs to auto-size based on the size of the text in them, but there seems to be a style or a setting somewhere that is forcing them to use a minimum size. So for example in the screenshot the tab "Very Long Tab" has no padding (in accordance with the styling I applied) but the tabs marked "T" have a great deal of padding, despite me setting padding to 0dp.</p>
  
  <p><img src="https://i.stack.imgur.com/77WK4.png" alt="enter image description here"></p>
  
  <p>As you can see below I've tried a brute-force approach by setting various attributes on several styles, but I've not succeeded yet.</p>
  
  <p>How do I control the padding/width in the action bar tabs?</p>
  
  <pre><code>&lt;style
      name="CustomActivity"
      parent="@style/Theme.Sherlock"
      &gt;
      &lt;item name="actionBarTabStyle"&gt;@style/customActionBarTabStyle&lt;/item&gt;
      &lt;item name="actionBarTabBarStyle"&gt;@style/customActionBarTabBarStyle&lt;/item&gt;
      &lt;item name="actionBarTabTextStyle"&gt;@style/customActionBarTabTextStyle&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="customActionBarTabStyle" parent="style/Widget.Sherlock.ActionBar.TabView"&gt;
      &lt;item name="android:background"&gt;@drawable/tab_indicator&lt;/item&gt;
      &lt;item name="android:paddingLeft"&gt;0dp&lt;/item&gt;
      &lt;item name="android:paddingRight"&gt;0dp&lt;/item&gt;
      &lt;item name="android:layout_width"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:minWidth"&gt;0dp&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="customActionBarTabBarStyle" parent="style/Widget.Sherlock.ActionBar.TabBar"&gt;
      &lt;item name="android:paddingLeft"&gt;0dp&lt;/item&gt;
      &lt;item name="android:paddingRight"&gt;0dp&lt;/item&gt;
      &lt;item name="android:layout_width"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:minWidth"&gt;0dp&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="customActionBarTabTextStyle" parent="style/Widget.Sherlock.ActionBar.TabText"&gt;
      &lt;item name="android:paddingLeft"&gt;0dp&lt;/item&gt;
      &lt;item name="android:paddingRight"&gt;0dp&lt;/item&gt;
      &lt;item name="android:layout_width"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:minWidth"&gt;0dp&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>