public class ScrollLayoutWidget extends LinearLayoutWidget
Modifier and Type | Class and Description |
---|---|
static interface |
ScrollLayoutWidget.OnScrollChangedListener |
LayoutWidget.Factory, LayoutWidget.OnBackingColorChangedListener, LayoutWidget.OnDragEnabledChangedListener
AbstractParentWidget.OnWidgetListChangedListener
MapWidget2.OnWidgetSizeChangedListener
MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
_childrenHeight, _childrenWidth, _gravity, _orientation, _paramHeight, _paramWidth, HORIZONTAL, MATCH_PARENT, VERTICAL, WRAP_CONTENT
Constructor and Description |
---|
ScrollLayoutWidget() |
ScrollLayoutWidget(int paramWidth,
int paramHeight,
int orientation) |
Modifier and Type | Method and Description |
---|---|
void |
addOnScrollListener(ScrollLayoutWidget.OnScrollChangedListener l) |
float |
getScroll() |
void |
onClick(android.view.MotionEvent event) |
void |
onLongPress() |
boolean |
onMove(android.view.MotionEvent event) |
void |
onPress(android.view.MotionEvent event) |
void |
onUnpress(android.view.MotionEvent event) |
void |
removeOnScrollListener(ScrollLayoutWidget.OnScrollChangedListener l) |
MapWidget |
seekHit(android.view.MotionEvent event,
float x,
float y) |
void |
setOrientation(int orientation)
Sets the orientation of the linear layout widget to be either VERTICAL or HORIZONTAL.
|
void |
setScroll(float scroll) |
boolean |
setSize(float width,
float height)
Set the size of the widget
|
getChildrenSize, getGravity, getLayoutParams, getOrCreateLayout, getOrientation, onVisibleChanged, onWidgetAdded, onWidgetRemoved, onWidgetSizeChanged, recalcSize, setGravity, setLayoutParams
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, onHover, onPointChanged, onVisibleChanged, registerForwardedListener, removeOnClickListener, removeOnHoverListener, removeOnLongPressListener, removeOnMoveListener, removeOnPressListener, removeOnUnpressListener, removeOnVisibleChangedListener, removeOnWidgetPointChangedListener, setHeight, setMargins, setName, setPadding, setPadding, setParent, setPoint, setTouchable, setVisible, setWidth, unregisterForwardedListener, visitPropertyInfos
public ScrollLayoutWidget()
public ScrollLayoutWidget(int paramWidth, int paramHeight, int orientation)
public void setScroll(float scroll)
public float getScroll()
public void addOnScrollListener(ScrollLayoutWidget.OnScrollChangedListener l)
public void removeOnScrollListener(ScrollLayoutWidget.OnScrollChangedListener l)
public void setOrientation(int orientation)
LinearLayoutWidget
setOrientation
in class LinearLayoutWidget
orientation
- the value either HORIZONTAL or VERTICALpublic boolean setSize(float width, float height)
MapWidget
public void onLongPress()
onLongPress
in class MapWidget
public void onUnpress(android.view.MotionEvent event)
public MapWidget seekHit(android.view.MotionEvent event, float x, float y)
seekHit
in class LinearLayoutWidget