List of utility methods to do View Children Get
Collection | getAllChildren(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; |