title: Android add placeholder text to EditText
body: <p>How can I add a <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input" rel="noreferrer">placeholder</a> text to <code>EditText</code> in the class that isn't in the XML?</p>
  
  <p>I have the following <code>EditText</code> in my code which will be shown in alertdialog:</p>
  
  <pre><code>    final EditText name = new EditText(this);
  </code></pre>