title: android inputType=phone not working
body: <p>I am trying to get the inputType=phone to work consistently.  It works perfectly in one project, but I can't get it to work in any other project.  By "work", I mean that the number is not formatted as the value is typed.  Here's a test project that does not work.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/activity_main"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context="com.jdot.testphoneinput2.MainActivity"&gt;
  
      &lt;EditText
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:inputType="phone"
          android:ems="10"
          android:layout_alignParentTop="true"
          android:layout_alignParentStart="true"
          android:id="@+id/editText"
          android:hint="enter phone" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Here's the class declaration:</p>
  
  <pre><code>package com.jdot.testphoneinput2;
  
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  
  public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  }
  </code></pre>
  
  <p>Notes:</p>
  
  <ol>
  <li>The project where it works also inherits from AppCompatActivity</li>
  <li>I've created this same project with and without AppCompatActivity</li>
  <li>I've compared the manifests and gradles of the projects that do and don't work.  There are no material differences other than the Activity definitions.  Specifically, the versions are all the same.</li>
  <li>I've changed the inputType to "password" and it worked fine, so the problem appears to be related specifically to the phone type</li>
  <li>In the project that works, like the ones that don't, the phone field is the only EditText on the Activity page.  When the Activity is loaded, the EditText gets focus.  However, the soft keyword is only displayed automatically by the project that works.  For the other projects, I have to tap the field in order to display the keyboard.</li>
  <li>In all projects, the root element in the XML is RelativeLayout</li>
  <li>I'm debugging on a Samsung S7 Edge</li>
  </ol>