I would like to as if there is a way to programmatically dismiss the context menu of android .
The menu shows whenever I long press the TextInputEditText. "Cut", "Copy", "Paste", "Share".
I want to dismiss this menu when either pressing a button or just pressing outside the TextInputEditText.
Currently, nothing happens when I do the above actions. It only gets dismissed whenever I choose an option or press the back button.