| | |
| | | |
| | | public void LoadPage() |
| | | { |
| | | //MainPage.BaseTopButton.BackgroundColor = 0xFFF7F7F7; |
| | | MainPage.CurPageIndex = 2; |
| | | bodyView.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | bodyView.BackgroundColor = CSS_Color.TopViewColor; |
| | | #region top |
| | | topView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(10), |
| | | Height = Application.GetRealHeight(64), |
| | | BackgroundColor = CSS_Color.TopViewColor, |
| | | }; |
| | | bodyView.AddChidren(topView); |
| | | |
| | | |
| | | //不是A网关或者是成员 只允许添加场景隐藏自动化 |
| | | var HideAutoPage = DB_ResidenceData.Instance.CurrentRegion.isOtherShare; |
| | |
| | | |
| | | 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.BackgroundColor, |
| | | IsShowPoint = false |
| | | }; |
| | |
| | | { |
| | | Y = Application.GetRealHeight(53), |
| | | Height = Application.GetRealHeight(667 - 64 - 49 - 52 + 0), |
| | | |
| | | }; |
| | | scenePageView.AddChidren(sceneFunctionView); |
| | | LoadSceneFunctionControlZone(null); |
| | |
| | | Y = btnNoCollectionBg.Bottom, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextID = StringId.TipNoScene, |
| | | }; |
| | | view.AddChidren(btnNoCollectionTip); |
| | |
| | | index++; |
| | | }); |
| | | } |
| | | Application.RunOnMainThread(() => { |
| | | sceneFunctionView.AddChidren(new Button { Height = Application.GetRealHeight(30) }); |
| | | }); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | |
| | | { |
| | | MainPage.Log("homepage erorr : " + ex.Message); |
| | | } |
| | | sceneFunctionView.AddChidren(new Button { Height = Application.GetRealHeight(30) }); |
| | | |
| | | } |
| | | |
| | |
| | | }; |
| | | var btnSceneGg = new ImageView() |
| | | { |
| | | Radius = (uint)Application.GetRealWidth(16), |
| | | Radius = (uint)Application.GetRealWidth(12), |
| | | BorderColor = 0x00000000, |
| | | BorderWidth = 1, |
| | | }; |
| | |
| | | Button btnCoverd = new Button() |
| | | { |
| | | //UnSelectedImagePath = "Collection/SceneCovered.png", |
| | | Radius = (uint)Application.GetRealWidth(16), |
| | | Radius = (uint)Application.GetRealWidth(12), |
| | | BackgroundColor = 0x44000000, |
| | | }; |
| | | view.AddChidren(btnCoverd); |