From 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期二, 21 七月 2020 09:46:53 +0800
Subject: [PATCH] 请合并最新多功能面板代码

---
 ZigbeeApp/Shared/Phone/Device/Logic/LogicView/Addview.cs |   78 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 78 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/Addview.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/Addview.cs
new file mode 100755
index 0000000..48970d2
--- /dev/null
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/Addview.cs
@@ -0,0 +1,78 @@
+锘縰sing System;
+using Shared.Common;
+using Shared.R;
+namespace Shared.Phone.Device.Logic.LogicView
+{
+    public class Addview
+    {
+        public FrameLayout frameLayout = new FrameLayout
+        {
+            Height = Application.GetRealHeight(160),
+            BackgroundColor=ZigbeeColor.Current.LogicBlankBackgroundColor,
+        };
+        public Button lineBtn = new Button
+        {
+            //Y = Application.GetRealHeight(155),
+            Width = Application.GetRealWidth(1080-58-58),
+            Height =1,
+            X = Application.GetRealWidth(58),
+            BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor,
+        };
+        public Button titleBtn = new Button
+        {
+            Y = Application.GetRealHeight(30 + 35),
+            X = Application.GetRealWidth(58),
+            Text = Language.StringByID(MyInternationalizationString.ifcondition),
+            TextAlignment = TextAlignment.CenterLeft,
+            TextColor = ZigbeeColor.Current.LogicTextBlackColor,
+            Width = Application.GetRealWidth(300),
+            Height = Application.GetRealHeight(60),
+            TextSize = 15,
+            Gravity = Gravity.CenterVertical,
+        };
+
+        public Button iconBtn = new Button
+        {
+
+            Width = Application.GetMinRealAverage(58),
+            Height = Application.GetMinRealAverage(58),
+            UnSelectedImagePath = "ZigeeLogic/add.png",
+            X = Application.GetRealWidth(1080 - 58-58),
+            Y = Application.GetRealHeight(30 + 36),
+            Visible=false,
+        };
+
+        public Button switchBtn = new Button
+        {
+            Width = Application.GetMinRealAverage(104),
+            Height = Application.GetMinRealAverage(63),
+            UnSelectedImagePath = "ZigeeLogic/logicclose.png",
+            SelectedImagePath = "ZigeeLogic/logicopen.png",
+            X = Application.GetRealWidth(1080 - 58 - 104),
+            Y = Application.GetRealHeight(30 + 33),
+            Visible = false,
+        };
+        /// <summary>
+        /// 鍔犲ぇ鐐瑰嚮鐑敭
+        /// </summary>
+        public Button clickBtn = new Button
+        {
+
+            Width = Application.GetRealWidth(58 +58+40),
+            Height = Application.GetRealHeight(160),
+            X = Application.GetRealWidth(1080 - 58 - 58-40),
+        };
+
+        public FrameLayout AddDeviceView()
+        {
+            lineBtn.Y = frameLayout.Height - 1;
+            frameLayout.AddChidren(lineBtn);
+            frameLayout.AddChidren(titleBtn);
+            frameLayout.AddChidren(iconBtn);
+            frameLayout.AddChidren(switchBtn);
+            frameLayout.AddChidren(clickBtn);
+            return frameLayout;
+        }
+
+    }
+}

--
Gitblit v1.8.0