Search Results for

    Show / Hide Table of Contents

    Class ViewGroupUtil

    Provides helper methods for work with ViewGroup instances.

    Inheritance
    Object
    ViewGroupUtil
    Inherited Members
    Object.clone()
    Object.equals(Object)
    Object.finalize()
    Object.getClass()
    Object.hashCode()
    Object.notify()
    Object.notifyAll()
    Object.toString()
    Object.wait()
    Object.wait(long)
    Object.wait(long,int)
    Namespace:
    Assembly: .dll
    Syntax
    public final class ViewGroupUtil

    Constructors

    ViewGroupUtil()

    Declaration
    public ViewGroupUtil()

    Methods

    safeAddChild(ViewGroup viewGroup, Object child)

    Adds a child if the child is not null and if the viewGroup does not contain the child.

    Declaration
    public static void safeAddChild(ViewGroup viewGroup, Object child)
    Parameters
    Type Name Description
    android.view.ViewGroup viewGroup

    The ViewGroup instance where child should be added.

    Object child

    The child to be added into the ViewGroup.

    safeAddChild(ViewGroup viewGroup, Object child, int index)

    Adds a child at specified index if the child is not null and if the viewGroup does not contain the child.

    Declaration
    public static void safeAddChild(ViewGroup viewGroup, Object child, int index)
    Parameters
    Type Name Description
    android.view.ViewGroup viewGroup

    The ViewGroup instance where child should be added.

    Object child

    The child to be added into the ViewGroup.

    int index

    The position at which to add the child.

    safeAddChild(Object viewGroup, Object child)

    Adds a child if it is not null and the viewGroup is not null.

    Declaration
    public static void safeAddChild(Object viewGroup, Object child)
    Parameters
    Type Name Description
    Object viewGroup

    The ViewGroup instance where child should be added.

    Object child

    The child to be added into the ViewGroup.

    safeRemoveChild(ViewGroup viewGroup, Object child)

    Remove a child if the child is not null and if viewGroup contains the child

    Declaration
    public static void safeRemoveChild(ViewGroup viewGroup, Object child)
    Parameters
    Type Name Description
    android.view.ViewGroup viewGroup

    The ViewGroup instance from where child should be removed.

    Object child

    The child to be removed from the ViewGroup.

    safeRemoveChild(Object viewGroup, Object child)

    Removes a child if it is not null and the viewGroup is not null.

    Declaration
    public static void safeRemoveChild(Object viewGroup, Object child)
    Parameters
    Type Name Description
    Object viewGroup

    The ViewGroup instance from where child should be removed.

    Object child

    The child to be removed from the ViewGroup.

    Back to top © 2011-2025 SciChart. All rights reserved. | sitemap.xml