From d6fb0646531172f23648441c224cdcccd721b894 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期一, 14 十二月 2020 09:59:01 +0800 Subject: [PATCH] 请合并代码,完成晾衣架最终功能。 --- ZigbeeApp/Shared/Phone/Device/Logic/LogicView/LightView.cs | 81 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 81 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/LightView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/LightView.cs new file mode 100755 index 0000000..5d95c6d --- /dev/null +++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/LightView.cs @@ -0,0 +1,81 @@ +锘� +using System; +using System.Collections.Generic; +using Shared.Common; +using Shared.R; +using ZigBee.Device; + +namespace Shared.Phone.Device.Logic.LogicView +{ + public class LightView + { + + public FrameLayout frameLayout = new FrameLayout + { + Height = Application.GetRealHeight(150), + }; + /// <summary> + /// 鍔熻兘鏍囬 + /// </summary> + public Button titleBtn = new Button + { + X = Application.GetRealWidth(58), + Y = Application.GetRealHeight(34 + 20), + Height = Application.GetRealHeight(58), + Width = Application.GetRealWidth(400), + //TextID = MyInternationalizationString.logicathomegarrison, + TextAlignment = TextAlignment.CenterLeft, + TextColor = ZigbeeColor.Current.LogicBtnSelectedColor, + TextSize = 14, + + }; + /// <summary> + /// 涓嬩竴绾ц彍鍗曞浘鏍� + /// </summary> + public Button nextBtn = new Button + { + Width = Application.GetMinRealAverage(103), + Height = Application.GetMinRealAverage(103), + UnSelectedImagePath = "ZigeeLogic/back1.png", + X = Application.GetRealWidth(920), + Y = Application.GetRealHeight(11 + 20), + }; + + /// <summary> + /// 鐘舵�佹樉绀烘枃鏈� + /// </summary> + public Button seletecdTextBtn = new Button + { + X = Application.GetRealWidth(300), + Y = Application.GetRealHeight(34+20), + Height = Application.GetRealHeight(58), + Width = Application.GetRealWidth(1080-300 - 126), + TextAlignment = TextAlignment.CenterRight, + TextColor = ZigbeeColor.Current.LogicBtnSelectedColor, + TextSize = 14, + }; + + public Button lineBtn = new Button + { + Width = Application.GetRealWidth(964), + Height = 1, + X = Application.GetRealWidth(54), + BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor, + }; + public Button clickviewBtn = new Button + { + Height = Application.GetRealHeight(150), + }; + public FrameLayout Show() + { + frameLayout.AddChidren(titleBtn); + frameLayout.AddChidren(seletecdTextBtn); + frameLayout.AddChidren(nextBtn); + lineBtn.Y = frameLayout.Height - 1; + frameLayout.AddChidren(lineBtn); + frameLayout.AddChidren(clickviewBtn); + return frameLayout; + } + + } +} -- Gitblit v1.8.0