Custom picker dialog

I'm new to Android. I have a default spinner in my app. I want to change the design of the spinner. When the spinner is clicked, picker dialog should appear on the screen, displaying scrollable list. I don't know how to implement the code to meet my requirements.

在这里输入图像描述

I have read these articles: (1) (2)


You should take a look to the official guide for Dialogs usage in Android: http://developer.android.com/guide/topics/ui/dialogs.html

And more specifically for pickers : http://developer.android.com/guide/topics/ui/controls/pickers.html

For a number picker if your target is > to API 11: you can use the existing Android widget NumberPicker -> http://developer.android.com/reference/android/widget/NumberPicker.html Use this widget in a custom dialog box and it's done.

链接地址: http://www.djcxy.com/p/71878.html

上一篇: 为Android Ring Shape的扫掠角设置动画

下一篇: 自定义选取器对话框