Wrong drawable color with hardware acceleration
<p>My app is hardware accelerated by default (android:hardwareAccelerated="true" set in manifest).</p>

<p>I have a drawable which i set as a background for a view.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle"&gt;

    &lt;stroke
        android:width="1px"
        android:color="#666666" /&gt;

    &lt;solid android:color="@android:color/transparent" /&gt;

&lt;/shape&gt;
</code></pre>

<p>Also i have another view:</p>

<pre><code> &lt;View
        android:id="@+id/divider"
        android:layout_width="fill_parent"
        android:layout_height="1px"
        android:background="#666666" /&gt;
</code></pre>

<p>Line width and color should be the same for both. And they are same if i set</p>

<pre><code>setLayerType(View.LAYER_TYPE_SOFTWARE, null);
</code></pre>

<p>But!
If i do not set software layer type for the view with drawable background, i get 2 different lines:</p>

<p>-the line with color background is ok,</p>

<p>-another one becomes 2px wide, drawn with 2 colors: #333333 and #191919.</p>

<p>Can you please help me? Why does it behave this way? And how can i fix this without disabling hardware acceleration?</p>
