title: How do you set the EditText keyboard to only consist of numbers on Android?
body: <p>I want my <code>EditText</code> to display a keyboard that <strong>ONLY</strong> has numbers visible, no other characters.</p>
  <p>I have tested with all available inputs and it doesn't work. I searched for a way to get a keyboard that only has numbers but I have only seen references to:</p>
  <pre><code>android: inputType = &quot;numberPassword&quot;
  </code></pre>
  <p>But I want the numbers to be visible, like this: (numberPassword)</p>
  <p><img src="https://i.stack.imgur.com/jW4sd.png" alt="enter image description here" /></p>
  <p>I have tried with:</p>
  <pre><code>android:digits=&quot;0123456789&quot;
  android:inputType=&quot;phone&quot;
  </code></pre>
  <p>and</p>
  <pre><code>android:inputType=&quot;number&quot;
  </code></pre>
  <p>but it appears like this:</p>
  <p><img src="https://i.stack.imgur.com/Q8JMk.png" alt="enter image description here" /></p>