Package org.robolectric.shadows
Class ShadowAdapterView<T extends Adapter>
java.lang.Object
org.robolectric.shadows.ShadowView
org.robolectric.shadows.ShadowViewGroup
org.robolectric.shadows.ShadowAdapterView<T>
- Direct Known Subclasses:
ShadowAbsListView
,ShadowAbsSpinner
@Implements(android.widget.AdapterView.class) public class ShadowAdapterView<T extends Adapter> extends ShadowViewGroup
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowView
ShadowView.WindowIdHelper
-
Field Summary
Fields inherited from class org.robolectric.shadows.ShadowView
attributeSet, realView, scrollToCoordinates, viewReflector
-
Constructor Summary
Constructors Constructor Description ShadowAdapterView()
-
Method Summary
Modifier and Type Method Description void
clickFirstItemContainingText(String targetText)
int
findIndexOfItemContainingText(String targetText)
View
findItemContainingText(String targetText)
AdapterView.OnItemSelectedListener
getItemSelectedListener()
boolean
performItemClick(int position)
void
populateItems()
void
selectItemWithText(String s)
protected void
setOnItemSelectedListener(AdapterView.OnItemSelectedListener itemSelectedListener)
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, clearAnimations, clearWasInvalidated, clickOn, didRequestLayout, draw, dump, dump, dumpAttribute, dumpAttributes, dumpFirstPart, dumpIndent, getAnimations, 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
-
Constructor Details
-
ShadowAdapterView
public ShadowAdapterView()
-
-
Method Details
-
setOnItemSelectedListener
@Implementation protected void setOnItemSelectedListener(AdapterView.OnItemSelectedListener itemSelectedListener) -
getItemSelectedListener
-
performItemClick
public boolean performItemClick(int position) -
findIndexOfItemContainingText
-
findItemContainingText
-
clickFirstItemContainingText
-
populateItems
public void populateItems() -
selectItemWithText
-