Exemple #1
0
 /// <summary>
 /// Find all views where the tag equals the given tag (at all levels)
 /// </summary>
 /// <param name="container"></param>
 /// <param name="tag"></param>
 /// <returns></returns>
 public static List <View> FindAllViewsByTag(this ViewGroup container, object tag)
 {
     return(container.FindAllViews(x => x.Tag.Equals(tag)));
 }
Exemple #2
0
 /// <summary>
 /// Find ALL views that match the given type (at all levels)
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="container"></param>
 /// <returns></returns>
 public static List <T> FindAllViewsByType <T>(this ViewGroup container)
 {
     return(container.FindAllViews(x => x is T).Cast <T>().ToList());
 }