added in version 22.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1

ViewGroupCompat

public final class ViewGroupCompat
extends Object

java.lang.Object
   ↳ android.support.v4.view.ViewGroupCompat


Helper for accessing features in ViewGroup.

Summary

Constants

int LAYOUT_MODE_CLIP_BOUNDS

This constant is a layoutMode.

int LAYOUT_MODE_OPTICAL_BOUNDS

This constant is a layoutMode.

Public methods

static int getLayoutMode(ViewGroup group)

Returns the basis of alignment during layout operations on this ViewGroup: either LAYOUT_MODE_CLIP_BOUNDS or LAYOUT_MODE_OPTICAL_BOUNDS.

static int getNestedScrollAxes(ViewGroup group)

Return the current axes of nested scrolling for this ViewGroup.

static boolean isTransitionGroup(ViewGroup group)

Returns true if this ViewGroup should be considered as a single entity for removal when executing an Activity transition.

static boolean onRequestSendAccessibilityEvent(ViewGroup group, View child, AccessibilityEvent event)

This method was deprecated in API level 26.1.0. Use onRequestSendAccessibilityEvent(View, AccessibilityEvent) directly.

static void setLayoutMode(ViewGroup group, int mode)

Sets the basis of alignment during the layout of this ViewGroup.

static void setMotionEventSplittingEnabled(ViewGroup group, boolean split)

This method was deprecated in API level 26.1.0. Use setMotionEventSplittingEnabled(boolean) directly.

static void setTransitionGroup(ViewGroup group, boolean isTransitionGroup)

Changes whether or not this ViewGroup should be treated as a single entity during Activity Transitions.

Inherited methods

From class java.lang.Object

Constants

LAYOUT_MODE_CLIP_BOUNDS

added in version 22.1.0
int LAYOUT_MODE_CLIP_BOUNDS

This constant is a layoutMode. Clip bounds are the raw values of left, top, right and bottom.

Constant Value: 0 (0x00000000)

LAYOUT_MODE_OPTICAL_BOUNDS

added in version 22.1.0
int LAYOUT_MODE_OPTICAL_BOUNDS

This constant is a layoutMode. Optical bounds describe where a widget appears to be. They sit insid