1. 程式人生 > >Android7.0中文文件(API)--- DatePicker

Android7.0中文文件(API)--- DatePicker

DatePicker

public class DatePicker


Provides a widget for selecting a date.
一個選擇日期的控制元件。

When the attribute is set to spinner, the date can be selected using year, month, and day spinners or a . 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.
當屬性設定為spinner

時,可以使用年,月,日Spinner或來選擇日期。這幾個spinner和日曆檢視自動同步。使用者可以自定義是否只有spinner,或者只有日曆檢視,或者兩者都顯示。

When the 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.
當屬性設定為calendar時,可以使用日曆樣式的檢視來選擇月份和日期,並使用一個列表來單獨選擇年份。

摘要

巢狀類

interface

The callback used to indicate the user changed the date. 
用於監聽使用者改變日期的回撥。 

繼承XML屬性