HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-04-15 23532fa8ad34c89b6d24b01eaef6475fd0aad898
ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs
@@ -62,14 +62,16 @@
            {
                Width = Application.GetRealWidth(717),
                Height = Application.GetRealHeight(478),
                Radius = (uint)Application.GetRealHeight(17)
                Radius = (uint)Application.GetRealHeight(17),
                Tag = "R"
            };
            AddChidren(roomBackView);
            var roomImg = new ImageView()
            {
                ImagePath = room.BackgroundImageType == 0 ? room.BackgroundImage : System.IO.Path.Combine(Config.Instance.FullPath, room.BackgroundImage),
                Radius = (uint)Application.GetRealHeight(17)
                Radius = (uint)Application.GetRealHeight(17),
                Tag = "R"
            };
            roomBackView.AddChidren(roomImg);
@@ -77,8 +79,8 @@
            var frameBackGroudTemp = new FrameLayout();
            frameBackGroudTemp.Width = roomBackView.Width;
            frameBackGroudTemp.Height = roomBackView.Height;
            frameBackGroudTemp.Radius = roomBackView.Radius;
            frameBackGroudTemp.BackgroundColor = 0x12000000;
            frameBackGroudTemp.Radius = (uint)Application.GetRealHeight(17);
            frameBackGroudTemp.BackgroundColor = UserCenterColor.Current.PictrueZhezhaoColor;
            roomBackView.AddChidren(frameBackGroudTemp);
            roomNameBackground = new FrameLayout
@@ -135,8 +137,9 @@
                TextSize = 14,
                TextAlignment = TextAlignment.CenterLeft
            };
            if (string.IsNullOrEmpty(room.TemperatrueDevice) == false)
            if (LocalDevice.Current.GetDevice(room.TemperatrueDevice) != null)
            {
                //这个设备要存在本地才行
                temperatureText.Text = room.Temperatrue == 0 ? "0.0℃" : room.Temperatrue.ToString() + "℃";
            }
            roomTemperatureBackground.AddChidren(temperatureText);
@@ -160,8 +163,9 @@
                TextSize = 14,
                TextAlignment = TextAlignment.CenterLeft
            };
            if (string.IsNullOrEmpty(room.HumidityDevice) == false)
            if (LocalDevice.Current.GetDevice(room.HumidityDevice) != null)
            {
                //这个设备要存在本地才行
                humidityText.Text = room.Humidity == 0 ? "0.0%" : room.Humidity.ToString() + "%";
            }
            roomTemperatureBackground.AddChidren(humidityText);