Nested Classes | ||
---|---|---|
enum | TimeView.TimeType | This enumeration represents the cyclic periods that the view supports. |
Public Constructors | |
---|---|
TimeView(Context context, AttributeSet attrs) |
Protected Methods | |
---|---|
void | onMeasure(int widthMeasureSpec, int heightMeasureSpec) |
Public Methods | |
---|---|
int |
getTimeStateCount()
Returns the number of states in the TimeType this View has, e.g. |
TimeView.TimeType |
getTimeType()
Returns the TimeType that this view has been assigned, e.g. |
java.lang.CharSequence[] |
getTextResArray()
Returns the text resources contained in this TimeView, e.g. |
context | |
---|---|
attrs |
widthMeasureSpec | |
---|---|
heightMeasureSpec |
Returns the number of states in the TimeType this View has, e.g. 60 if the View has a Minutes TimeType, 24 if Hours etc.
the number of states.
Returns the TimeType that this view has been assigned, e.g. Minutes, Hours.
the configured time type.
Returns the text resources contained in this TimeView, e.g. "January, February..."
the array of text resources if any, null otherwise
This class represents a view with state that changes over time. It can be configured to show one of the supported periods represented by TimeView.TimeType. It needs to be nested in a TimeLayout to work.
It is by default configured to display a single state.
The appearance can be customized in mainly three ways:
XML Attributes