From c7df85937f73fb347ee0b19e9c052d2d00a6df6c Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 18 九月 2020 13:58:19 +0800 Subject: [PATCH] 新版本 --- ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs b/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs index 17b995f..f333492 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs @@ -22,7 +22,7 @@ var middle = new FrameLayout { Y = view.topRowLayout.Bottom, - Height = Application.GetRealHeight(1920 - 184), + Height = Application.GetRealHeight(Method.H - 184), BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, }; this.AddChidren(middle); @@ -52,6 +52,10 @@ middle.AddChidren(textBtn); string s1 = ""; string s2 = ""; + if (!string.IsNullOrEmpty(Common.Logic.CurrentLogic.LogicCustomPushText)) + { + textBtn.Text = (50 - Common.Logic.CurrentLogic.LogicCustomPushText.Length).ToString(); + } textBox.TextChangeEventHandler += (sender, e) => { var leng = e.Length; @@ -112,7 +116,7 @@ Common.Logic.CurrentLogic.LogicCustomPushText = textBox.Text.Trim(); if (string.IsNullOrEmpty(Common.Logic.CurrentLogic.LogicCustomPushText)) { - var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, + var alert = new UserCenter.ShowMsgControl(ShowMsgType.Normal, Language.StringByID(MyInternationalizationString.tiptextnull), Language.StringByID(MyInternationalizationString.confrim)); alert.Show(); -- Gitblit v1.8.0