Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate submit button on empty EditText field of MessageInput #350

Open
iWillBeUnderYourBed opened this issue Apr 6, 2021 · 2 comments

Comments

@iWillBeUnderYourBed
Copy link

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?

@mahbub-java
Copy link

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.

@iWillBeUnderYourBed
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants