Styles, minHeight/maxHeight: I cannot get the maxHeight to override the theme minHeight
<p>Im thinking that more "global" styles are always overridden by more "local" Styles. For example, if I redefine all Buttons to have textSize=40dip (apply that Style as a Theme for the Application) and then apply another Style to a specific Button that says textSize=10dip, then that specific Button should get 10dip textSize.</p>

<p>And that is how it works, usually. But not when it comes to maxHeight. Here is the scenario:</p>

<p>In my <i>styles.xml</i> I have one Style where I inherit the default Button and change textSize and minHeight, and then another Style that sets some other values (but also inherits from Button), like this:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources&gt;
&lt;style name="Button" parent="@android:style/Widget.Button"&gt;
    &lt;item name="android:textSize"&gt;26dip&lt;/item&gt;
    &lt;item name="android:minHeight"&gt;60dip&lt;/item&gt;
&lt;/style&gt;

&lt;style name="ButtonHeader" parent="@android:style/Widget.Button"&gt;
    &lt;item name="android:textSize"&gt;18dip&lt;/item&gt;
    &lt;item name="android:minWidth"&gt;70dip&lt;/item&gt;
    &lt;item name="android:maxHeight"&gt;10dip&lt;/item&gt;
&lt;/style&gt;
&lt;/resources&gt;    
</code></pre>

<p>I apply the first Style as a theme for my Activity which makes all the buttons larger (minHeight=60dip). But I have a "header" (where I have some other buttons) that I do not want to have a minHeight of 60dip, and for those buttons I want to use the <i>ButtonHeader</i>, setting the maxHeight to 10dip.</p>

<p>In my <i>header.xml</i> it looks like this:</p>

<pre><code>&lt;Button style="@style/ButtonHeader" android:text="UPP" android:id="@+id/Header_Button_UPP" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt;&lt;/Button&gt;
&lt;Button style="@style/ButtonHeader" android:text="ALT" android:id="@+id/Header_Button_ALT" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt;&lt;/Button&gt;
&lt;Button style="@style/ButtonHeader" android:text="NAV" android:id="@+id/Header_Button_NAV" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt;&lt;/Button&gt;
&lt;Button style="@style/ButtonHeader" android:text="HIS" android:id="@+id/Header_Button_HIS" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt;&lt;/Button&gt;
</code></pre>

<p>I am specificly styling the buttons, overriding the "global" theme. It works in some parts; the textSize for these header-buttons is correctly set to 18dip, but the maxHeight is ignored - these buttons also increase in height to 60dip.</p>

<p>If I, in the style for ButtonHeader, set android:minHeight="100dip" the buttons in the header will increase in size to 100dip, overriding the Theme.
But, as stated above, when I have android:maxHeight instead, nothing happens.</p>

<p>What am I missing?</p>
