| | |
| | | TextSize = CSS_FontSize.HeadlineFontSize, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextID = InternationalizationString.Rooms, |
| | | TextID = StringId.Rooms, |
| | | IsSelected = true |
| | | }; |
| | | topView.AddChidren(btnRoomTilte); |
| | |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextID = InternationalizationString.Devices, |
| | | TextID = StringId.Devices, |
| | | }; |
| | | topView.AddChidren(btnFuncTitle); |
| | | |
| | |
| | | /// <summary> |
| | | /// 房间内容显示区域 |
| | | /// </summary> |
| | | roomContentView = new FrameLayout() { |
| | | roomContentView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(52), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | |
| | | /// <summary> |
| | | /// 房间区域,顶部区域 |
| | | /// </summary> |
| | | roomTopView = new FrameLayout() { |
| | | roomTopView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(53), |
| | | }; |
| | | roomContentView.AddChidren(roomTopView); |
| | |
| | | /// </summary> |
| | | btnFoor = new Button() |
| | | { |
| | | X=btnFoorDownIcon.Right, |
| | | Y = Application.GetRealHeight(18), |
| | | Width = Application.GetRealWidth(200), |
| | | X = btnFoorDownIcon.Right, |
| | | Y = Application.GetRealHeight(18), |
| | | Width = Application.GetRealWidth(200), |
| | | Height = Application.GetMinRealAverage(16), |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = UserConfig.Instance.CurFoor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = UserConfig.Instance.CurFoor, |
| | | }; |
| | | roomContentView.AddChidren(btnFoor); |
| | | /// <summary> |
| | | /// 显示方式切换按钮 |
| | | /// </summary> |
| | | btnSwitchDipaly = new Button() { |
| | | btnSwitchDipaly = new Button() |
| | | { |
| | | X = Application.GetRealWidth(335), |
| | | Y = Application.GetRealHeight(12), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "Classification/ToggleDisplayThumbnail.png",//缩略图 |
| | | SelectedImagePath = "Classification/ToggleDisplayLarge.png", |
| | | } ; |
| | | }; |
| | | roomContentView.AddChidren(btnSwitchDipaly); |
| | | #endregion |
| | | |
| | |
| | | /// <summary> |
| | | /// 房间列表区域 |
| | | /// </summary> |
| | | roomListView = new VerticalScrolViewLayout() { |
| | | roomListView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = roomContentView.Bottom, |
| | | Height = Application.GetRealHeight(497+10), |
| | | Height = Application.GetRealHeight(497 + 10), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | bodyView.AddChidren(roomListView); |
| | |
| | | BackgroundImagePath = room.backgroundImage |
| | | }; |
| | | roomListView.AddChidren(roomView); |
| | | |
| | | |
| | | roomViewList.Add(roomView); |
| | | |
| | | |