public class HVArrangement extends AndroidViewComponent implements Component, ComponentContainer
container
ACCELEROMETER_SENSITIVITY_MODERATE, ACCELEROMETER_SENSITIVITY_STRONG, ACCELEROMETER_SENSITIVITY_WEAK, ALIGNMENT_CENTER, ALIGNMENT_NORMAL, ALIGNMENT_OPPOSITE, ASSET_DIRECTORY, BUTTON_SHAPE_DEFAULT, BUTTON_SHAPE_OVAL, BUTTON_SHAPE_RECT, BUTTON_SHAPE_ROUNDED, COLOR_BLACK, COLOR_BLUE, COLOR_CYAN, COLOR_DEFAULT, COLOR_DKGRAY, COLOR_GRAY, COLOR_GREEN, COLOR_LTGRAY, COLOR_MAGENTA, COLOR_NONE, COLOR_ORANGE, COLOR_PINK, COLOR_RED, COLOR_WHITE, COLOR_YELLOW, DEFAULT_VALUE_COLOR_BLACK, DEFAULT_VALUE_COLOR_BLUE, DEFAULT_VALUE_COLOR_CYAN, DEFAULT_VALUE_COLOR_DEFAULT, DEFAULT_VALUE_COLOR_DKGRAY, DEFAULT_VALUE_COLOR_GRAY, DEFAULT_VALUE_COLOR_GREEN, DEFAULT_VALUE_COLOR_LTGRAY, DEFAULT_VALUE_COLOR_MAGENTA, DEFAULT_VALUE_COLOR_NONE, DEFAULT_VALUE_COLOR_ORANGE, DEFAULT_VALUE_COLOR_PINK, DEFAULT_VALUE_COLOR_RED, DEFAULT_VALUE_COLOR_WHITE, DEFAULT_VALUE_COLOR_YELLOW, DIRECTION_EAST, DIRECTION_MAX, DIRECTION_MIN, DIRECTION_NONE, DIRECTION_NORTH, DIRECTION_NORTHEAST, DIRECTION_NORTHWEST, DIRECTION_SOUTH, DIRECTION_SOUTHEAST, DIRECTION_SOUTHWEST, DIRECTION_WEST, FONT_DEFAULT_SIZE, LAYOUT_ORIENTATION_HORIZONTAL, LAYOUT_ORIENTATION_VERTICAL, LENGTH_FILL_PARENT, LENGTH_PREFERRED, LENGTH_UNKNOWN, SLIDER_MAX_VALUE, SLIDER_MIN_VALUE, SLIDER_THUMB_VALUE, TOAST_LENGTH_LONG, TOAST_LENGTH_SHORT, TYPEFACE_DEFAULT, TYPEFACE_MONOSPACE, TYPEFACE_SANSSERIF, TYPEFACE_SERIF
Constructor and Description |
---|
HVArrangement(ComponentContainer container,
int orientation)
Creates a new HVArrangement component.
|
Modifier and Type | Method and Description |
---|---|
void |
$add(AndroidViewComponent component)
Adds a component to a container.
|
android.app.Activity |
$context()
Returns the activity context (which can be retrieved from the root
container - aka the form).
|
Form |
$form()
Returns the form that ultimately contains this container.
|
int |
AlignHorizontal()
Returns a number that encodes how contents of the arrangement are aligned horizontally.
|
void |
AlignHorizontal(int alignment)
Sets the horizontal alignment for contents of the arrangement
|
int |
AlignVertical()
Returns a number that encodes how contents of the arrangement are aligned vertically.
|
void |
AlignVertical(int alignment)
Sets the vertical alignment for contents of the arrangement
|
android.view.View |
getView()
Returns the
View that is displayed in the UI. |
void |
setChildHeight(AndroidViewComponent component,
int height) |
void |
setChildWidth(AndroidViewComponent component,
int width) |
Column, Column, CopyHeight, CopyWidth, getDispatchDelegate, Height, Height, Row, Row, Visible, Visible, Width, Width
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDispatchDelegate
public HVArrangement(ComponentContainer container, int orientation)
container
- container, component will be placed inorientation
- one of
ComponentConstants.LAYOUT_ORIENTATION_HORIZONTAL
.
ComponentConstants.LAYOUT_ORIENTATION_VERTICAL
public android.app.Activity $context()
ComponentContainer
$context
in interface ComponentContainer
public Form $form()
ComponentContainer
$form
in interface ComponentContainer
public void $add(AndroidViewComponent component)
ComponentContainer
$add
in interface ComponentContainer
component
- component associated with viewpublic void setChildWidth(AndroidViewComponent component, int width)
setChildWidth
in interface ComponentContainer
public void setChildHeight(AndroidViewComponent component, int height)
setChildHeight
in interface ComponentContainer
public android.view.View getView()
AndroidViewComponent
View
that is displayed in the UI.getView
in class AndroidViewComponent
public int AlignHorizontal()
public void AlignHorizontal(int alignment)
alignment
- public int AlignVertical()
public void AlignVertical(int alignment)
alignment
-