title: How to declare wrap content to a dynamic button in code
body: <p>Here is my code</p>
  
  <pre><code>Button myButton = new Button(this);
  myButton.setText("Press Me");
  myButton.setTextColor(Color.WHITE);
  
  
  LinearLayout layout = (LinearLayout) findViewById(R.id.linearLayout1);
  layout.addView(myButton);
  </code></pre>
  
  <p>How do I add <code>wrapcontent</code> to this button?</p>