| | |
| | | X = Application.GetRealWidth(0); |
| | | Y = Application.GetRealHeight(y); |
| | | Width = Application.GetRealWidth(1080); |
| | | Height = Application.GetRealHeight(127); |
| | | Height = Application.GetRealHeight(127 - 2); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | X = Application.GetRealWidth(219), |
| | | Y = Application.GetRealHeight(14), |
| | | Width = Application.GetRealWidth(500), |
| | | Width = Application.GetRealWidth(400), |
| | | Height = Application.GetRealHeight(58), |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = R.MyInternationalizationString.Delay |
| | | TextID = R.MyInternationalizationString.Delay, |
| | | TextSize = 14 |
| | | }; |
| | | AddChidren(NameBtn); |
| | | |
| | |
| | | { |
| | | X = Application.GetRealWidth(219), |
| | | Y = Application.GetRealHeight(72), |
| | | Width = Application.GetRealWidth(200), |
| | | Width = Application.GetRealWidth(400), |
| | | Height = Application.GetRealHeight(49), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2 |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2, |
| | | TextSize = 12 |
| | | }; |
| | | AddChidren(ZoneBtn); |
| | | |
| | | StatuBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(510), |
| | | Width = Application.GetRealWidth(500), |
| | | X = Application.GetRealWidth(650), |
| | | Width = Application.GetRealWidth(350), |
| | | Height = Application.GetRealHeight(100), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2 |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2, |
| | | TextSize = 14 |
| | | }; |
| | | AddChidren(StatuBtn); |
| | | |
| | | line = new Button() |
| | | { |
| | | X = Application.GetRealWidth(222), |
| | | Y = Height - 2, |
| | | Y = Height - 1, |
| | | Width = Application.GetRealWidth(800), |
| | | Height = 2, |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, |
| | | }; |
| | | AddChidren(line); |
| | |
| | | /// <param name="hiden"></param> |
| | | public void HideLine(bool hiden) |
| | | { |
| | | line.Visible = hiden; |
| | | line.Visible = !hiden; |
| | | } |
| | | } |
| | | } |