Example #1
0
 public bool OnBackPressed()
 {
     if (pane != null && pane.Opened)
     {
         pane.SetState(InfoPane.State.Closed);
         return(true);
     }
     return(false);
 }
 public void OnGlobalLayout()
 {
     Activity.RunOnUiThread(() => pane.SetState(InfoPane.State.Closed, animated: false));
     View.ViewTreeObserver.RemoveGlobalOnLayoutListener(this);
 }