| | |
| | | frameWhiteBack.Gravity = Gravity.CenterHorizontal;
|
| | | 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);
|
| | | btnDeviceName.Y = Application.GetRealHeight(46);
|