private CustomDialogProfileSharingData OpenMiniProfileDialog() { var cdd = new CustomDialogProfileSharingData(Activity); var lp = new WindowManagerLayoutParams(); lp.CopyFrom(cdd.Window.Attributes); lp.Width = ViewGroup.LayoutParams.MatchParent; lp.Height = ViewGroup.LayoutParams.MatchParent; cdd.Show(); cdd.Window.Attributes = lp; return(cdd); }
private CustomDialogProfileSharingData OpenMiniProfileDialog() { var cdd = new CustomDialogProfileSharingData(Activity); var windowManager = Context.GetSystemService(Context.WindowService).JavaCast <IWindowManager>(); var lp = new WindowManagerLayoutParams(); lp.CopyFrom(cdd.Window.Attributes); lp.Width = ViewGroup.LayoutParams.MatchParent; lp.Height = ViewGroup.LayoutParams.MatchParent; cdd.Show(); cdd.Window.Attributes = lp; return(cdd); }