title: programmatically resize button
body: <p>I have created button programmatically in following way :</p>
  
  <pre><code>    Button button = new Button(this);
      button.setText("Previous");
      setContentView(button);
  </code></pre>
  
  <p>I am getting button but full screen occupied. How to resize it and place it as per my need ?</p>