android - How to make an edit text start out numeric but accept text also -


in application have edittext (actually it's implementation of multiautocompletetextview, don't think matters) in user can enter formula calculated, although want enter integer.

what keyboard open numeric keyboard showing, allow them change text if want. standard of course shows letters , allwos them change numbers, ok, 90% of time want numbers.

i tried doing:

 operandedittext.setinputtype(inputtype.type_class_number|  inputtype.type_number_flag_signed|inputtype.type_class_text); 

but result numeric keypad letters written on number keys (like phone keypad), , didn't write letters anyway.

i'm aware add button, spinner or changed input mode of widget, aim of make interface easier use, , i'm not sure adding control achieve that.

is there way make want?


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -