@Implements(value=android.widget.AdapterView.class) public class ShadowAdapterView<T extends android.widget.Adapter> extends ShadowViewGroup
AdapterView.ShadowViewGroup.ShadowLayoutParams, ShadowViewGroup.ShadowMarginLayoutParamsrealViewGroupANDROID_NS, attributeSet, realView, scrollToCoordinates| Constructor and Description |
|---|
ShadowAdapterView() |
| Modifier and Type | Method and Description |
|---|---|
static void |
automaticallyUpdateRowViews(boolean shouldUpdate)
Deprecated.
Not supported as of Robolectric 2.0-alpha-3.
|
boolean |
checkValidity()
Deprecated.
No longer supported.
|
void |
clickFirstItemContainingText(String targetText) |
int |
findIndexOfItemContainingText(String targetText) |
android.view.View |
findItemContainingText(String targetText) |
android.widget.AdapterView.OnItemSelectedListener |
getItemSelectedListener() |
boolean |
performItemClick(int position) |
void |
populateItems() |
void |
selectItemWithText(String s) |
void |
setOnItemSelectedListener(android.widget.AdapterView.OnItemSelectedListener itemSelectedListener) |
addView, dump, getDisallowInterceptTouchEvent, getInterceptedTouchEvent, getLayoutAnimation, getLayoutAnimationListener, innerText, onInterceptTouchEvent, removedChild, requestDisallowInterceptTouchEvent, setLayoutAnimation, setLayoutAnimationListener__constructor__, buildDrawable, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, clearWasInvalidated, clickOn, computeOpaqueFlags, didRequestLayout, draw, dump, dump, dumpAttribute, dumpAttributes, dumpFirstPart, dumpIndent, getBackgroundColor, getBackgroundResourceId, getDrawingCache, getGlobalVisibleRect, getLastTouchEvent, getOnClickListener, getOnCreateContextMenuListener, getOnLongClickListener, getOnSystemUiVisibilityChangeListener, getOnTouchListener, getQualifiers, getScrollX, getScrollY, innerText, invalidate, isAttachedToWindow, lastHapticFeedbackPerformed, onLayout, onLayoutWasCalled, onTouchEvent, performHapticFeedback, post, postDelayed, postInvalidateDelayed, removeCallbacks, requestLayout, scrollTo, setAnimation, setDidRequestLayout, setGlobalVisibleRect, setMyParent, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setScrollX, setScrollY, setViewFocus, visualize, wasInvalidated@Implementation public void setOnItemSelectedListener(android.widget.AdapterView.OnItemSelectedListener itemSelectedListener)
public android.widget.AdapterView.OnItemSelectedListener getItemSelectedListener()
public boolean checkValidity()
onChanged() or onInvalidated() having been called.RuntimeException - if the items have been changed without notificationpublic static void automaticallyUpdateRowViews(boolean shouldUpdate)
shouldUpdate - false to turn off the feature, true to turn it back onpublic boolean performItemClick(int position)
public int findIndexOfItemContainingText(String targetText)
public android.view.View findItemContainingText(String targetText)
public void clickFirstItemContainingText(String targetText)
public void populateItems()
public void selectItemWithText(String s)
Copyright © 2016. All rights reserved.