title: How to create a four digit password Android layout
body: <p>I want to create a layout for an Android app that has a numeric keypad and takes four digits to determine if it matches a preset passcode value. </p>
  
  <p>I have seen a few applications use this, so I would have thought that it was a high level widget of some description. </p>
  
  <p>The only thing I can find that's remotely close to what I want is this:</p>
  
  <pre><code>&lt;EditText
      android:id="@+id/editText1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:ems="10"
      android:inputType="numberPassword" &gt;
  
      &lt;requestFocus /&gt;
  &lt;/EditText&gt;
  </code></pre>
  
  <p>But this isn't really what I'm looking for. </p>
  
  <p>Any input would be awesome and thanks in advance. </p>
  
  <p>EDIT: Here's an image of the iOS dropbox app start screen that I'd like:</p>
  
  <p><img src="https://i.stack.imgur.com/kS2eA.png" alt="Dropbox iOS passcode screen"></p>