Package org.robolectric.shadows
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
@Implements(android.widget.AbsListView.class) public class ShadowAbsListView extends ShadowAdapterView
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowView
ShadowView.WindowIdHelper
-
-
Field Summary
-
Fields inherited from class org.robolectric.shadows.ShadowViewGroup
realViewGroup
-
Fields inherited from class org.robolectric.shadows.ShadowView
attributeSet, realView, scrollToCoordinates, viewReflector
-
-
Constructor Summary
Constructors Constructor Description ShadowAbsListView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLastSmoothScrollByDistance()
Robolectric accessor for the last smoothScrollBy distanceint
getLastSmoothScrollByDuration()
Robolectric accessor for the last smoothScrollBy durationAbsListView.OnScrollListener
getOnScrollListener()
Robolectric accessor for the onScrollListenerint
getSmoothScrolledPosition()
Robolectric accessor for the last smoothScrolledPositionprotected void
setOnScrollListener(AbsListView.OnScrollListener l)
protected void
smoothScrollBy(int distance, int duration)
protected void
smoothScrollToPosition(int position)
-
Methods inherited from class org.robolectric.shadows.ShadowAdapterView
clickFirstItemContainingText, findIndexOfItemContainingText, findItemContainingText, getItemSelectedListener, performItemClick, populateItems, selectItemWithText, setOnItemSelectedListener
-
Methods inherited from class org.robolectric.shadows.ShadowViewGroup
addView, dump, getDisallowInterceptTouchEvent, getInterceptedTouchEvent, innerText, onInterceptTouchEvent, removedChild, requestDisallowInterceptTouchEvent
-
Methods inherited from class org.robolectric.shadows.ShadowView
__constructor__, __constructor__, addGlobalPerformClickListener, addGlobalPerformLongClickListener, addOnAttachStateChangeListener, addOnLayoutChangeListener, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, clearAnimation, clearWasInvalidated, clickOn, didRequestLayout, draw, dump, dump, dumpAttribute, dumpAttributes, dumpFirstPart, dumpIndent, getGlobalVisibleRect, getLastTouchEvent, getLayerType, getLocationOnScreen, getOnAttachStateChangeListeners, getOnClickListener, getOnCreateContextMenuListener, getOnLayoutChangeListeners, getOnLongClickListener, getOnSystemUiVisibilityChangeListener, getOnTouchListener, getScrollX, getScrollY, getSourceLayoutResId, getWindowDisplayFrame, getWindowId, getWindowVisibleDisplayFrame, initialAwakenScrollBars, innerText, invalidate, isAttachedToWindow, lastHapticFeedbackPerformed, mapRectFromViewToScreenCoords, 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, setViewFocus, visualize, wasInvalidated
-
-
-
-
Method Detail
-
setOnScrollListener
@Implementation protected void setOnScrollListener(AbsListView.OnScrollListener l)
-
smoothScrollToPosition
@Implementation protected void smoothScrollToPosition(int position)
-
smoothScrollBy
@Implementation protected void smoothScrollBy(int distance, int duration)
-
getOnScrollListener
public AbsListView.OnScrollListener 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
-
-