| | |
| | | Height = Application.GetMinRealAverage(207), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, |
| | | Radius = (uint)Application.GetMinRealAverage(207) |
| | | Radius = (uint)Application.GetMinRealAverage(207/2) |
| | | }; |
| | | bodyFrameLayout.AddChidren(deviceBG); |
| | | |
| | |
| | | Height = Application.GetMinRealAverage(184), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | BackgroundColor = ZigbeeColor.Current.GXCSelectedBackgroundColor, |
| | | Radius = (uint)Application.GetMinRealAverage(184) |
| | | Radius = (uint)Application.GetMinRealAverage(184/2) |
| | | }; |
| | | bodyFrameLayout.AddChidren(deviceBG2); |
| | | |
| | |
| | | }; |
| | | bodyFrameLayout.AddChidren(deviceIMG); |
| | | |
| | | var info = Common.LocalDevice.Current.GetNotHdlMyDeviceEnumInfo(new List<CommonDevice> { device.CommonDevice }); |
| | | |
| | | var deviceTypeName = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(360), |
| | | Width = Application.GetRealWidth(900), |
| | | Height = Application.GetRealHeight(80), |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | Text = DeviceUI.GetDeviceTypeName(device.CommonDevice.Type), |
| | | Gravity = Gravity.CenterHorizontal |
| | | TextID = info.BeloneTextId, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextSize = 15 |
| | | }; |
| | | bodyFrameLayout.AddChidren(deviceTypeName); |
| | | |
| | |
| | | { |
| | | curRoom = rooms[index1][index2]; |
| | | zoneRow.SetTitle($"{Config.Instance.Home.GetFloorNameById(floorIds[index1])} , {rooms[index1][index2].Name}"); |
| | | }, 0, 0, Language.StringByID(R.MyInternationalizationString.BelongFloor), |
| | | }, 0, 0, Language.StringByID(R.MyInternationalizationString.BelongZone), |
| | | Language.StringByID(R.MyInternationalizationString.Confrim), |
| | | Language.StringByID(R.MyInternationalizationString.Cancel)); |
| | | } |
| | |
| | | { |
| | | curRoom = rs[index1]; |
| | | zoneRow.SetTitle(rs[index1].Name); |
| | | }, 0,Language.StringByID(R.MyInternationalizationString.BelongFloor), |
| | | }, 0,Language.StringByID(R.MyInternationalizationString.BelongZone), |
| | | Language.StringByID(R.MyInternationalizationString.Confrim), |
| | | Language.StringByID(R.MyInternationalizationString.Cancel)); |
| | | } |