Class Views


  • public class Views
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TAG  
    • Constructor Summary

      Constructors 
      Constructor Description
      Views()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static android.view.View getTopmostView​(android.content.Context context, android.view.View view)
      Finds the topmost view in the current Activity or current view hierarchy.
      static void removeFromParent​(android.view.View view)  
      • Methods inherited from class java.lang.Object

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

      • TAG

        public static final java.lang.String TAG
    • Constructor Detail

      • Views

        public Views()
    • Method Detail

      • removeFromParent

        public static void removeFromParent​(android.view.View view)
      • getTopmostView

        public static android.view.View getTopmostView​(android.content.Context context,
                                                       android.view.View view)
        Finds the topmost view in the current Activity or current view hierarchy.
        Parameters:
        context - If an Activity Context, used to obtain the Activity's DecorView. This is ignored if it is a non-Activity Context.
        view - A View in the currently displayed view hierarchy. If a null or non-Activity Context is provided, this View's topmost parent is used to determine the rootView.
        Returns:
        The topmost View in the currency Activity or current view hierarchy. Null if no applicable View can be found.