From 587c36e27131f2d028fcabc13b296a8de7470034 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期三, 08 一月 2020 08:59:19 +0800
Subject: [PATCH] 2019.1.8

---
 ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs |   51 ++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 36 insertions(+), 15 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs b/ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs
index 598f6d8..a834293 100644
--- a/ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs
+++ b/ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs
@@ -520,18 +520,27 @@
             };
             itemView.AddChidren(indoorTemperatureBtn);
 
-            mArcScaleSeekBar = new ArcScaleSeekBar
+            var mArcScaleSeekBarFL = new FrameLayout
             {
                 Y = Application.GetRealHeight(412),
-                Width = Application.GetRealWidth(671),
-                Height = Application.GetRealHeight(671),
+                Width = Application.GetMinRealAverage(671),
+                Height = Application.GetMinRealAverage(671),
+                Gravity = Gravity.CenterHorizontal
+            };
+            itemView.AddChidren(mArcScaleSeekBarFL);
+
+            mArcScaleSeekBar = new ArcScaleSeekBar
+            {
+                Width = Application.GetMinRealAverage(671),
+                Height = Application.GetMinRealAverage(671),
                 Gravity = Gravity.CenterHorizontal,
                 MinValue = ACControlBase.Temperature_Low,
                 MaxValue = ACControlBase.Temperature_High,
                 Progress = ACControlBase.GetCurrentModeTemperature(ac),
-                IsClickable = ACControlBase.IsOpen(ac)
+                IsClickable = ACControlBase.IsOpen(ac),
+                ProgressBarUnitSring = string.Empty
             };
-            itemView.AddChidren(mArcScaleSeekBar);
+            mArcScaleSeekBarFL.AddChidren(mArcScaleSeekBar);
             if(ACControlBase.IsOpen(ac))
             {
                 mArcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCArcScaleSeekBarStartColor, ZigbeeColor.Current.GXCArcScaleSeekBarEndColor);
@@ -561,35 +570,47 @@
 
             currentModeBtn = new Button()
             {
-                Y = Application.GetRealHeight(565),
-                Height = Application.GetRealHeight(80),
+                Y = Application.GetMinRealAverage(187),
+                Height = Application.GetRealHeight(50),
                 Width = Application.GetRealWidth(200),
                 TextColor = ZigbeeColor.Current.GXCTextBlackColor,
                 Gravity = Gravity.CenterHorizontal,
                 Text = ACControlBase.GetModeNameByModeId(ac.currentSystemMode),
-                TextSize=12
+                TextSize = 12
             };
-            itemView.AddChidren(currentModeBtn);
+            mArcScaleSeekBarFL.AddChidren(currentModeBtn);
 
             reduceTemperatureBtn = new Button()
             {
-                X = Application.GetRealWidth(268),
-                Y = Application.GetRealHeight(650),
+                X = Application.GetMinRealAverage(132),
+                Y = Application.GetMinRealAverage(268),
                 Width = Application.GetMinRealAverage(80),
                 Height = Application.GetMinRealAverage(80),
                 UnSelectedImagePath = "AC/Reduce.png"
             };
-            itemView.AddChidren(reduceTemperatureBtn);
+            mArcScaleSeekBarFL.AddChidren(reduceTemperatureBtn);
 
             addTemperatureBtn = new Button()
             {
-                X = Application.GetRealWidth(610),
-                Y = Application.GetRealHeight(650),
+                X = Application.GetMinRealAverage(452),
+                Y = Application.GetMinRealAverage(268),
                 Width = Application.GetMinRealAverage(80),
                 Height = Application.GetMinRealAverage(80),
                 UnSelectedImagePath = "AC/Add.png"
             };
-            itemView.AddChidren(addTemperatureBtn);
+            mArcScaleSeekBarFL.AddChidren(addTemperatureBtn);
+
+            var uintBtn = new Button
+            {
+                Y = Application.GetMinRealAverage(369),
+                Height = Application.GetRealHeight(60),
+                Width = Application.GetRealWidth(100),
+                TextColor = ZigbeeColor.Current.GXCTextBlackColor,
+                Gravity = Gravity.CenterHorizontal,
+                Text = "鈩�",
+                TextSize = 18
+            };
+            mArcScaleSeekBarFL.AddChidren(uintBtn);
 
             FanSwingModeBtn = new Button()
             {

--
Gitblit v1.8.0