Sony Addon SDK public class

TimeLayout

This project is no longer being supported and will not get any further updates.
extends LinearLayout
  1. java.lang.Object
  2. LinearLayout
  3. com.sonyericsson.extras.liveware.aef.widget.TimeLayout

Class Overview

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

  • timeOffset: Positive or negative offset in seconds that should be applied to all child views.
  • gravity: Specifies how to place the children, both on the x- and y-axis, within the layout.

Summary

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

Public Constructors

public TimeLayout(Context context, AttributeSet attrs)

Parameters
context
attrs

Public Methods

public void addView(View child, android.view.ViewGroup.LayoutParams params)

Parameters
child
params

public void setGravity(int gravity)

Specifies how to place the content of an object, both on the x- and y-axis, within the object itself.

Parameters
gravity
See Also

public int getGravity()

public int getTimeOffset()

Returns

negative or positive offset from the real time in seconds.