From c1863db0158fb6c2a1cd96686d514c98c1073937 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 17 一月 2020 11:58:18 +0800
Subject: [PATCH] 2020-01-17

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/AddSchedule.cs |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/AddSchedule.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/AddSchedule.cs
index 91abf57..44d93c1 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/AddSchedule.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/AddSchedule.cs
@@ -7,6 +7,7 @@
     public class AddSchedule : FrameLayout
     {
         VerticalScrolViewLayout bodyView;
+        FrameLayout devicesListView;
         Action<Timer> action;
         List<Common> roomDeviceList = new List<Common>();
         List<string> roomNameList = new List<string> ();
@@ -459,7 +460,7 @@
             };
             devicesView.AddChidren (btnDeviceTitle);
 
-            var devicesListView = new FrameLayout () {
+           devicesListView = new FrameLayout () {
                 Height = Application.GetRealHeight (130 * roomDeviceList.Count),
             };
             bodyView.AddChidren (devicesListView);
@@ -681,6 +682,8 @@
 
         }
 
+        
+
         /// <summary>
         //(1)Success 鍒欒皟鐢ㄦ鎺ュ彛鎴愬姛
         //(2)NoRecord 浣忓畢鏈粦瀹氱綉鍏筹紒
@@ -716,6 +719,7 @@
         private static void InitDeviceListView (List<Common> roomDeviceList, List<DeviceInfo> timerControlDeviceList, FrameLayout devicesListView)
         {
             devicesListView.RemoveAll ();
+            
             System.Threading.Tasks.Task.Run (() => {
                 try {
                     int iniIndex = 0;
@@ -726,6 +730,15 @@
                             i++;
                         }
                     }
+
+#if __IOS__
+
+
+#else
+                  //鍒锋柊devicesListView 楂樺害
+                    devicesListView.Height = Application.GetRealHeight (130 * roomDeviceList.Count);
+#endif
+
                     foreach (var deviceCommon2 in roomDeviceList) {
                         if (deviceCommon2 == null)
                             continue;

--
Gitblit v1.8.0