public class DatePicker extends FrameLayout
java.lang.Object ↳android.view.View ↳android.view.ViewGroup ↳android.widget.FrameLayout ↳android.widget.DatePickerProvides a widget for selecting a date. 一个选择日期的控件。
When the DatePicker_datePickerMode attribute is set to spinner, the date can be selected using year, month, and day spinners or a CalendarView. The set of spinners and the calendar view are automatically synchronized. The client can customize whether only the spinners, or only the calendar view, or both to be displayed. 当DatePicker_datePickerMode属性设置为spinner时,可以使用年,月,日Spinner或CalendarView来选择日期。这几个spinner和日历视图自动同步。使用者可以自定义是否只有spinner,或者只有日历视图,或者两者都显示。
When the DatePicker_datePickerMode attribute is set to calendar, the month and day can be selected using a calendar-style view while the year can be selected separately using a list. 当DatePicker_datePickerMode属性设置为calendar时,可以使用日历样式的视图来选择月份和日期,并使用一个列表来单独选择年份。
See the Pickers guide. 请参考Pickers。
For a dialog using this view, see DatePickerDialog. 使用此视图的一个对话框,请参考DatePickerDialog。
The callback used to indicate the user changed the date. 用于监听用户改变日期的回调。
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/DatePicker.html