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.