wxr
2022-05-26 f75a1ba69f5922cab8d2ab43f4447b74bd9b9ea9
HDL_ON/UI/UI0-Public/PublicAssmebly.cs
@@ -243,7 +243,7 @@
        /// <param name="titleId"></param>
        /// <param name="msgId"></param>
        /// <param name="callBackAction"></param>
        public void TipOptionMsg(int titleId, string msg, Action callBackAction)
        public void TipOptionMsg(int titleId, string msg, Action callBackAction,int extraHeight = 0)
        {
            Dialog dialog = new Dialog()
            {
@@ -253,8 +253,8 @@
            FrameLayout contentView = new FrameLayout()
            {
                Gravity = Gravity.Center,
                Width = Application.GetRealWidth(270),
                Height = Application.GetRealHeight(140),
                Width = Application.GetRealWidth(270 ),
                Height = Application.GetRealHeight(140 + extraHeight),
                BackgroundColor = CSS.CSS_Color.MainBackgroundColor,
                BorderColor = 0x00000000,
                BorderWidth = 0,
@@ -277,7 +277,7 @@
            Button btnMsg = new Button()
            {
                Gravity = Gravity.CenterHorizontal,
                Height = Application.GetRealHeight(35),
                Height = Application.GetRealHeight(35 + extraHeight),
                Y = btnTitle.Bottom,
                Width = Application.GetRealHeight(200),
                TextAlignment = TextAlignment.Center,
@@ -290,7 +290,7 @@
            Button btnLine = new Button()
            {
                Y = Application.GetRealHeight(96),
                Y = Application.GetRealHeight(96 + extraHeight),
                Height = Application.GetRealHeight(1),
                Width = Application.GetRealWidth(270 / 2),
                BackgroundColor = CSS.CSS_Color.DividingLineColor,
@@ -422,6 +422,99 @@
            })
            { IsBackground = true }.Start();
        }
        /// <summary>
        /// 可视对讲呼叫弹窗
        /// </summary>
        public void TipLinphoneCall(String msg, ESVideoInfo mESVideoInfo)
        {
            if (UserInfo.Current.alreadyShowCallInDialog)
            {
                return;
            }
            UserInfo.Current.alreadyShowCallInDialog = true;
            Dialog dialog = new Dialog();
            FrameLayout dialogBody = new FrameLayout();
            dialog.AddChidren(dialogBody);
            FrameLayout frame = new FrameLayout()
            {
                Gravity = Gravity.Center,
                Width = Application.GetRealWidth(263),
                Height = Application.GetRealHeight(145),
                BackgroundColor = 0xE6FFFFFF ,
                Radius = (uint)Application.GetRealWidth(12),
            };
            dialog.AddChidren(frame);
            Button btnTipIcon = new Button()
            {
                X = Application.GetRealWidth(26),
                Y = Application.GetRealHeight(20),
                Width = Application.GetRealWidth(32),
                Height = Application.GetRealWidth(32),
                UnSelectedImagePath = "Public/MsgIcon/CallIcon.png" ,
            };
            frame.AddChidren(btnTipIcon);
            Button btnTipMsg = new Button()
            {
                Y = Application.GetRealHeight(5),
                X = Application.GetRealWidth(60),
                Height = Application.GetRealHeight(52),
                Width = Application.GetRealWidth(160),
                TextAlignment = TextAlignment.CenterLeft,
                TextSize = CSS_FontSize.TextFontSize,
                TextColor =  CSS_Color.FirstLevelTitleColor ,
                IsMoreLines = true,
                Text = msg
            };
            frame.AddChidren(btnTipMsg);
            Button btnHangUpIcon = new Button()
            {
                X = Application.GetRealWidth(45),
                Y = Application.GetRealHeight(78),
                Width = Application.GetRealWidth(52),
                Height = Application.GetRealWidth(52),
                UnSelectedImagePath = "Public/MsgIcon/HangUpIcon.png",
            };
            frame.AddChidren(btnHangUpIcon);
            btnHangUpIcon.MouseUpEventHandler = (sender, e) => {
                HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo, true,true);
                //Com.Hdl.Hdllinphonesdk.HDLLinphoneKit.Instance.HangUp();
                UserInfo.Current.alreadyShowCallInDialog = false;
                dialog.Close();
            };
            Button btnAnswerIcon = new Button()
            {
                X = Application.GetRealWidth(167),
                Y = Application.GetRealHeight(78),
                Width = Application.GetRealWidth(52),
                Height = Application.GetRealWidth(52),
                UnSelectedImagePath = "Public/MsgIcon/AnswerIcon.png",
            };
            frame.AddChidren(btnAnswerIcon);
            btnAnswerIcon.MouseUpEventHandler = (sender, e) => {
                HDLLinphone.Current.ShowESVideoMonitor(mESVideoInfo,true);
                UserInfo.Current.alreadyShowCallInDialog = false;
                dialog.Close();
            };
            dialog.Show();
        }
        /// <summary>
        /// 加载提示弹窗
        /// </summary>