Example #1
0
 public virtual void onGlobalLayout()
 {
     if (isShowing())
     {
         android.view.View anchor = mAnchorView;
         if (anchor == null || !anchor.isShown())
         {
             dismiss();
         }
         else
         {
             if (isShowing())
             {
                 // Recompute window size and position
                 mPopup.show();
             }
         }
     }
 }