Android:EditText 设置弹出数字输入法键盘

 <EditText
            android:id="@+id/tele_number"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textSize="22dp"
            android:digits="1234567890"
            android:hint="填写手机号"
            android:lines="1"/>

然后在java中

input_tele = findViewById(R.id.tele_number);
input_tele.setInputType(EditorInfo.TYPE_CLASS_NUMBER);
即可
原文地址:https://www.cnblogs.com/Rainm/p/10574543.html