title: Is there a hard limit on the minimum height of a button in Android?
body: <p>I'd like to alter the size of my buttons at run-time in order to make them fit the screen well - so, in order to set the width of the buttons, I am doing - </p>
  
  <pre><code>int screenWidth = getWindowManager().getDefaultDisplay().getWidth(); 
  int buttonWidth = (screenWidth*2)/3; 
  </code></pre>
  
  <p>and then looping through the buttons calling <code>.setWidth(buttonWidth);</code> on each one. </p>
  
  <p>I'd like to alter the height in the same way, however when I run my application on the emulator the height doesn't change unless I set it to a larger value. </p>
  
  <pre><code>int screenHeight = getWindowManager().getDefaultDisplay().getHeight(); 
  int buttonHeight = (screenHeight-60)/14; 
  </code></pre>
  
  <p>I use <code>.setHeight(buttonHeight);</code> in the same loop, however it does not appear to do anything unless the value is very large. I've tried reducing the size of the text or the minimum height but this does not seem to have an effect. </p>