EditTextPreference Disable Buttons?

后端 未结 2 1377
悲&欢浪女
悲&欢浪女 2021-02-10 21:48

I want to have an EditTextPreference that will disable the OK button if there is no text in the EditText field. I created a custom EditTextPreference class and I am able to get

2条回答
  •  情话喂你
    2021-02-10 22:29

    need change the old EditTextPreference to the new ValidatedEditTextPreference in preference.xml.

    I did the following:

    Old code:

    
    

    New code:

    
    

提交回复
热议问题