EditText onClickListener in Android

后端 未结 14 2104
时光取名叫无心
时光取名叫无心 2020-12-02 12:03

I want an EditText which creates a DatePicker when is pressed. So I write the following code:

    mEditInit = (EditText) findViewById(R.id.date_init);
    mE         


        
14条回答
  •  庸人自扰
    2020-12-02 12:12

    I had this same problem. The code is fine but make sure you change the focusable value of the EditText to false.

    
    

    I hope this helps anyone who has had a similar problem!

提交回复
热议问题