Package 

Class ViewGroupUtils

    • Method Summary

      Modifier and Type Method Description
      static void getDescendantRect(ViewGroup parent, View descendant, Rect out) Retrieve the transformed bounding rect of an arbitrary descendant view.This does not need to be a direct child.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDescendantRect

         static void getDescendantRect(ViewGroup parent, View descendant, Rect out)

        Retrieve the transformed bounding rect of an arbitrary descendant view.This does not need to be a direct child.

        Parameters:
        descendant - descendant view to reference
        out - rect to set to the bounds of the descendant view