ChatKit icon indicating copy to clipboard operation
ChatKit copied to clipboard

Activate submit button on empty EditText field of MessageInput

Open iWillBeUnderYourBed opened this issue 3 years ago • 2 comments

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?

iWillBeUnderYourBed avatar Apr 06 '21 22:04 iWillBeUnderYourBed

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.

mahbub-java avatar Aug 18 '21 23:08 mahbub-java

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?

iWillBeUnderYourBed avatar Aug 19 '21 00:08 iWillBeUnderYourBed