DatePicker

Class of android.widget · DatePicker.java · Android's reference

public class DatePicker extends FrameLayout

DatePicker ← FrameLayout ← ViewGroup ← View

A date that the user picks. It starts at the date of today; the runtime does not draw its calendar or spinners.

Nested types

Constructors

public DatePicker(Context context) source
public DatePicker(Context context, AttributeSet attrs) source
public DatePicker(Context context, AttributeSet attrs, int defStyleAttr) source
public DatePicker(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) source

Methods

public void init(int year, int monthOfYear, int dayOfMonth, OnDateChangedListener onDateChangedListener) source
public void setOnDateChangedListener(OnDateChangedListener onDateChangedListener) source
public void updateDate(int year, int month, int dayOfMonth) source
public int getYear() source
public int getMonth() source
public int getDayOfMonth() source
public long getMinDate() source
public void setMinDate(long minDate) source
public long getMaxDate() source
public void setMaxDate(long maxDate) source
public void setFirstDayOfWeek(int firstDayOfWeek) source
public int getFirstDayOfWeek() source
public boolean getCalendarViewShown() deprecated source
public void setCalendarViewShown(boolean shown) deprecated source
public boolean getSpinnersShown() deprecated source
public void setSpinnersShown(boolean shown) deprecated source
public CharSequence getAccessibilityClassName() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.