public class ScrollLayoutWidget extends LinearLayoutWidget
| Modifier and Type | Class and Description |
|---|---|
static interface |
ScrollLayoutWidget.OnScrollChangedListener |
LayoutWidget.Factory, LayoutWidget.OnBackingColorChangedListener, LayoutWidget.OnDragEnabledChangedListenerAbstractParentWidget.OnWidgetListChangedListenerMapWidget2.OnWidgetSizeChangedListenerMapWidget.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, setLayoutParamsaddOnBackingColorChangedListener, addOnDragEnabledChangedListener, fadeAlpha, getAlpha, getBackingColor, getDragEnabled, getNinePatchBG, isFadingAlpha, onBackingColorChanged, onDragEnabledChanged, removeOnBackingColorChangedListener, removeOnDragEnabledChangedListener, setAlpha, setBackingColor, setDragEnabled, setNinePatchBGaddChildWidget, 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, setZOrderaddOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, testHitaddOnClickListener, 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, visitPropertyInfospublic 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)
LinearLayoutWidgetsetOrientation in class LinearLayoutWidgetorientation - the value either HORIZONTAL or VERTICALpublic boolean setSize(float width,
float height)
MapWidgetpublic void onLongPress()
onLongPress in class MapWidgetpublic void onUnpress(android.view.MotionEvent event)
public MapWidget seekHit(android.view.MotionEvent event, float x, float y)
seekHit in class LinearLayoutWidget