I have a numberpicker with a plus and minus button and a edittext.
The user can click on the plus and minus button to increase / decrease or manually input when he clicks on the edittext.
But each time the user clicks a +/- button the text changes and the edittext receives focus.
This means the border changes color and the cursor shows up.
I want to avoid that, how can I do this?
I tried adding clearFocus() to the onTextChanged listener, and this works but the border still changes color for a moment.
In your XML file where you have your editText, you can set the focusable to false:
To show the keyboard manually, use:
And put this on a listener.