Padding on Shape in Progressbar
<p>I'm using xml file to define progress bar.
I defined padding on background shape. But this setting will be sometimes displayed correctly, sometimes not.
So If I start my application or Activity with progressbar inside, there will be correctly displayed progressbar with background and 'padded' progress. Then I close my application and start it again, and, progressbar is displayed without padded background, on next start will be displayed correctly and son on ... 
 Could you please advice possible reasons for this?</p>

<p>xml file:
    
</p>

<pre><code>&lt;item android:id="@android:id/background" &gt;
    &lt;shape&gt;
        &lt;corners android:radius="15dip" /&gt;
        &lt;padding
                android:left="1dp"
                android:top="6dp"
                android:right="1dp"
                android:bottom="6dp" 
        /&gt;
        &lt;solid
                android:color="#00000000" /&gt;
    &lt;/shape&gt;
&lt;/item&gt;

&lt;item android:id="@android:id/progress" &gt;
    &lt;clip android:clipOrientation="horizontal" android:gravity="left" &gt;
        &lt;shape
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:shape="rectangle"&gt;
            &lt;corners android:radius="15dip" /&gt;
            &lt;stroke 
            android:width="1px" 
            android:color="#ffffffff" 
            android:dashWidth="2px" 
            android:dashGap="0px"/&gt;
            &lt;solid
                android:color="#ff0000ff" /&gt;
        &lt;/shape&gt;
    &lt;/clip&gt;
&lt;/item&gt; 
</code></pre>

<p>    </p>
