android - Setting DigitsKeyListener -


i trying assign nummeric input type based on comma decimal point, german locale uses comma decimal point follows in textchangelistener:

edittext.setkeylistener(digitskeylistener.getinstance("0123456789,")); 

however, using stock samsung keyboard (note 10.1 n8000) , stock lg keyboard (lg g3) forces number keypad forcing entering numbers 0-9 without possible decimals. running third party keyboard swiftkey , google keyboard displays nummeric keypad inlcuding decimal , comma. idea how solve problem stock keyboards?

there no way this. listener not set keys. keyboard app decides this. listener disallows characters, not keyboard or control keys keyboard wishes display. inputtype used keyboard hint that, keyboard won't know keylistener is, less 1 applied.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -