Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }