public class

HtcDatePicker

extends RelativeLayout
implements HtcNumberPicker.OnScrollIdleStateListener
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.RelativeLayout
         ↳ com.htc.widget.HtcDatePicker

Summary

Nested Classes
interface HtcDatePicker.OnDateChangedListener The callback used to indicate the user changes the date. 
Constants
int PICKER_TYPE_DAY
int PICKER_TYPE_MONTH
int PICKER_TYPE_YEAR
[Expand]
Inherited Constants
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.ViewGroup
From class android.view.View
Public Constructors
HtcDatePicker(Context context)
HtcDatePicker(Context context, AttributeSet attrs)
HtcDatePicker(Context context, AttributeSet attrs, int defStyle)
Public Methods
void disableTitle()
void dispatchOnScrollIdleStateListener(HtcNumberPicker.OnScrollIdleStateListener target)
int getCurrentDay()
int getCurrentMonth()
int getCurrentYear()
void init(int year, int monthOfYear, int dayOfMonth, HtcDatePicker.OnDateChangedListener onDateChangedListener)
Initializes the state.
void initPicker(int year, int monthOfYear, int dayOfMonth)
void onConfigurationChanged(Configuration newConfig)
void onDataSet(HtcNumberPicker target, int data)
Callback to provide CenterView Id when scroll state turn to idle
void onSizeChanged(int w, int h, int oldw, int oldh)
void releaseResource()
void setCurrentDay(int day)
void setCurrentMonth(int month)
void setCurrentYear(int year)
void setDayPickerTitle(String title)
void setDayRange(int min, int max)
void setMonthPickerTitle(String title)
void setMonthRange(int min, int max)
void setOnScrollIdleStateListener(HtcNumberPicker.OnScrollIdleStateListener listener)
void setPickerBackground(int target, int tumblerId, int shadowId)
void setPickerTextColor(int target, int textColor)
void setPickersOrder(String order)
void setRepeatEnable(boolean b)
void setYearPickerTitle(String title)
void setYearRange(int min, int max)
[Expand]
Inherited Methods
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.graphics.drawable.Drawable.Callback2
From interface android.view.HtcIfViewGroup
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.htc.widget.HtcNumberPicker.OnScrollIdleStateListener

Constants

public static final int PICKER_TYPE_DAY

Since: API Level 4.0

Constant Value: 2 (0x00000002)

public static final int PICKER_TYPE_MONTH

Since: API Level 4.0

Constant Value: 1 (0x00000001)

public static final int PICKER_TYPE_YEAR

Since: API Level 4.0

Constant Value: 0 (0x00000000)

Public Constructors

public HtcDatePicker (Context context)

Since: API Level 2.0

public HtcDatePicker (Context context, AttributeSet attrs)

Since: API Level 2.0

public HtcDatePicker (Context context, AttributeSet attrs, int defStyle)

Since: API Level 2.0

Public Methods

public void disableTitle ()

Since: API Level 2.0

public void dispatchOnScrollIdleStateListener (HtcNumberPicker.OnScrollIdleStateListener target)

Since: API Level 2.0

public int getCurrentDay ()

Since: API Level 2.0

public int getCurrentMonth ()

Since: API Level 2.0

public int getCurrentYear ()

Since: API Level 2.0

public void init (int year, int monthOfYear, int dayOfMonth, HtcDatePicker.OnDateChangedListener onDateChangedListener)

Since: API Level 2.0

Initializes the state.

Parameters
year The initial year.
monthOfYear The initial month.
dayOfMonth The initial day of the month.
onDateChangedListener How user is notified date is changed by user, can be null.

public void initPicker (int year, int monthOfYear, int dayOfMonth)

Since: API Level 2.0

public void onConfigurationChanged (Configuration newConfig)

Since: API Level 2.0

public void onDataSet (HtcNumberPicker target, int data)

Since: API Level 2.0

Callback to provide CenterView Id when scroll state turn to idle

Parameters
target Target NumberTableView
data Relative centerView data

public void onSizeChanged (int w, int h, int oldw, int oldh)

Since: API Level 2.0

public void releaseResource ()

Since: API Level 2.0

public void setCurrentDay (int day)

Since: API Level 2.0

public void setCurrentMonth (int month)

Since: API Level 2.0

public void setCurrentYear (int year)

Since: API Level 2.0

public void setDayPickerTitle (String title)

Since: API Level 2.0

public void setDayRange (int min, int max)

Since: API Level 2.0

public void setMonthPickerTitle (String title)

Since: API Level 2.0

public void setMonthRange (int min, int max)

Since: API Level 2.0

public void setOnScrollIdleStateListener (HtcNumberPicker.OnScrollIdleStateListener listener)

Since: API Level 2.0

public void setPickerBackground (int target, int tumblerId, int shadowId)

Since: API Level 4.0

public void setPickerTextColor (int target, int textColor)

Since: API Level 4.0

public void setPickersOrder (String order)

Since: API Level 2.0

public void setRepeatEnable (boolean b)

Since: API Level 2.0

public void setYearPickerTitle (String title)

Since: API Level 2.0

public void setYearRange (int min, int max)

Since: API Level 2.0