Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

DatePicker

public class DatePicker
extends Picker

java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ androidx.leanback.widget.picker.Picker
           ↳ androidx.leanback.widget.picker.DatePicker


DatePicker is a directly subclass of Picker. This class is a widget for selecting a date. The date can be selected by a year, month, and day Columns. The "minDate" and "maxDate" from which dates to be selected can be customized. The columns can be customized by attribute "datePickerFormat" or setDatePickerFormat(String). R.attr.maxDate R.attr.minDate R.attr.datePickerFormat

Summary

Inherited constants

Inherited fields

Public constructors

DatePicker(Context context, AttributeSet attrs)
DatePicker(Context context, AttributeSet attrs, int defStyleAttr)

Public methods

long getDate()

Gets current date value in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

String getDatePickerFormat()

Get format of showing dates.

long getMaxDate()

Gets the maximal date supported by this DatePicker in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

long getMinDate()

Gets the minimal date supported by this DatePicker in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

final void onColumnValueChanged(int column, int newVal)

Classes extending Picker can override this function to supply the behavior when a list has been scrolled.

void setDate(long timeInMilliseconds)

Update the current date in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

void setDate(int year, int month, int dayOfMonth, boolean animation)

Update the current date.

void setDatePickerFormat(String datePickerFormat)

Changes format of showing dates.

void setMaxDate(long maxDate)

Sets the maximal date supported by this DatePicker in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

void setMinDate(long minDate)

Sets the minimal date supported by this DatePicker in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

Inherited methods