Custom keypad layout in Android -


i have edittext in app user can enter decimal volume in.

at moment use:

edittext edittextvolume = (edittext)findviewbyid(r.id.edit_vol); edittextvolume.setinputtype(inputtype.type_class_number|inputtype.type_number_flag_decimal);  

to numerical keypad. there anyway can have same keypad button * or x can allow user input example 4x200.

i want 1 multiplication character (so no divide or other mathematical operators)

is possible?

not possible without implementing own custom keypad.

however, if project requirements not strict, may use inputtype.type_class_phone. allow putting * symbol, make available several other symbols (e.g., #, +, ., ,) used in phone numbers.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

html - Repeat image to extend header to fill screen -

javascript - Backbone.js getting target attribute -