public class DatePicker extends ListView implements android.widget.AbsListView.OnScrollListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
DatePicker.OnDateChangedListener |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
LIST_TOP_OFFSET |
protected int |
mCurrentScrollState |
protected float |
mFriction |
protected android.os.Handler |
mHandler |
protected long |
mPreviousScrollPosition |
protected int |
mPreviousScrollState |
protected com.rey.material.widget.DatePicker.ScrollStateRunnable |
mScrollStateChangedRunnable |
protected static int |
SCROLL_CHANGE_DELAY |
protected static int |
SCROLL_DURATION |
| Constructor and Description |
|---|
DatePicker(android.content.Context context) |
DatePicker(android.content.Context context,
android.util.AttributeSet attrs) |
DatePicker(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
DatePicker(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyStyle(int resId) |
java.util.Calendar |
getCalendar() |
int |
getDay() |
java.lang.String |
getFormattedDate(java.text.DateFormat formatter) |
int |
getMonth() |
int |
getSelectionColor() |
int |
getTextColor() |
int |
getTextDisableColor() |
int |
getTextHighlightColor() |
int |
getTextLabelColor() |
int |
getTextSize() |
android.graphics.Typeface |
getTypeface() |
int |
getYear() |
void |
goTo(int month,
int year) |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
void |
onScroll(android.widget.AbsListView view,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount) |
void |
onScrollStateChanged(android.widget.AbsListView absListView,
int scroll) |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
void |
postSetSelectionFromTop(int position,
int offset) |
void |
setContentPadding(int left,
int top,
int right,
int bottom) |
void |
setDate(int day,
int month,
int year) |
void |
setDateRange(int minDay,
int minMonth,
int minYear,
int maxDay,
int maxMonth,
int maxYear) |
void |
setOnDateChangedListener(DatePicker.OnDateChangedListener listener) |
void |
setPadding(int left,
int top,
int right,
int bottom) |
setRecyclerListenerprotected static final int SCROLL_DURATION
protected static final int SCROLL_CHANGE_DELAY
protected static final int LIST_TOP_OFFSET
protected android.os.Handler mHandler
protected int mCurrentScrollState
protected long mPreviousScrollPosition
protected int mPreviousScrollState
protected float mFriction
protected com.rey.material.widget.DatePicker.ScrollStateRunnable mScrollStateChangedRunnable
public DatePicker(android.content.Context context)
public DatePicker(android.content.Context context,
android.util.AttributeSet attrs)
public DatePicker(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
public DatePicker(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
public void applyStyle(int resId)
public void onScroll(android.widget.AbsListView view,
int firstVisibleItem,
int visibleItemCount,
int totalItemCount)
onScroll in interface android.widget.AbsListView.OnScrollListenerpublic void onScrollStateChanged(android.widget.AbsListView absListView,
int scroll)
onScrollStateChanged in interface android.widget.AbsListView.OnScrollListenerprotected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
protected void onSizeChanged(int w,
int h,
int oldw,
int oldh)
public void setPadding(int left,
int top,
int right,
int bottom)
public void setContentPadding(int left,
int top,
int right,
int bottom)
public void setDateRange(int minDay,
int minMonth,
int minYear,
int maxDay,
int maxMonth,
int maxYear)
public void goTo(int month,
int year)
public void postSetSelectionFromTop(int position,
int offset)
public void setDate(int day,
int month,
int year)
public void setOnDateChangedListener(DatePicker.OnDateChangedListener listener)
public int getDay()
public int getMonth()
public int getYear()
public java.lang.String getFormattedDate(java.text.DateFormat formatter)
public int getSelectionColor()
public int getTextSize()
public android.graphics.Typeface getTypeface()
public int getTextColor()
public int getTextLabelColor()
public int getTextHighlightColor()
public int getTextDisableColor()
public java.util.Calendar getCalendar()