From 3dcbd186c42c598c0c08d1cd37034cf2baa09e54 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 30 十二月 2019 15:47:51 +0800 Subject: [PATCH] 合并了代码 --- ZigbeeApp/Shared/Phone/Device/Room/RoomHumiditySetting.cs | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Room/RoomHumiditySetting.cs b/ZigbeeApp/Shared/Phone/Device/Room/RoomHumiditySetting.cs index c4d180f..82a4850 100755 --- a/ZigbeeApp/Shared/Phone/Device/Room/RoomHumiditySetting.cs +++ b/ZigbeeApp/Shared/Phone/Device/Room/RoomHumiditySetting.cs @@ -91,7 +91,7 @@ }; bodyFrameLayout.AddChidren(verticalScrolView); - var confirm = new Device.CommonForm.CompleteButton(1700, 700, 127); + var confirm = new Device.CommonForm.CompleteButton(1700, 900, 127); confirm.SetTitle(R.MyInternationalizationString.Save); AddChidren(confirm); confirm.MouseUpEventHandler += (sender, e) => @@ -107,13 +107,24 @@ for (int i = 0; i < deviceList.Count; i++) { + var fl = new FrameLayout + { + Height = Application.GetRealHeight(127 + 20), + BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor + }; + verticalScrolView.AddChidren(fl); + var device = deviceList[i]; - var devRow = new DeviceInfoWithZoneRow(20 + i * (127 + 20)); - verticalScrolView.AddChidren(devRow); + var devRow = new DeviceInfoWithZoneRow(20); + fl.AddChidren(devRow); devRow.Init(); devRow.SetIcon(device.IconPath); devRow.SetName(Common.LocalDevice.Current.GetDeviceEpointName(device)); devRow.SetZone(Common.Room.CurrentRoom.GetRoomNameByDevice(device)); + if (i == deviceList.Count - 1) + { + devRow.HideLine(true); + } if (tempDevice != null && tempDevice == device) { -- Gitblit v1.8.0