public class

HtcTimePicker

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

Summary

Nested Classes
interface HtcTimePicker.OnTimeSetListener The callback used to indicate the user changes the date. 
Constants
int PICKER_TYPE_AMPM
int PICKER_TYPE_HOUR
int PICKER_TYPE_MINUTE
int PICKER_TYPE_SECOND
[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
HtcTimePicker(Context context)
HtcTimePicker(Context context, AttributeSet attrs)
HtcTimePicker(Context context, AttributeSet attrs, int defStyle)
Public Methods
void disableTitle()
void dispatchOnScrollIdleStateListener(HtcNumberPicker.OnScrollIdleStateListener target)
int getCurrentAmPm()
int getCurrentHour()
int getCurrentMinute()
int getCurrentSecond()
int getTableViewSlideOffset()
void init(int hour, int minute, int second, HtcTimePicker.OnTimeSetListener onTimeSetListener)
Initializes the state.
void initPicker(int hour, int minute, int second)
boolean isSecondPickerEndabled()
void onConfigurationChanged(Configuration newConfig)
void onDataSet(HtcNumberPicker target, int data)
Callback to provide CenterView Id when scroll state turn to idle
void releaseResource()
void setAmPmRange(int min, int max, String[] candidates)
void setCurrentAmPm(int ampm)
void setCurrentHour(int h)
void setCurrentMinute(int m)
void setCurrentSecond(int s)
void setCustomShadow(int layer, float radius, float dx, float dy, int color)
void setEnabled(boolean enabled)
void setHourPickerTitle(String title)
void setHourRange(int min, int max)
void setMinutePickerTitle(String title)
void setMinuteRange(int min, int max)
void setMinuteRange(int min, int max, boolean multiStop)
void setOnScrollIdleStateListener(HtcNumberPicker.OnScrollIdleStateListener listener)
void setPickerBackground(int target, int tumblerId, int shadowId, int width)
void setPickerBackground(int target, int tumblerId, int shadowId)
void setPickerTextColor(int target, int textColor)
void setRepeatEnable(boolean b)
void setSecondPickerEnable(boolean b)
void setSecondPickerEnable(boolean b, boolean white)
void setSecondPickerTitle(String title)
void setSecondRange(int min, int max)
void slideHourWithOffset(int offset)
void slideMinuteWithOffset(int offset)
void slideSecondWithOffset(int offset)
void startAnimation(Animation an)
Protected Methods
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
[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_AMPM

Since: API Level 4.0

Constant Value: 3 (0x00000003)

public static final int PICKER_TYPE_HOUR

Since: API Level 4.0

Constant Value: 0 (0x00000000)

public static final int PICKER_TYPE_MINUTE

Since: API Level 4.0

Constant Value: 1 (0x00000001)

public static final int PICKER_TYPE_SECOND

Since: API Level 4.0

Constant Value: 2 (0x00000002)

Public Constructors

public HtcTimePicker (Context context)

Since: API Level 2.0

public HtcTimePicker (Context context, AttributeSet attrs)

Since: API Level 2.0

public HtcTimePicker (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 getCurrentAmPm ()

Since: API Level 2.0

public int getCurrentHour ()

Since: API Level 2.0

public int getCurrentMinute ()

Since: API Level 2.0

public int getCurrentSecond ()

Since: API Level 2.0

public int getTableViewSlideOffset ()

Since: API Level 4.4

public void init (int hour, int minute, int second, HtcTimePicker.OnTimeSetListener onTimeSetListener)

Since: API Level 2.0

Initializes the state.

public void initPicker (int hour, int minute, int second)

Since: API Level 2.0

public boolean isSecondPickerEndabled ()

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 releaseResource ()

Since: API Level 2.0

public void setAmPmRange (int min, int max, String[] candidates)

Since: API Level 2.0

public void setCurrentAmPm (int ampm)

Since: API Level 2.0

public void setCurrentHour (int h)

Since: API Level 2.0

public void setCurrentMinute (int m)

Since: API Level 2.0

public void setCurrentSecond (int s)

Since: API Level 2.0

public void setCustomShadow (int layer, float radius, float dx, float dy, int color)

Since: API Level 4.8

public void setEnabled (boolean enabled)

Since: API Level

public void setHourPickerTitle (String title)

Since: API Level 2.0

public void setHourRange (int min, int max)

Since: API Level 2.0

public void setMinutePickerTitle (String title)

Since: API Level 2.0

public void setMinuteRange (int min, int max)

Since: API Level 2.0

public void setMinuteRange (int min, int max, boolean multiStop)

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, int width)

Since: API Level

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 setRepeatEnable (boolean b)

Since: API Level 2.0

public void setSecondPickerEnable (boolean b)

Since: API Level 2.0

public void setSecondPickerEnable (boolean b, boolean white)

Since: API Level 2.0

public void setSecondPickerTitle (String title)

Since: API Level 2.0

public void setSecondRange (int min, int max)

Since: API Level 2.0

public void slideHourWithOffset (int offset)

Since: API Level 2.0

public void slideMinuteWithOffset (int offset)

Since: API Level 2.0

public void slideSecondWithOffset (int offset)

Since: API Level 2.0

public void startAnimation (Animation an)

Since: API Level

Protected Methods

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

Since: API Level