From cc0d80c7d86c6d0167269b3408c4b30c24ce84e9 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 23 三月 2020 16:55:37 +0800 Subject: [PATCH] ??????? --- ZigbeeApp/Shared/Phone/Device/Logic/LogicView/Addview.cs | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/Addview.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/Addview.cs index b283963..73b019c 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/Addview.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/Addview.cs @@ -12,9 +12,9 @@ }; public Button lineBtn = new Button { - Y = Application.GetRealHeight(155), + //Y = Application.GetRealHeight(155), Width = Application.GetRealWidth(1080-58-58), - Height = Application.GetRealHeight(5), + Height =1, X = Application.GetRealWidth(58), BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor, }; @@ -34,8 +34,8 @@ public Button iconBtn = new Button { - Width = Application.GetRealWidth(58), - Height = Application.GetRealHeight(58), + Width = Application.GetMinRealAverage(58), + Height = Application.GetMinRealAverage(58), UnSelectedImagePath = "ZigeeLogic/add.png", X = Application.GetRealWidth(1080 - 58-58), Y = Application.GetRealHeight(30 + 36), @@ -44,8 +44,8 @@ public Button switchBtn = new Button { - Width = Application.GetMinRealAverage(104), - Height = Application.GetMinRealAverage(63), + Width = Application.GetRealWidth(104), + Height = Application.GetRealHeight(63), UnSelectedImagePath = "ZigeeLogic/logicclose.png", SelectedImagePath = "ZigeeLogic/logicopen.png", X = Application.GetRealWidth(1080 - 58 - 104), @@ -65,6 +65,7 @@ public FrameLayout AddDeviceView() { + lineBtn.Y = frameLayout.Height - 1; frameLayout.AddChidren(lineBtn); frameLayout.AddChidren(titleBtn); frameLayout.AddChidren(iconBtn); -- Gitblit v1.8.0