I have set input type to be numberdecimal but also want to populate the editText with a “-” programmatically. I can add the text but then I am unable to edit the text as it doesn’t confirm to the number decimal format. Any idea on how I can say inputtype is numberdecimal but a “-” can be allowed?
Share
You will have to write your own KeyListener. You could start by downloading the source of the NumberKeyListener and take it from there.
Martin