Android -- Title bar invisible padding
<p>So, I've seen several instances of padding being a problem in a custom title bar but this seems to be unique and I would love to see if anyone could shed some light on it.</p>

<p>Here's what I have:</p>

<p><img src="http://i.stack.imgur.com/TJif8.png" alt="" title="Hosted by imgur.com" /></p>

<p>There's padding to the right of the configure button that shouldn't be.  I want a little bit of padding in the end but, to prove a point, this is with no padding set.  Here's the layout for the custom title bar.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/container"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#FFF" &gt;
    &lt;LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" &gt;
        &lt;ImageView 
            android:id="@+id/titleImage"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:paddingLeft="8dip"
            android:paddingTop="8dip"
            android:paddingBottom="8dip"
            android:src="@drawable/icon" /&gt;
        &lt;TextView android:id="@+id/customtitlebar"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:text="COMPANY"
            android:textSize="20dip"
            android:textColor="#205cc7"
            android:textStyle="bold"
            android:paddingTop="15px" /&gt;
    &lt;/LinearLayout&gt;
    &lt;LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="right" &gt;
        &lt;ImageView
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:paddingTop="8dip"
            android:paddingBottom="8dip"
            android:src="@drawable/configure" /&gt;
    &lt;/LinearLayout&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>I thought maybe the layout I gave a dummy id "container" was being cut off as well and the problem was outside this layout, but, when I change its background to red, it takes up the whole screen.</p>

<p><img src="http://i.stack.imgur.com/fEAi5.png" alt="" title="Hosted by imgur.com" /></p>

<p>Does anyone have a solution short of hiding the OS title bar and making it a header for every screen layout?</p>
