title: In Android XML, can I set buttonStyleSmall or Button.Small as a parent style to a custom style?
body: <p>I want to extend Android's small button style. I can do it inline:</p>
  
  <pre><code>&lt;Button android:id="@+id/myButton"
          style="?android:attr/buttonStyleSmall"
          android:layout_alignParentRight="true"
          android:layout_gravity="right"
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:textSize="10dp"
          android:text="Click Here"/&gt;
  </code></pre>
  
  <p>But in the interest of reusability, I want to transfer these styles to a custom style. How can I add <code>buttonStyleSmall</code> (or <code>Widget.Button.Small</code>?) as a parent to a style? Something like this in my custom style XML:</p>
  
  <pre><code>&lt;style name="RightLink" parent="?android:attr/buttonStyleSmall"&gt;
    &lt;item name="android:layout_alignParentRight"&gt;true&lt;/item&gt;
    &lt;item name="android:layout_gravity"&gt;right&lt;/item&gt;
    &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
    &lt;item name="android:layout_width"&gt;wrap_content&lt;/item&gt;
    &lt;item name="android:paddingLeft"&gt;2dp&lt;/item&gt;
    &lt;item name="android:paddingRight"&gt;2dp&lt;/item&gt;
    &lt;item name="android:textSize"&gt;10dp&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>with the button declaration using that style:</p>
  
  <pre><code>&lt;Button android:id="@+id/myButton"
          style="@style/RightLink"
          android:text="Click Here"/&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Using the correct syntax as described by Lukas below (use <code>@android:attr/buttonStyleSmall</code> as the parent), I'm still seeing a difference between the two:</p>
  
  <p>Button with buttonStyleSmall as style and inline styles added:</p>
  
  <p><img src="https://i.stack.imgur.com/dtE7Z.png" alt="pic1"></p>
  
  <p>Custom style with buttonStyleSmall as the parent:</p>
  
  <p><img src="https://i.stack.imgur.com/tDSLd.png" alt="pic2"></p>
  
  <p>What am I missing?</p>