| | |
| | | { |
| | | |
| | | Width = Application.GetRealWidth(450), |
| | | Height = Application.GetRealHeight(780), |
| | | Height = Application.GetRealWidth(780), |
| | | X = Application.GetRealWidth(1080 - 468 - 35), |
| | | Y = Application.GetRealHeight(184), |
| | | BackgroundImagePath = "Item/SelectFloor_Right.png", |
| | |
| | | |
| | | var btnfoolricon = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(81), |
| | | Height = Application.GetMinRealAverage(81), |
| | | Width = Application.GetRealWidth(81), |
| | | Height = Application.GetRealWidth(81), |
| | | UnSelectedImagePath = "Floor/Floor.png", |
| | | Gravity = Gravity.CenterVertical, |
| | | }; |
| | |
| | | |
| | | var backgroundColor = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(150), |
| | | Height = Application.GetMinRealAverage(173), |
| | | Width = Application.GetRealWidth(150), |
| | | Height = Application.GetRealWidth(173), |
| | | UnSelectedImagePath = "ZigeeLogic/deviceunselectedbackgroundcolor.png", |
| | | SelectedImagePath = "ZigeeLogic/deviceselectedbackgroundcolor.png", |
| | | }; |
| | |
| | | |
| | | var devicetypeicon = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(84), |
| | | Height = Application.GetMinRealAverage(84), |
| | | Width = Application.GetRealWidth(84), |
| | | Height = Application.GetRealWidth(84), |
| | | X = Application.GetRealWidth(35), |
| | | Y = Application.GetRealHeight(29), |
| | | UnSelectedImagePath =Method.GetDeviceTypeIcon(devicetype), |
| | |
| | | middle.AddChidren(deviceFramelayout); |
| | | var bjFramelayout = new FrameLayout |
| | | { |
| | | Width = Application.GetMinRealAverage(112), |
| | | Height = Application.GetMinRealAverage(112), |
| | | Width = Application.GetRealWidth(112), |
| | | Height = Application.GetRealWidth(112), |
| | | X = Application.GetRealWidth(58), |
| | | Y = Application.GetRealHeight(30 + 9), |
| | | Radius = (uint)Application.GetMinRealAverage(56), |
| | | Radius = (uint)Application.GetRealWidth(56), |
| | | BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, |
| | | }; |
| | | deviceFramelayout.AddChidren(bjFramelayout); |
| | | var deviceIconBtn = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(82), |
| | | Height = Application.GetMinRealAverage(82), |
| | | Width = Application.GetRealWidth(82), |
| | | Height = Application.GetRealWidth(82), |
| | | Gravity = Gravity.Center, |
| | | }; |
| | | bjFramelayout.AddChidren(deviceIconBtn); |
| | |
| | | deviceFramelayout.AddChidren(deviceRow); |
| | | var devicename = new Button |
| | | { |
| | | Text = HdlDeviceCommonLogic.Current.GetDeviceEpointName(common), |
| | | Text = LocalDevice.Current.GetDeviceEpointName(common), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | SelectedTextColor = ZigbeeColor.Current.LogicAddColor, |