Apply style resource in drawable xml
<p>I have this in res/values/styles.xml</p>

<pre><code>    &lt;style name="ListViewRowBorder" &gt;
        &lt;item name="android:width"&gt;1dp&lt;/item&gt;
        &lt;item name="android:color"&gt;@color/listview_row_stroke_color&lt;/item&gt;
    &lt;/style&gt;
</code></pre>

<p>I am able to access color resources.How do i access this style resource in res/drawable/file.xml (shown below)
The way i have tried below does not seem to work.</p>

<pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
&lt;item&gt;
    &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
        android:shape="rectangle"&gt;
        &lt;solid android:color="@color/list_item_dark_background"/&gt;
        &lt;stroke style="@style/ListViewRowBorder" /&gt;
    &lt;/shape&gt;
&lt;/item&gt;
</code></pre>

<p></p>
