Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to allow space on android:digits

Tags:

android

I am restricting on Android Edittext as below

android:digits="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" but can't enter spaces. How can I make it allow spaces? Is this possible to get only via .xml?.

like image 944
james Avatar asked Aug 06 '16 11:08

james


1 Answers

Try this, hope it helps,

android:digits="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ " 
like image 118
Harshal Benake Avatar answered Sep 23 '22 13:09

Harshal Benake