From 6144d4267f92db9be96a7003f4352732bfe9bb3b Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期四, 19 三月 2020 17:49:31 +0800 Subject: [PATCH] 2020-03-19-1 --- ZigbeeApp/Shared/Phone/Device/Category/Category.cs | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Category/Category.cs b/ZigbeeApp/Shared/Phone/Device/Category/Category.cs index 8c0803a..e4a7c12 100644 --- a/ZigbeeApp/Shared/Phone/Device/Category/Category.cs +++ b/ZigbeeApp/Shared/Phone/Device/Category/Category.cs @@ -17,7 +17,6 @@ /// </summary> public class Category : FrameLayout, ZigBee.Common.IStatus { - #region 鈼� 鍙橀噺____________________________ /// <summary> /// The instance. @@ -2113,8 +2112,8 @@ //鎺ㄨ崘妯℃澘寮�鍏虫帶浠� var recommendswitchBtn = 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 = bjFrameLayout.Width - Application.GetRealWidth(104 + 58), @@ -2345,6 +2344,7 @@ Width = Application.GetRealWidth(1080 - 58), LineColor = ZigbeeColor.Current.LogicBackgroundColor, BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, + SubViewWidth = Application.GetRealWidth(184),//鏀瑰彉缂栬緫鎺т欢瀹藉害澶氬皯锛� }; refresview.AddChidren(logicRowlayout); @@ -2367,12 +2367,13 @@ var logicswitchBtn = 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 = logicRowlayout.Width - Application.GetRealWidth(104 + 58), Y = Application.GetRealHeight(58 + 30 + 9 + 30), + }; logicRowlayout.AddChidren(logicswitchBtn); @@ -2517,8 +2518,8 @@ var iconindex = iconIndexlist[i]; var typebjBtn = new FrameLayout { - Width = Application.GetRealWidth(82), - Height = Application.GetRealHeight(82), + Width = Application.GetMinRealAverage(82), + Height = Application.GetMinRealAverage(82), X = Application.GetRealWidth(58) + Application.GetRealWidth(12 + (12 + 82 + 45 + 12) * i), Y = Application.GetRealHeight(58 + 30 + 30), Radius = (uint)Application.GetRealHeight(41), @@ -2528,8 +2529,8 @@ var typeIconBtn = new Button { - Width = Application.GetRealWidth(58), - Height = Application.GetRealHeight(58), + Width = Application.GetMinRealAverage(58), + Height = Application.GetMinRealAverage(58), Gravity = Gravity.Center, }; -- Gitblit v1.8.0