From 9c16d3614d9b88c637f967518a329f239fcd3aaf Mon Sep 17 00:00:00 2001 From: lss <316519258@qq.com> Date: 星期五, 12 六月 2020 09:22:04 +0800 Subject: [PATCH] 2020.06.12 --- ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs b/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs index 17b995f..39bcd16 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; -- Gitblit v1.8.0