| | |
| | | var tempValuesView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(21), |
| | | Y = Application.GetRealWidth(17), |
| | | Y = Application.GetRealWidth(22), |
| | | Width = Application.GetRealWidth(130), |
| | | Height = Application.GetRealWidth(132), |
| | | }; |
| | |
| | | var humiValuesView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(130+21), |
| | | Y = Application.GetRealWidth(17), |
| | | Y = Application.GetRealWidth(22), |
| | | Width = Application.GetRealWidth(130), |
| | | Height = Application.GetRealWidth(132), |
| | | }; |
| | |
| | | Text = function.GetAttrState(AcstSub_AttrEnum.room_humidity.ToString(),"---"), |
| | | TextAlignment = TextAlignment.TopRight, |
| | | }; |
| | | |
| | | #if __IOS__ |
| | | btnHumiValues.Width = btnTempValues.GetTextWidth() + Application.GetRealWidth(10); |
| | | #else |
| | | btnHumiValues.Width = btnTempValues.GetTextWidth(); |
| | | #endif |
| | | btnHumiValues.Gravity = Gravity.CenterHorizontal; |
| | | humiValuesView.AddChidren(btnHumiValues); |
| | | var btnHumiValuesUint = new Button() |
| | |
| | | contentView.AddChidren(btnSetTempValues); |
| | | #if __IOS__ |
| | | bodyView.btnSetTempValues.Width = bodyView.btnSetTempValues.GetTextWidth() + Application.GetRealWidth(10); |
| | | #else |
| | | bodyView.btnSetTempValues.Width = bodyView.btnSetTempValues.GetTextWidth() + Application.GetRealWidth(5); |
| | | #endif |
| | | |
| | | |