JLChen
2020-01-17 c1863db0158fb6c2a1cd96686d514c98c1073937
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;