Nested Classes | ||
---|---|---|
class | TimeLayout.Gravity | Contains constants for use with setGravity |
Public Constructors | |
---|---|
TimeLayout(Context context, AttributeSet attrs) |
Public Methods | |
---|---|
void | addView(View child, android.view.ViewGroup.LayoutParams params) |
void |
setGravity(int gravity)
Specifies how to place the content of an object, both on the x- and y-axis, within the object itself. |
int | getGravity() |
int | getTimeOffset() |
context | |
---|---|
attrs |
child | |
---|---|
params |
Specifies how to place the content of an object, both on the x- and y-axis, within the object itself.
gravity |
---|
negative or positive offset from the real time in seconds.
This class enables grouping of TimeView views. It provides horizontal alignment based on each child's size. It also makes it possible to offset the time for all child views. It can only contain TimeViews and will only position items horizontally.
XML Attributes