how can i add the “setInputType” propety to an EditTextPreference (my goal is to set the input type to numbers only), i’ve tried:
editTextPref.setInputType(InputType.TYPE_CLASS_NUMBER);
but this only seems to work for EditTexts, not EditTextPreferences
You can retrieve the EditText from the Preference and from there setInputTypes or use KeyListeners to inform the keyboard: