ChatKit
ChatKit copied to clipboard
Activate submit button on empty EditText field of MessageInput
I wanted to record a voicemail on buttonLongPress when there's no letters in MessageInput EditText field. But the button seems to be deactivated and when I add a OnTouchListener mMessageInput.getButton().setOnTouchListener() it will be ignored. Nothing happens, the onTouchListener is never called.
mMessageInput.getButton().setActivated(true); makes no difference I can see.
How can I get catch a TouchEvent on the submit button while the EditText is empty?
Why need send button enable actually. Just send directly when voice record completed. MessageInput EditText has many dependency like isTyping and stopTyping. and send button has linked with MessageInput.
I wanted to start the voice recording with the button_down event and stop recording with the button_up event of the button. I can't do that because the button is deactivated. Is there any way I can force the button to be active or to catch the events otherwise?