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 ViewGroup
realViewGroup
Fields inherited from class org.robolectric.shadows.ShadowView
attributeSet, realView, scrollToCoordinates, viewReflector
-
Constructor Summary
Constructors Constructor Description ShadowViewGroup()
-
Method Summary
Modifier and Type Method Description protected void
addView(View child, int index, ViewGroup.LayoutParams params)
void
dump(PrintStream out, int indent)
Deprecated.- Please useandroidx.test.espresso.util.HumanReadables#describe(View)
boolean
getDisallowInterceptTouchEvent()
MotionEvent
getInterceptedTouchEvent()
String
innerText()
Returns a string representation of thisViewGroup
by concatenating all of the strings contained in all of the descendants of thisViewGroup
.protected boolean
onInterceptTouchEvent(MotionEvent ev)
protected void
removedChild(View child)
protected void
requestDisallowInterceptTouchEvent(boolean disallowIntercept)
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
-
Field Details
-
Constructor Details
-
ShadowViewGroup
public ShadowViewGroup()
-
-
Method Details
-
addView
-
innerText
Returns a string representation of thisViewGroup
by concatenating all of the strings contained in all of the descendants of thisViewGroup
.- Overrides:
innerText
in classShadowView
- Returns:
- String representation of this view.
-
dump
Deprecated.- Please useandroidx.test.espresso.util.HumanReadables#describe(View)
Dumps the state of thisViewGroup
toSystem.out
.- Overrides:
dump
in classShadowView
- Parameters:
out
- Output stream.indent
- Indentation level.
-
requestDisallowInterceptTouchEvent
-
getDisallowInterceptTouchEvent
public boolean getDisallowInterceptTouchEvent() -
removedChild
-
getInterceptedTouchEvent
-
onInterceptTouchEvent
-