| | |
| | | |
| | | namespace Shared.Phone.Device.CommonForm |
| | | { |
| | | public class RoomView : FrameLayout |
| | | public class RoomView : FrameLayoutBase |
| | | { |
| | | /// <summary> |
| | | /// Room |
| | |
| | | var temperatureIcon = new Button |
| | | { |
| | | X = Application.GetRealWidth(12), |
| | | Width = Application.GetMinRealAverage(58), |
| | | Height = Application.GetMinRealAverage(58), |
| | | Width = this.GetPictrueRealSize(58), |
| | | Height = this.GetPictrueRealSize(58), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Room/Temperature.png" |
| | | }; |
| | |
| | | var humidityIcon = new Button |
| | | { |
| | | X = temperatureText.Right, |
| | | Width = Application.GetMinRealAverage(58), |
| | | Height = Application.GetMinRealAverage(58), |
| | | Width = this.GetPictrueRealSize(58), |
| | | Height = this.GetPictrueRealSize(58), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Room/Humidity.png" |
| | | }; |
| | |
| | | { |
| | | X = roomBackView.Width - Application.GetRealWidth(100 + 20), |
| | | Y = Application.GetRealHeight(20), |
| | | Width = Application.GetMinRealAverage(100), |
| | | Height = Application.GetMinRealAverage(100), |
| | | Width = this.GetPictrueRealSize(100), |
| | | Height = this.GetPictrueRealSize(100), |
| | | UnSelectedImagePath = "Room/List.png", |
| | | }; |
| | | roomBackView.AddChidren(roomListBtn); |