EditTextPreference - only numeric value inputType - isn't working

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


        
8条回答
  •  情歌与酒
    2021-01-18 10:16

    It happens when using android.support.v14.preference.PreferenceFragment or android.support.v7.preference.PreferenceFragmentCompat even after choosing android:inputType="numberDecimal". This issue could be overcome by using android.preference.PreferenceFragment. Unfortunately, it's deprecated in API level 28.

    Even refactoring to AndroidX, using androidx.preference.PreferenceFragment or androidx.preference.PreferenceFragmentCompat didn't fix the issue.

提交回复
热议问题