Package org.robolectric.shadows
Class ShadowViewGroup
- java.lang.Object
-
- org.robolectric.shadows.ShadowView
-
- org.robolectric.shadows.ShadowViewGroup
-
- Direct Known Subclasses:
ShadowAdapterView,ShadowAppWidgetHostView,ShadowLinearLayout,ShadowRelativeLayout,ShadowScrollView,ShadowTabHost,ShadowViewAnimator,ShadowWebView
@Implements(android.view.ViewGroup.class) public class ShadowViewGroup extends ShadowView
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowView
ShadowView.WindowIdHelper
-
-
Field Summary
Fields Modifier and Type Field Description protected ViewGrouprealViewGroup-
Fields inherited from class org.robolectric.shadows.ShadowView
attributeSet, realView, scrollToCoordinates, viewReflector
-
-
Constructor Summary
Constructors Constructor Description ShadowViewGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddView(View child, int index, ViewGroup.LayoutParams params)voiddump(PrintStream out, int indent)Deprecated.- Please useandroidx.test.espresso.util.HumanReadables#describe(View)booleangetDisallowInterceptTouchEvent()MotionEventgetInterceptedTouchEvent()StringinnerText()Returns a string representation of thisViewGroupby concatenating all of the strings contained in all of the descendants of thisViewGroup.protected booleanonInterceptTouchEvent(MotionEvent ev)protected voidremovedChild(View child)protected voidrequestDisallowInterceptTouchEvent(boolean disallowIntercept)-
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
-
-
-
-
Field Detail
-
realViewGroup
@RealObject protected ViewGroup realViewGroup
-
-
Method Detail
-
addView
@Implementation protected void addView(View child, int index, ViewGroup.LayoutParams params)
-
innerText
public String innerText()
Returns a string representation of thisViewGroupby concatenating all of the strings contained in all of the descendants of thisViewGroup.- Overrides:
innerTextin classShadowView- Returns:
- String representation of this view.
-
dump
@Deprecated public void dump(PrintStream out, int indent)
Deprecated.- Please useandroidx.test.espresso.util.HumanReadables#describe(View)Dumps the state of thisViewGrouptoSystem.out.- Overrides:
dumpin classShadowView- Parameters:
out- Output stream.indent- Indentation level.
-
requestDisallowInterceptTouchEvent
@Implementation protected void requestDisallowInterceptTouchEvent(boolean disallowIntercept)
-
getDisallowInterceptTouchEvent
public boolean getDisallowInterceptTouchEvent()
-
removedChild
protected void removedChild(View child)
-
getInterceptedTouchEvent
public MotionEvent getInterceptedTouchEvent()
-
onInterceptTouchEvent
@Implementation protected boolean onInterceptTouchEvent(MotionEvent ev)
-
-