Class ShadowViewGroup

java.lang.Object
org.robolectric.shadows.ShadowView
org.robolectric.shadows.ShadowViewGroup
Direct Known Subclasses:
ShadowAdapterView, ShadowAppWidgetHostView, ShadowLinearLayout, ShadowScrollView, ShadowTabHost, ShadowViewAnimator, ShadowWebView

@Implements(android.view.ViewGroup.class) public class ShadowViewGroup extends ShadowView
  • Field Details

  • Constructor Details

    • ShadowViewGroup

      public ShadowViewGroup()
  • Method Details

    • addView

      @Implementation protected void addView(View child, int index, ViewGroup.LayoutParams params)
    • innerText

      public String innerText()
      Returns a string representation of this ViewGroup by concatenating all of the strings contained in all of the descendants of this ViewGroup.
      Overrides:
      innerText in class ShadowView
      Returns:
      String representation of this view.
    • dump

      @Deprecated public void dump(PrintStream out, int indent)
      Deprecated.
      - Please use androidx.test.espresso.util.HumanReadables#describe(View)
      Dumps the state of this ViewGroup to System.out.
      Overrides:
      dump in class ShadowView
      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)