I have an EditText that shows the time. After the user clicks the EditText button, I want to show TimePickerDialog , so I set the View.OnClickListener to my EditText .
But OnClickListener behaves strangely - I touch EditText , and then a soft keyboard appears (which I don't want). When I touch again, OnClickListener.onClick() finally gets called and a dialog box appears.
What if I want the dialog box to appear immediately?
android android-edittext onclicklistener
fhucho Jan 22 2018-10-22 17:17
source share