简体   繁体   中英

android EditText Switches the keyboard on focus

Android:我将editText输入类型设置为数字,但是当焦点第一次出现时,它将打开字母数字键盘,然后在第二次打开数字键盘

Try to set xml in edittext input type like this way..

<EditText 
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:inputType="number"
    />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM