Table of Contents

Class ViewGroup

Namespace
Android.View
Assembly
MASES.Netdroid.dll
public class ViewGroup : View, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IAccessibilityEventSource, IViewParent, IViewManager
Inheritance
JVMBridgeBase
JVMBridgeBase<View>
ViewGroup
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<View>.IsAssignableFrom(IJavaType)
JVMBridgeBase<View>.IsAssignableFrom<T>()
JVMBridgeBase<View>.Execute<T>(params T[])
JVMBridgeBase<View>.DynBridgeClazz
JVMBridgeBase<View>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

ViewGroup()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("ViewGroup class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ViewGroup()

ViewGroup(Context)

public ViewGroup(Context arg0)

Parameters

arg0 Context

Context

ViewGroup(Context, AttributeSet)

public ViewGroup(Context arg0, AttributeSet arg1)

Parameters

arg0 Context

Context

arg1 AttributeSet

AttributeSet

ViewGroup(Context, AttributeSet, int)

public ViewGroup(Context arg0, AttributeSet arg1, int arg2)

Parameters

arg0 Context

Context

arg1 AttributeSet

AttributeSet

arg2 int

int

ViewGroup(Context, AttributeSet, int, int)

public ViewGroup(Context arg0, AttributeSet arg1, int arg2, int arg3)

Parameters

arg0 Context

Context

arg1 AttributeSet

AttributeSet

arg2 int

int

arg3 int

int

ViewGroup(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("ViewGroup class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ViewGroup(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

FOCUS_AFTER_DESCENDANTS

public static int FOCUS_AFTER_DESCENDANTS { get; }

Property Value

int

FOCUS_BEFORE_DESCENDANTS

public static int FOCUS_BEFORE_DESCENDANTS { get; }

Property Value

int

FOCUS_BLOCK_DESCENDANTS

public static int FOCUS_BLOCK_DESCENDANTS { get; }

Property Value

int

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

LAYOUT_MODE_CLIP_BOUNDS

public static int LAYOUT_MODE_CLIP_BOUNDS { get; }

Property Value

int

LAYOUT_MODE_OPTICAL_BOUNDS

public static int LAYOUT_MODE_OPTICAL_BOUNDS { get; }

Property Value

int

PERSISTENT_ALL_CACHES

[Obsolete]
public static int PERSISTENT_ALL_CACHES { get; }

Property Value

int

PERSISTENT_ANIMATION_CACHE

[Obsolete]
public static int PERSISTENT_ANIMATION_CACHE { get; }

Property Value

int

PERSISTENT_NO_CACHE

[Obsolete]
public static int PERSISTENT_NO_CACHE { get; }

Property Value

int

PERSISTENT_SCROLLING_CACHE

[Obsolete]
public static int PERSISTENT_SCROLLING_CACHE { get; }

Property Value

int

Methods

AddStatesFromChildren()

public bool AddStatesFromChildren()

Returns

bool

bool

AddView(View)

public void AddView(View arg0)

Parameters

arg0 View

View

AddView(View, LayoutParams)

public void AddView(View arg0, ViewGroup.LayoutParams arg1)

Parameters

arg0 View

View

arg1 ViewGroup.LayoutParams

ViewGroup.LayoutParams

AddView(View, int)

public void AddView(View arg0, int arg1)

Parameters

arg0 View

View

arg1 int

int

AddView(View, int, LayoutParams)

public void AddView(View arg0, int arg1, ViewGroup.LayoutParams arg2)

Parameters

arg0 View

View

arg1 int

int

arg2 ViewGroup.LayoutParams

ViewGroup.LayoutParams

AddView(View, int, int)

public void AddView(View arg0, int arg1, int arg2)

Parameters

arg0 View

View

arg1 int

int

arg2 int

int

BringChildToFront(View)

public void BringChildToFront(View arg0)

Parameters

arg0 View

View

ChildDrawableStateChanged(View)

public void ChildDrawableStateChanged(View arg0)

Parameters

arg0 View

View

ChildHasTransientStateChanged(View, bool)

public void ChildHasTransientStateChanged(View arg0, bool arg1)

Parameters

arg0 View

View

arg1 bool

bool

ClearChildFocus(View)

public void ClearChildFocus(View arg0)

Parameters

arg0 View

View

ClearDisappearingChildren()

public void ClearDisappearingChildren()

DispatchSetActivated(bool)

public void DispatchSetActivated(bool arg0)

Parameters

arg0 bool

bool

DispatchSetSelected(bool)

public void DispatchSetSelected(bool arg0)

Parameters

arg0 bool

bool

EndViewTransition(View)

public void EndViewTransition(View arg0)

Parameters

arg0 View

View

FindOnBackInvokedDispatcherForChild(View, View)

public OnBackInvokedDispatcher FindOnBackInvokedDispatcherForChild(View arg0, View arg1)

Parameters

arg0 View

View

arg1 View

View

Returns

OnBackInvokedDispatcher

OnBackInvokedDispatcher

FocusSearch(View, int)

public View FocusSearch(View arg0, int arg1)

Parameters

arg0 View

View

arg1 int

int

Returns

View

View

FocusableViewAvailable(View)

public void FocusableViewAvailable(View arg0)

Parameters

arg0 View

View

GenerateLayoutParams(AttributeSet)

public ViewGroup.LayoutParams GenerateLayoutParams(AttributeSet arg0)

Parameters

arg0 AttributeSet

AttributeSet

Returns

ViewGroup.LayoutParams

ViewGroup.LayoutParams

GetChildAt(int)

public View GetChildAt(int arg0)

Parameters

arg0 int

int

Returns

View

View

GetChildCount()

public int GetChildCount()

Returns

int

int

GetChildDrawingOrder(int)

public int GetChildDrawingOrder(int arg0)

Parameters

arg0 int

int

Returns

int

int

GetChildMeasureSpec(int, int, int)

public static int GetChildMeasureSpec(int arg0, int arg1, int arg2)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

Returns

int

int

GetChildVisibleRect(View, Rect, Point)

public bool GetChildVisibleRect(View arg0, Rect arg1, Point arg2)

Parameters

arg0 View

View

arg1 Rect

Rect

arg2 Point

Point

Returns

bool

bool

GetClipChildren()

public bool GetClipChildren()

Returns

bool

bool

GetClipToPadding()

public bool GetClipToPadding()

Returns

bool

bool

GetDescendantFocusability()

public int GetDescendantFocusability()

Returns

int

int

GetFocusedChild()

public View GetFocusedChild()

Returns

View

View

GetLayoutAnimation()

public LayoutAnimationController GetLayoutAnimation()

Returns

LayoutAnimationController

LayoutAnimationController

GetLayoutAnimationListener()

public Animation.AnimationListener GetLayoutAnimationListener()

Returns

Animation.AnimationListener

Animation.AnimationListener

GetLayoutAnimationListenerDirect()

public Animation.AnimationListener GetLayoutAnimationListenerDirect()

Returns

Animation.AnimationListener

Animation.AnimationListener

GetLayoutMode()

public int GetLayoutMode()

Returns

int

int

GetLayoutTransition()

public LayoutTransition GetLayoutTransition()

Returns

LayoutTransition

LayoutTransition

GetNestedScrollAxes()

public int GetNestedScrollAxes()

Returns

int

int

GetPersistentDrawingCache()

[Obsolete]
public int GetPersistentDrawingCache()

Returns

int

int

GetTouchscreenBlocksFocus()

public bool GetTouchscreenBlocksFocus()

Returns

bool

bool

IndexOfChild(View)

public int IndexOfChild(View arg0)

Parameters

arg0 View

View

Returns

int

int

InvalidateChild(View, Rect)

[Obsolete]
public void InvalidateChild(View arg0, Rect arg1)

Parameters

arg0 View

View

arg1 Rect

Rect

InvalidateChildInParent(int[], Rect)

[Obsolete]
public ViewParent InvalidateChildInParent(int[] arg0, Rect arg1)

Parameters

arg0 int[]

int

arg1 Rect

Rect

Returns

ViewParent

ViewParent

IsAlwaysDrawnWithCacheEnabled()

[Obsolete]
public bool IsAlwaysDrawnWithCacheEnabled()

Returns

bool

bool

IsAnimationCacheEnabled()

[Obsolete]
public bool IsAnimationCacheEnabled()

Returns

bool

bool

IsLayoutSuppressed()

public bool IsLayoutSuppressed()

Returns

bool

bool

IsMotionEventSplittingEnabled()

public bool IsMotionEventSplittingEnabled()

Returns

bool

bool

IsTransitionGroup()

public bool IsTransitionGroup()

Returns

bool

bool

NotifySubtreeAccessibilityStateChanged(View, View, int)

public void NotifySubtreeAccessibilityStateChanged(View arg0, View arg1, int arg2)

Parameters

arg0 View

View

arg1 View

View

arg2 int

int

OffsetDescendantRectToMyCoords(View, Rect)

public void OffsetDescendantRectToMyCoords(View arg0, Rect arg1)

Parameters

arg0 View

View

arg1 Rect

Rect

OffsetRectIntoDescendantCoords(View, Rect)

public void OffsetRectIntoDescendantCoords(View arg0, Rect arg1)

Parameters

arg0 View

View

arg1 Rect

Rect

OnDescendantInvalidated(View, View)

public void OnDescendantInvalidated(View arg0, View arg1)

Parameters

arg0 View

View

arg1 View

View

OnInterceptHoverEvent(MotionEvent)

public bool OnInterceptHoverEvent(MotionEvent arg0)

Parameters

arg0 MotionEvent

MotionEvent

Returns

bool

bool

OnInterceptTouchEvent(MotionEvent)

public bool OnInterceptTouchEvent(MotionEvent arg0)

Parameters

arg0 MotionEvent

MotionEvent

Returns

bool

bool

OnNestedFling(View, float, float, bool)

public bool OnNestedFling(View arg0, float arg1, float arg2, bool arg3)

Parameters

arg0 View

View

arg1 float

float

arg2 float

float

arg3 bool

bool

Returns

bool

bool

OnNestedPreFling(View, float, float)

public bool OnNestedPreFling(View arg0, float arg1, float arg2)

Parameters

arg0 View

View

arg1 float

float

arg2 float

float

Returns

bool

bool

OnNestedPrePerformAccessibilityAction(View, int, Bundle)

public bool OnNestedPrePerformAccessibilityAction(View arg0, int arg1, Bundle arg2)

Parameters

arg0 View

View

arg1 int

int

arg2 Bundle

Bundle

Returns

bool

bool

OnNestedPreScroll(View, int, int, int[])

public void OnNestedPreScroll(View arg0, int arg1, int arg2, int[] arg3)

Parameters

arg0 View

View

arg1 int

int

arg2 int

int

arg3 int[]

int

OnNestedScroll(View, int, int, int, int)

public void OnNestedScroll(View arg0, int arg1, int arg2, int arg3, int arg4)

Parameters

arg0 View

View

arg1 int

int

arg2 int

int

arg3 int

int

arg4 int

int

OnNestedScrollAccepted(View, View, int)

public void OnNestedScrollAccepted(View arg0, View arg1, int arg2)

Parameters

arg0 View

View

arg1 View

View

arg2 int

int

OnRequestSendAccessibilityEvent(View, AccessibilityEvent)

public bool OnRequestSendAccessibilityEvent(View arg0, AccessibilityEvent arg1)

Parameters

arg0 View

View

arg1 AccessibilityEvent

AccessibilityEvent

Returns

bool

bool

OnStartNestedScroll(View, View, int)

public bool OnStartNestedScroll(View arg0, View arg1, int arg2)

Parameters

arg0 View

View

arg1 View

View

arg2 int

int

Returns

bool

bool

OnStopNestedScroll(View)

public void OnStopNestedScroll(View arg0)

Parameters

arg0 View

View

OnViewAdded(View)

public void OnViewAdded(View arg0)

Parameters

arg0 View

View

OnViewRemoved(View)

public void OnViewRemoved(View arg0)

Parameters

arg0 View

View

RecomputeViewAttributes(View)

public void RecomputeViewAttributes(View arg0)

Parameters

arg0 View

View

RemoveAllViews()

public void RemoveAllViews()

RemoveAllViewsInLayout()

public void RemoveAllViewsInLayout()

RemoveView(View)

public void RemoveView(View arg0)

Parameters

arg0 View

View

RemoveViewAt(int)

public void RemoveViewAt(int arg0)

Parameters

arg0 int

int

RemoveViewInLayout(View)

public void RemoveViewInLayout(View arg0)

Parameters

arg0 View

View

RemoveViews(int, int)

public void RemoveViews(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

RemoveViewsInLayout(int, int)

public void RemoveViewsInLayout(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

RequestChildFocus(View, View)

public void RequestChildFocus(View arg0, View arg1)

Parameters

arg0 View

View

arg1 View

View

RequestChildRectangleOnScreen(View, Rect, bool)

public bool RequestChildRectangleOnScreen(View arg0, Rect arg1, bool arg2)

Parameters

arg0 View

View

arg1 Rect

Rect

arg2 bool

bool

Returns

bool

bool

RequestDisallowInterceptTouchEvent(bool)

public void RequestDisallowInterceptTouchEvent(bool arg0)

Parameters

arg0 bool

bool

RequestSendAccessibilityEvent(View, AccessibilityEvent)

public bool RequestSendAccessibilityEvent(View arg0, AccessibilityEvent arg1)

Parameters

arg0 View

View

arg1 AccessibilityEvent

AccessibilityEvent

Returns

bool

bool

RequestTransparentRegion(View)

public void RequestTransparentRegion(View arg0)

Parameters

arg0 View

View

ScheduleLayoutAnimation()

public void ScheduleLayoutAnimation()

SetAddStatesFromChildren(bool)

public void SetAddStatesFromChildren(bool arg0)

Parameters

arg0 bool

bool

SetAlwaysDrawnWithCacheEnabled(bool)

[Obsolete]
public void SetAlwaysDrawnWithCacheEnabled(bool arg0)

Parameters

arg0 bool

bool

SetAnimationCacheEnabled(bool)

[Obsolete]
public void SetAnimationCacheEnabled(bool arg0)

Parameters

arg0 bool

bool

SetClipChildren(bool)

public void SetClipChildren(bool arg0)

Parameters

arg0 bool

bool

SetClipToPadding(bool)

public void SetClipToPadding(bool arg0)

Parameters

arg0 bool

bool

SetDescendantFocusability(int)

public void SetDescendantFocusability(int arg0)

Parameters

arg0 int

int

SetLayoutAnimation(LayoutAnimationController)

public void SetLayoutAnimation(LayoutAnimationController arg0)

Parameters

arg0 LayoutAnimationController

LayoutAnimationController

SetLayoutAnimationListener(AnimationListener)

public void SetLayoutAnimationListener(Animation.AnimationListener arg0)

Parameters

arg0 Animation.AnimationListener

Animation.AnimationListener

SetLayoutMode(int)

public void SetLayoutMode(int arg0)

Parameters

arg0 int

int

SetLayoutTransition(LayoutTransition)

public void SetLayoutTransition(LayoutTransition arg0)

Parameters

arg0 LayoutTransition

LayoutTransition

SetMotionEventSplittingEnabled(bool)

public void SetMotionEventSplittingEnabled(bool arg0)

Parameters

arg0 bool

bool

SetOnHierarchyChangeListener(OnHierarchyChangeListener)

public void SetOnHierarchyChangeListener(ViewGroup.OnHierarchyChangeListener arg0)

Parameters

arg0 ViewGroup.OnHierarchyChangeListener

ViewGroup.OnHierarchyChangeListener

SetPersistentDrawingCache(int)

[Obsolete]
public void SetPersistentDrawingCache(int arg0)

Parameters

arg0 int

int

SetTouchscreenBlocksFocus(bool)

public void SetTouchscreenBlocksFocus(bool arg0)

Parameters

arg0 bool

bool

SetTransitionGroup(bool)

public void SetTransitionGroup(bool arg0)

Parameters

arg0 bool

bool

ShouldDelayChildPressedState()

public bool ShouldDelayChildPressedState()

Returns

bool

bool

ShowContextMenuForChild(View)

public bool ShowContextMenuForChild(View arg0)

Parameters

arg0 View

View

Returns

bool

bool

ShowContextMenuForChild(View, float, float)

public bool ShowContextMenuForChild(View arg0, float arg1, float arg2)

Parameters

arg0 View

View

arg1 float

float

arg2 float

float

Returns

bool

bool

StartActionModeForChild(View, Callback)

public ActionMode StartActionModeForChild(View arg0, ActionMode.Callback arg1)

Parameters

arg0 View

View

arg1 ActionMode.Callback

ActionMode.Callback

Returns

ActionMode

ActionMode

StartActionModeForChild(View, Callback, int)

public ActionMode StartActionModeForChild(View arg0, ActionMode.Callback arg1, int arg2)

Parameters

arg0 View

View

arg1 ActionMode.Callback

ActionMode.Callback

arg2 int

int

Returns

ActionMode

ActionMode

StartLayoutAnimation()

public void StartLayoutAnimation()

StartViewTransition(View)

public void StartViewTransition(View arg0)

Parameters

arg0 View

View

SuppressLayout(bool)

public void SuppressLayout(bool arg0)

Parameters

arg0 bool

bool

UpdateViewLayout(View, LayoutParams)

public void UpdateViewLayout(View arg0, ViewGroup.LayoutParams arg1)

Parameters

arg0 View

View

arg1 ViewGroup.LayoutParams

ViewGroup.LayoutParams

Operators

implicit operator ViewManager(ViewGroup)

Converter from ViewGroup to ViewManager

public static implicit operator ViewManager(ViewGroup t)

Parameters

t ViewGroup

Returns

ViewManager

implicit operator ViewParent(ViewGroup)

Converter from ViewGroup to ViewParent

public static implicit operator ViewParent(ViewGroup t)

Parameters

t ViewGroup

Returns

ViewParent