Android Utililty Methods View Children Get

List of utility methods to do View Children Get

Description

The list of methods to do View Children Get are organized into topic(s).

Method

CollectiongetAllChildren(View parentView, boolean recursive)
get All Children
Collection<View> allViews = new ArrayList<View>();
if (parentView instanceof ViewGroup) {
    for (int i = 0; i < ((ViewGroup) parentView).getChildCount(); ++i) {
        View child = ((ViewGroup) parentView).getChildAt(i);
        allViews.add(child);
        if (recursive)
            allViews.addAll(getAllChildren(child, recursive));
return allViews;