Skip to content
Advertisement

Needing to double click EditText for click listener to respond

I have a section of code where I want to change the text showing in a textView when the user selects an EditText box.

The problem I am having is that the textView only changes when I double click the EditText box, one click and there is no change to the textView.

Is there another click listener that I should be using?

JavaScript

Advertisement

Answer

Try setting OnTouchListener rather than OnClickListener

Advertisement