| | |
| | | |
| | | //白色背景控件 |
| | | var frameWhiteBack = new FrameLayout(); |
| | | frameWhiteBack.Y = Application.GetRealHeight(115); |
| | | |
| | | frameWhiteBack.Width = Application.GetRealWidth(this.backFrameWidth); |
| | | frameWhiteBack.Height = Application.GetRealHeight(this.backFrameHeight); |
| | | frameWhiteBack.BackgroundColor = UserCenterColor.Current.White; |
| | | frameWhiteBack.Radius = (uint)Application.GetRealHeight(17); |
| | | frameWhiteBack.Gravity = Gravity.CenterHorizontal; |
| | | bodyFrameLayout.AddChidren(frameWhiteBack); |
| | | bodyFrameLayout.AddChidren(frameWhiteBack);
|
| | |
|
| | | if (this.device.Type == DeviceType.TemperatureSensor) |
| | | { |
| | | //获取设备类型 |
| | | var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device }); |
| | | //空气质量传感器 ,卡片比较大 |
| | | if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.AirQualitySensor) |
| | | { |
| | | frameWhiteBack.Y = Application.GetRealHeight(98); |
| | | } |
| | | } |
| | | |
| | | //设备名称 |
| | | this.btnDeviceName = new NormalViewControl(100, 60, true); |