ViewGroup

Class of android.view · ViewGroup.java · Android's reference

public abstract class ViewGroup extends View implements ViewParent, ViewManager

ViewGroup ← View

A view of child views: their layout params, measure, layout, drawing and the dispatch of input to them.

Nested types

Extended in the framework by

Page 1 2 3 4

Members

public static final int FOCUS_BEFORE_DESCENDANTS = 0x20000 source
public static final int FOCUS_AFTER_DESCENDANTS = 0x40000 source
public static final int FOCUS_BLOCK_DESCENDANTS = 0x60000 source
public static final int PERSISTENT_NO_CACHE = 0 source
public static final int LAYOUT_MODE_CLIP_BOUNDS = 0 source
public static final int LAYOUT_MODE_OPTICAL_BOUNDS = 1 source
public ViewGroup(Context context) source
public ViewGroup(Context context, AttributeSet attrs) source
public ViewGroup(Context context, AttributeSet attrs, int defStyleAttr) source
public ViewGroup(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) source

Children

public int getChildCount() source
public View getChildAt(int index) source
public int indexOfChild(View child) source
public void setOnHierarchyChangeListener(OnHierarchyChangeListener listener) source
public void addView(View child) source
public void addView(View child, int index) source
public void addView(View child, int width, int height) source
public void addView(View child, LayoutParams params) source
public void addView(View child, int index, LayoutParams params) source
protected boolean addViewInLayout(View child, int index, LayoutParams params) source
protected boolean addViewInLayout(View child, int index, LayoutParams params, boolean preventRequestLayout) source
protected void onViewAdded(View child) empty body source
protected void onViewRemoved(View child) empty body source
protected boolean checkLayoutParams(LayoutParams p) source
protected LayoutParams generateDefaultLayoutParams() source
protected LayoutParams generateLayoutParams(LayoutParams p) source
public LayoutParams generateLayoutParams(AttributeSet attrs) source
public void updateViewLayout(View view, LayoutParams params) source
public void removeView(View view) source
public void removeViewInLayout(View view) source
public void removeViewsInLayout(int start, int count) source
public void removeViewAt(int index) source
public void removeViews(int start, int count) source

Page 1 2 3 4


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.