title: Set EditText Digits Programmatically
body: <p>I am essentially trying to set the digits value of an EditText programmatically. So far I have:</p>
  
  <pre><code>weightInput.setInputType(InputType.TYPE_CLASS_PHONE);
  weightInput.setKeyListener(DigitsKeyListener.getInstance());
  </code></pre>
  
  <p>Which is fine, but I also want to be able to include a decimal place (.). Any ideas?</p>