How does an android:attr style work?
<p>I'm trying to build an Android UI via layouts.  I start with the following:</p>

<pre><code>&lt;TextView
    android:id="@+id/..."
    android:layout_marginTop="8dip"
    android:text="..."
    style="?android:attr/listSeparatorTextViewStyle"/&gt;
</code></pre>

<p>And that looks good (all caps, smaller font, dividing bar underneath it).  Now I want to extend the style, so I change it to the following:</p>

<pre><code>&lt;TextView
    android:id="@+id/..."
    android:layout_marginTop="8dip"
    android:text="..."
    style="@style/section_title"/&gt;
</code></pre>

<p>With a style of:</p>

<pre><code>&lt;style name="section_title" parent="@android:attr/listSeparatorTextViewStyle"&gt;
    &lt;item name="android:layout_width"&gt;fill_parent&lt;/item&gt;
    &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p>And that doesn't work (font is correct, but the divider line is gone).</p>

<p>How come... that?</p>
