Android preferences spinner
问题 How can I build something like this? I wanna open a dialog in the Preferences Activity, where the user can change the number with a spinner, when he clicks on the according preference item. I got the screenshot from Android Developer Tools, but I cannot find some example code. 回答1: I have developed a Custom Preference, which can be found here. XML Code: <com.vanniktech.vntnumberpickerpreference.VNTNumberPickerPreference android:defaultValue="@integer/font_size_default_value" android:key=