EditTextPreference - only numeric value inputType - isn't working

前端 未结 8 601
迷失自我
迷失自我 2021-01-18 10:16


        
8条回答
  •  独厮守ぢ
    2021-01-18 10:22

    android:digits="0123456789"
    

    use this in edittext as it accepts only defined numbers. if its not working then use Android-Support-Preference-V7-Fix library.

    Fixed EditTextPreference forwards the XML attributes (like inputType) to the EditText, just like the original preference did.

提交回复
热议问题