title: android set width and height to 100% of a dynamically created button
body: <p>that might be a silly question but i didn't find any answer on the internet.</p>
  
  <p>I want to create a button that fills the whole screen (width = 100%, height = 100%) when pressing another button.</p>
  
  <p>Therefore i tried this:</p>
  
  <pre><code>Button button = new Button();
  button.setText("fills screen");
  button.setWidth(100);
  button.setHeight(100);
  </code></pre>
  
  <p>the problem is that the setWidth and setHeight methods are dealing with px and not with percent.</p>
  
  <p>What do i need to add to use percent values instead of px values?</p>