@Deprecated public class LinearLayoutWidget extends LayoutWidget implements MapWidget.OnVisibleChangedListener, MapWidget2.OnWidgetSizeChangedListener
LayoutWidget.Factory, LayoutWidget.OnBackingColorChangedListener, LayoutWidget.OnDragEnabledChangedListener
AbstractParentWidget.OnWidgetListChangedListener
MapWidget2.OnWidgetSizeChangedListener
MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
Modifier and Type | Field and Description |
---|---|
protected float |
_childrenHeight
Deprecated.
|
protected float |
_childrenWidth
Deprecated.
|
protected int |
_gravity
Deprecated.
|
protected int |
_orientation
Deprecated.
|
protected int |
_paramHeight
Deprecated.
|
protected int |
_paramWidth
Deprecated.
|
static int |
HORIZONTAL
Deprecated.
|
static int |
MATCH_PARENT
Deprecated.
|
static int |
VERTICAL
Deprecated.
|
static int |
WRAP_CONTENT
Deprecated.
|
Constructor and Description |
---|
LinearLayoutWidget()
Deprecated.
|
LinearLayoutWidget(int paramWidth,
int paramHeight,
int orientation)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
float[] |
getChildrenSize()
Deprecated.
Get the size in pixels taken up by this layout's children
|
int |
getGravity()
Deprecated.
|
int[] |
getLayoutParams()
Deprecated.
|
LinearLayoutWidget |
getOrCreateLayout(java.lang.String path)
Deprecated.
Get or create a new layout widget in this hierarchy
|
int |
getOrientation()
Deprecated.
Returns the orientation of the linear layout widget.
|
void |
onVisibleChanged(MapWidget widget)
Deprecated.
|
protected void |
onWidgetAdded(int index,
MapWidget w)
Deprecated.
|
protected void |
onWidgetRemoved(int index,
MapWidget w)
Deprecated.
|
void |
onWidgetSizeChanged(MapWidget2 widget)
Deprecated.
|
protected void |
recalcSize()
Deprecated.
|
MapWidget |
seekHit(android.view.MotionEvent event,
float x,
float y)
Deprecated.
|
void |
setGravity(int gravity)
Deprecated.
Sets the gravity of the linear layout widget, see Gravity.CENTER_HORIZONTAL, etc.
|
void |
setLayoutParams(int pWidth,
int pHeight)
Deprecated.
Set the layout params of this widget
Can be WRAP_CONTENT, MATCH_PARENT, or a pixel size value
|
void |
setOrientation(int orientation)
Deprecated.
Sets the orientation of the linear layout widget to be either VERTICAL or HORIZONTAL.
|
addOnBackingColorChangedListener, addOnDragEnabledChangedListener, fadeAlpha, getAlpha, getBackingColor, getDragEnabled, getNinePatchBG, isFadingAlpha, onBackingColorChanged, onDragEnabledChanged, removeOnBackingColorChangedListener, removeOnDragEnabledChangedListener, setAlpha, setBackingColor, setDragEnabled, setNinePatchBG
addChildWidget, addChildWidgetAt, addOnWidgetListChangedListener, addWidget, addWidgetAt, findWidget, getChildAt, getChildCount, getChildren, getChildWidgetAt, getChildWidgetCount, getChildWidgets, getParent, getSortedChildrenWidgets, getSortedWidgets, onActionBarToggled, onChildWidgetCanBeAdded, onWidgetCanBeAdded, orientationChanged, removeChildWidget, removeChildWidgetAt, removeOnWidgetListChangedListener, removeWidget, removeWidgetAt, seekHit, seekWidgetHit, setZOrder
addOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, testHit
addOnClickListener, addOnHoverListener, addOnLongPressListener, addOnMoveListener, addOnPressListener, addOnUnpressListener, addOnVisibleChangedListener, addOnWidgetPointChangedListener, equals, getAbsolutePath, getAbsolutePosition, getAbsoluteWidgetPosition, getHeight, getMargins, getName, getPadding, getPointX, getPointY, getPropertyValue, getSize, getWidth, getZOrder, hashCode, isEnterable, isTouchable, isVisible, onClick, onClick, onHover, onLongPress, onMove, onMove, onPointChanged, onPress, onPress, onUnpress, onUnpress, onVisibleChanged, registerForwardedListener, removeOnClickListener, removeOnHoverListener, removeOnLongPressListener, removeOnMoveListener, removeOnPressListener, removeOnUnpressListener, removeOnVisibleChangedListener, removeOnWidgetPointChangedListener, setHeight, setMargins, setName, setPadding, setPadding, setParent, setPoint, setSize, setTouchable, setVisible, setWidth, unregisterForwardedListener, visitPropertyInfos
public static final int MATCH_PARENT
public static final int WRAP_CONTENT
public static final int HORIZONTAL
public static final int VERTICAL
protected int _orientation
protected int _gravity
protected int _paramWidth
protected int _paramHeight
protected float _childrenWidth
protected float _childrenHeight
public LinearLayoutWidget()
public LinearLayoutWidget(int paramWidth, int paramHeight, int orientation)
public void setOrientation(int orientation)
orientation
- the value either HORIZONTAL or VERTICALpublic int getOrientation()
public void setGravity(int gravity)
gravity
- public int getGravity()
public void setLayoutParams(int pWidth, int pHeight)
pWidth
- Width parameterpHeight
- Height parameterpublic int[] getLayoutParams()
public float[] getChildrenSize()
protected void onWidgetAdded(int index, MapWidget w)
onWidgetAdded
in class AbstractParentWidget
protected void onWidgetRemoved(int index, MapWidget w)
onWidgetRemoved
in class AbstractParentWidget
public void onVisibleChanged(MapWidget widget)
onVisibleChanged
in interface MapWidget.OnVisibleChangedListener
public void onWidgetSizeChanged(MapWidget2 widget)
onWidgetSizeChanged
in interface MapWidget2.OnWidgetSizeChangedListener
public MapWidget seekHit(android.view.MotionEvent event, float x, float y)
seekHit
in class MapWidget2
public LinearLayoutWidget getOrCreateLayout(java.lang.String path)
path
- Layout names separated by slashes
where the last letter specifies the orientation (V or H)
i.e. WidgetLayoutV/WidgetLayoutH = horizontal within verticalprotected void recalcSize()