How to do something after user clicks on my EditText

后端 未结 6 1814
庸人自扰
庸人自扰 2020-11-30 03:01

I have an EditText that shows time. After user clicks the EditText I want to show a TimePickerDialog, so I set a View.OnClickLis

6条回答
  •  遥遥无期
    2020-11-30 03:19

    If I understand correctly you just need something like

    
    

    not editable and clickable. Set the OnClickListener and you're done. In theory, in the practice you should add too

    android:editable="false" 
    

    which is deprecated but does the trick.

提交回复
热议问题