public final class SimpleView extends Object
SimpleView.with(this).findChildren(parent, Button.class);
| Modifier and Type | Method and Description |
|---|---|
ArrayList<View> |
findChildren(int parentID,
Class<? extends View>... viewClasses)
Returns all direct children of this view group that are instances of one of the given classes.
|
<T extends View> |
findChildren(int parentID,
Class<T> viewClass)
Returns all direct children of this view group that are instances of the given View class.
|
ArrayList<View> |
findChildren(int parentID,
Object tag)
Returns all direct children of this view group that use the given "tag".
|
ArrayList<View> |
findChildren(ViewGroup parent,
Class<? extends View>... viewClasses)
Returns all direct children of this view group that are instances of one of the given classes.
|
<T extends View> |
findChildren(ViewGroup parent,
Class<T> viewClass)
Returns all direct children of this view group that are instances of the given View class.
|
ArrayList<View> |
findChildren(ViewGroup parent,
Object tag)
Returns all direct children of this view group that use the given "tag".
|
ArrayList<View> |
findDescendents(int parentID,
Class<? extends View>... viewClasses)
Returns all children, grandchildren, etc.
|
<T extends View> |
findDescendents(int parentID,
Class<T> viewClass)
Returns all children, grandchildren, etc.
|
ArrayList<View> |
findDescendents(int parentID,
Object tag)
Returns all children, grandchildren, etc.
|
ArrayList<View> |
findDescendents(ViewGroup parent,
Class<? extends View>... viewClasses)
Returns all children, grandchildren, etc.
|
<T extends View> |
findDescendents(ViewGroup parent,
Class<T> viewClass)
Returns all children, grandchildren, etc.
|
ArrayList<View> |
findDescendents(ViewGroup parent,
Object tag)
Returns all children, grandchildren, etc.
|
static SimpleView |
with(Activity context)
Returns a singleton SimpleView instance bound to the given context.
|
static SimpleView |
with(Context context)
Returns a singleton SimpleView instance bound to the given context.
|
static SimpleView |
with(View context)
Returns a singleton SimpleView instance bound to the given view's context.
|
public static SimpleView with(Activity context)
public static SimpleView with(Context context)
public static SimpleView with(View context)
public final <T extends View> ArrayList<T> findChildren(@IdRes int parentID, Class<T> viewClass)
public final <T extends View> ArrayList<T> findChildren(ViewGroup parent, Class<T> viewClass)
@SafeVarargs public final ArrayList<View> findChildren(@IdRes int parentID, Class<? extends View>... viewClasses)
@SafeVarargs public final ArrayList<View> findChildren(ViewGroup parent, Class<? extends View>... viewClasses)
public ArrayList<View> findChildren(@IdRes int parentID, Object tag)
public ArrayList<View> findChildren(ViewGroup parent, Object tag)
public final <T extends View> ArrayList<T> findDescendents(@IdRes int parentID, Class<T> viewClass)
public final <T extends View> ArrayList<T> findDescendents(ViewGroup parent, Class<T> viewClass)
@SafeVarargs public final ArrayList<View> findDescendents(@IdRes int parentID, Class<? extends View>... viewClasses)
@SafeVarargs public final ArrayList<View> findDescendents(ViewGroup parent, Class<? extends View>... viewClasses)
public ArrayList<View> findDescendents(@IdRes int parentID, Object tag)