| | |
| | | BackgroundColor = CSS.CSS_Color.view, |
| | | }; |
| | | /// <summary> |
| | | /// (条件或者目标)图标 |
| | | /// 图标 |
| | | /// </summary> |
| | | public Button btnIcon = new Button |
| | | { |
| | |
| | | |
| | | }; |
| | | /// <summary> |
| | | /// (条件或者目标)文本描述 |
| | | /// 文本描述 |
| | | /// </summary> |
| | | public Button btnText = new Button |
| | | { |
| | |
| | | //Y=Application.GetRealHeight(12), |
| | | X = Application.GetRealWidth(52), |
| | | }; |
| | | |
| | | |
| | | /// <summary> |
| | | /// (条件或者目标)图标 |
| | | /// 设备名称 |
| | | /// </summary> |
| | | public Button btnDeviceName = new Button |
| | | { |
| | | Width = Application.GetRealWidth(250), |
| | | Height = Application.GetRealHeight(20), |
| | | TextSize = TextSize.text14, |
| | | TextColor = CSS.CSS_Color.textColor, |
| | | Y =Application.GetRealHeight(6), |
| | | X = Application.GetRealWidth(52), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Visible =false, |
| | | |
| | | }; |
| | | /// <summary> |
| | | /// 房间名(即是=区域名称) |
| | | /// </summary> |
| | | public Button btnRoomName= new Button |
| | | { |
| | | Width = Application.GetRealWidth(250), |
| | | Height = Application.GetRealHeight(14), |
| | | TextSize = TextSize.text10, |
| | | TextColor = CSS.CSS_Color.textCancelColor, |
| | | Y=Application.GetRealHeight(30), |
| | | X = Application.GetRealWidth(52), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Visible = false, |
| | | }; |
| | | /// <summary> |
| | | /// 图标 |
| | | /// </summary> |
| | | public Button btnNextIcon = new Button |
| | | { |
| | |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | /// <summary> |
| | | /// 条件或者目标主控件的方法 |
| | | /// View的方法 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public FrameLayout FLayoutView() |
| | |
| | | btnNextIcon.Gravity = Gravity.CenterVertical; |
| | | frameLayout.AddChidren(btnIcon); |
| | | frameLayout.AddChidren(btnText); |
| | | frameLayout.AddChidren(btnDeviceName); |
| | | frameLayout.AddChidren(btnRoomName); |
| | | frameLayout.AddChidren(btnNextIcon); |
| | | btnLine.Y = frameLayout.Height - 1; |
| | | frameLayout.AddChidren(btnLine); |