| | |
| | | |
| | | public void LoadPage() |
| | | { |
| | | MainPage.BaseTopButton.BackgroundColor = 0xFFF7F7F7; |
| | | //MainPage.BaseTopButton.BackgroundColor = 0xFFF7F7F7; |
| | | MainPage.CurPageIndex = 1; |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | bodyView.BackgroundColor = CSS_Color.TopViewColor; |
| | | #region top |
| | | FrameLayout topView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(64), |
| | | Y = Application.GetRealHeight(10), |
| | | Height = Application.GetRealHeight(74), |
| | | BackgroundColor = CSS_Color.TopViewColor, |
| | | }; |
| | | bodyView.AddChidren(topView); |
| | |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextID = StringId.Rooms, |
| | | IsSelected = true |
| | | IsSelected = true, |
| | | IsBold = true, |
| | | }; |
| | | topView.AddChidren(btnRoomTilte); |
| | | |
| | |
| | | |
| | | contentPageView = new PageLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(667 - 64 - 49 + 30), |
| | | Y = Application.GetRealHeight(74), |
| | | Height = Application.GetRealHeight(667 - 64 - 49 + 30 - 10), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | IsShowPoint = false |
| | | }; |
| | |
| | | //2020-12-03 修改图片加载方法 |
| | | ImageUtlis.Current.LoadLocalOrNetworkImages(room.backgroundImage, roomViewbg); |
| | | |
| | | var btnRoomNameBg = new Button { |
| | | Height = Application.GetRealHeight(45), |
| | | BackgroundColor = 0x44000000, |
| | | }; |
| | | roomView.AddChidren(btnRoomNameBg); |
| | | btnRoomNameBg.SetCornerWithSameRadius((uint)Application.GetRealWidth(12), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); |
| | | |
| | | var btnFloorAndRoomName = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |