title: Actionbar tab width and badge implementation
body: <p><strong>Dears,</strong> </p>
  
  <p>Take a look on the screen shot: </p>
  
  <p><img src="https://i.stack.imgur.com/HN2B4.png" alt="Alert"></p>
  
  <p><strong>The problem:</strong> </p>
  
  <ol>
  <li>Unable to set the width of the tab. </li>
  <li>The badge always overlapped with tab text. </li>
  </ol>
  
  <p><strong>Code of badge:</strong> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/tab_background_select" &gt;
  
      &lt;TextView
          android:id="@+id/tabTitle"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:gravity="center"
          android:singleLine="true"
          android:padding="10dp"
          android:textColor="@color/font_color"/&gt;
  
      &lt;TextView
          android:id="@+id/textOne"
          style="@style/txtBadge"
          android:text="99"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>Style:</strong> </p>
  
  <pre><code>&lt;style name="txtBadge" parent="@android:style/TextAppearance.Small"&gt;
      &lt;item name="android:layout_width"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:layout_alignTop"&gt;@id/tabTitle&lt;/item&gt;
      &lt;item name="android:layout_alignRight"&gt;@id/tabTitle&lt;/item&gt;
      &lt;item name="android:layout_marginTop"&gt;5dp&lt;/item&gt;
      &lt;item name="android:layout_marginRight"&gt;5dp&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/font_color&lt;/item&gt; 
      &lt;item name="android:padding"&gt;2dp&lt;/item&gt;
      &lt;item name="android:background"&gt;@drawable/badge_design&lt;/item&gt;           
  &lt;/style
  </code></pre>
  
  <p>Any help? 
  Tried to change the width but with no luck.</p>