If you own Android phone you are no doubt have noticed how in the certain apps the keyboard layout can change from the standard issue to digits-only or to have .com
or .net
special buttons based on the text field input type (e.g. phone number). So I have 2 questions:
- how to trigger this customization? I suspect it has to do with
EditText
format - Can this be taken even further if I want to add some custom buttons to inject a specific pattern? Say I would have an
AND
button which when pressed will add all uppercase " AND " surrounded by spaces to the text field. Can this be done? - What I'm not asking is how to capture some key combination in onKeyPress event and then populate text field with a pattern - I pretty much know how to do that already.