I want to input EditText som characters: android:digits="1234567890-_@#." If I don't set inputType
keyboard input Text is default.
I want show number keyboard show default. But:
If in EditText design ,i set:
android:inputType="number"
or
android:inputType="phone"
EditText don't show key (@,_) How show default keyboard number (allow input digits="1234567890-_@#."
) in Edittext?
Use this :
<EditText
android:id="@+id/ed1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text=""
android:inputType="number"
android:digits="1234567890-_@#."/>
It works for me and allow me to insert this characters "1234567890-_@#." only.
Hope this will help you.
Thanks.
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.