Class ShadowAbsListView
java.lang.Object
org.robolectric.shadows.ShadowView
org.robolectric.shadows.ShadowViewGroup
org.robolectric.shadows.ShadowAdapterView
org.robolectric.shadows.ShadowAbsListView
- Direct Known Subclasses:
ShadowListView
-
Nested Class Summary
Nested classes/interfaces inherited from class ShadowView
ShadowView.WindowIdHelper -
Field Summary
Fields inherited from class ShadowViewGroup
realViewGroupFields inherited from class ShadowView
attributeSet, realView, scrollToCoordinates, viewReflector -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintRobolectric accessor for the last smoothScrollBy distanceintRobolectric accessor for the last smoothScrollBy durationRobolectric accessor for the onScrollListenerintRobolectric accessor for the last smoothScrolledPositionprotected voidsmoothScrollBy(int distance, int duration) protected voidsmoothScrollToPosition(int position) Methods inherited from class ShadowAdapterView
clickFirstItemContainingText, findIndexOfItemContainingText, findItemContainingText, getItemSelectedListener, performItemClick, populateItems, selectItemWithText, setOnItemSelectedListenerMethods inherited from class ShadowViewGroup
addView, dump, getDisallowInterceptTouchEvent, getInterceptedTouchEvent, innerText, onInterceptTouchEvent, removedChild, requestDisallowInterceptTouchEventMethods inherited from class ShadowView
__constructor__, addGlobalPerformClickListener, addGlobalPerformLongClickListener, addOnAttachStateChangeListener, addOnLayoutChangeListener, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, checkThread, clearAnimation, clearAnimations, clearWasInvalidated, clickOn, didRequestLayout, draw, dump, dump, dumpAttribute, dumpAttributes, dumpFirstPart, dumpIndent, getAndClear, getAnimations, getGlobalVisibleRect, getLastTouchEvent, getLayerType, getOnAttachStateChangeListeners, getOnClickListener, getOnCreateContextMenuListener, getOnLayoutChangeListeners, getOnLongClickListener, getOnSystemUiVisibilityChangeListener, getOnTouchListener, getScrollX, getScrollY, getSourceLayoutResId, getWindowDisplayFrame, getWindowId, getWindowVisibleDisplayFrame, innerText, invalidate, isAttachedToWindow, lastHapticFeedbackPerformed, onLayout, onLayoutWasCalled, onTouchEvent, performClick, performHapticFeedback, performLongClick, post, postDelayed, postInvalidateDelayed, removeCallbacks, removeGlobalPerformClickListener, removeGlobalPerformLongClickListener, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestLayout, reset, scrollBy, scrollTo, setAnimation, setDidRequestLayout, setGlobalVisibleRect, setLayerType, setMyParent, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setScrollX, setScrollY, setUseRealDrawTraversals, setUseRealViewAnimations, setViewFocus, useRealGraphics, visualize, wasInvalidated
-
Constructor Details
-
ShadowAbsListView
public ShadowAbsListView()
-
-
Method Details
-
smoothScrollToPosition
-
smoothScrollBy
-
getOnScrollListener
Robolectric accessor for the onScrollListener- Returns:
- AbsListView.OnScrollListener
-
getSmoothScrolledPosition
public int getSmoothScrolledPosition()Robolectric accessor for the last smoothScrolledPosition- Returns:
- int position
-
getLastSmoothScrollByDistance
public int getLastSmoothScrollByDistance()Robolectric accessor for the last smoothScrollBy distance- Returns:
- int distance
-
getLastSmoothScrollByDuration
public int getLastSmoothScrollByDuration()Robolectric accessor for the last smoothScrollBy duration- Returns:
- int duration
-