Disable keyboard actionsend until email matcher return true

from the CommonsWare Community archives

At November 19, 2020, 1:21am, kaushik.rpk asked:

Hi Mark,
I have a scenario where I am using imeOption=actionSend in keyboard textview. I want the send button of keyboard disabled until the email matcher return true in viewmodel. I couldnt find any option on Stack overflow as well. I also read one of your answer on SO from 2012 which says you can not. Is it possible to listen textView values and make a keyboard button enable once the matcher return the email is validation is true.


At November 19, 2020, 12:53pm, mmurphy replied:

I am not aware of a way to tell the IME to disable the action button. What you do when the action button is pressed is under your control, so you can avoid sending anything until you are ready.