| | |
| | | using System; |
| | | using HDL_ON.Entity; |
| | | using Shared; |
| | | |
| | | namespace HDL_ON.UI |
| | |
| | | |
| | | public void LoadPage() |
| | | { |
| | | bodyView = this; |
| | | ContextView = new FrameLayout() |
| | | try |
| | | { |
| | | Height = Application.GetRealHeight(618+25), |
| | | BackgroundColor = CSS.CSS_Color.BackgroundColor |
| | | }; |
| | | bodyView.AddChidren(ContextView); |
| | | bodyView = this; |
| | | bodyView.BackgroundColor = CSS.CSS_Color.MainBackgroundColor; |
| | | ContextView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(618 + 20), |
| | | BackgroundColor = CSS.CSS_Color.BackgroundColor, |
| | | }; |
| | | bodyView.AddChidren(ContextView); |
| | | |
| | | navigationView = new FrameLayout() |
| | | navigationView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(607), |
| | | Height = Application.GetMinRealAverage(60), |
| | | }; |
| | | bodyView.AddChidren(navigationView); |
| | | if (MainPage.Increase) |
| | | { |
| | | //ContextView.Height = Application.GetRealHeight(618 + 20); |
| | | navigationView.Y = Application.GetRealHeight(597 + 5); |
| | | navigationView.Height = Application.GetRealHeight(70 - 5); |
| | | } |
| | | InitBottomView(); |
| | | |
| | | LoadEventList(); |
| | | |
| | | var homePage = new HomePage(); |
| | | ContextView.AddChidren(homePage); |
| | | homePage.LoadPage(); |
| | | |
| | | //刷新功能状态 |
| | | DB_ResidenceData.residenceData.RefreshResidenceFunctionStatus(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Y = Application.GetRealHeight(607), |
| | | Height = Application.GetRealHeight(60), |
| | | }; |
| | | bodyView.AddChidren(navigationView); |
| | | |
| | | InitBottomView(); |
| | | |
| | | LoadEventList(); |
| | | MainPage.Log($"UserPage error {ex.Message}"); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | navigationSelectionView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(0 - 94 * 3), |
| | | Y = Application.GetRealHeight(4), |
| | | Y = Application.GetMinRealAverage(4), |
| | | Width = Application.GetRealWidth(94 * 7), |
| | | Height = Application.GetRealHeight(38), |
| | | Height = Application.GetMinRealAverage(38), |
| | | BackgroundImagePath = "Navigation/UserPageNavbg.png", |
| | | }; |
| | | navigationView.AddChidren(navigationSelectionView); |
| | |
| | | btnNavigationSelectionIcon = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(6), |
| | | Y = Application.GetMinRealAverage(6), |
| | | Width = Application.GetMinRealAverage(22), |
| | | Height = Application.GetMinRealAverage(22), |
| | | UnSelectedImagePath = "Navigation/CollectionIconOn.png", |
| | | }; |
| | | navigationSelectionView.AddChidren(btnNavigationSelectionIcon); |
| | | |
| | | |
| | | NavigationSubView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(11), |
| | | Y = Application.GetMinRealAverage(11), |
| | | Height = Application.GetRealHeight(49), |
| | | //BackgroundColor = CSS.CSS_Color.MainBackgroundColor, |
| | | //BackgroundColor=0xFF00F0F0 |
| | | }; |
| | | navigationView.AddChidren(NavigationSubView); |
| | | |
| | | |
| | | #region 收藏区域 |
| | | collectionView = new FrameLayout() { |
| | |
| | | Width = Application.GetMinRealAverage(22), |
| | | Height = Application.GetMinRealAverage(22), |
| | | UnSelectedImagePath = "Navigation/CollectionIcon.png", |
| | | SelectedImagePath = "0Common/transparent.png", |
| | | SelectedImagePath = "Public/transparent.png", |
| | | IsSelected = true, |
| | | }; |
| | | collectionView.AddChidren(btnCollectionIcon); |
| | |
| | | SelectedTextColor = CSS.CSS_Color.MainColor, |
| | | TextColor =CSS.CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS.CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | TextID = InternationalizationString.Collection, |
| | | TextID = StringId.Collection, |
| | | TextAlignment = TextAlignment.Center, |
| | | }; |
| | | collectionView.AddChidren(btnCollectionText); |
| | |
| | | Width = Application.GetMinRealAverage(22), |
| | | Height = Application.GetMinRealAverage(22), |
| | | UnSelectedImagePath = "Navigation/ClassificationIcon.png", |
| | | SelectedImagePath = "0Common/transparent.png", |
| | | SelectedImagePath = "Public/transparent.png", |
| | | }; |
| | | classificationView.AddChidren(btnClassificationIcon); |
| | | btnClassificationText = new Button() |
| | |
| | | SelectedTextColor = CSS.CSS_Color.MainColor, |
| | | TextColor = CSS.CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS.CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | TextID = InternationalizationString.Classification, |
| | | TextID = StringId.Classification, |
| | | TextAlignment = TextAlignment.Center, |
| | | }; |
| | | classificationView.AddChidren(btnClassificationText); |
| | |
| | | Width = Application.GetMinRealAverage(22), |
| | | Height = Application.GetMinRealAverage(22), |
| | | UnSelectedImagePath = "Navigation/IntellectualizationIcon.png", |
| | | SelectedImagePath = "0Common/transparent.png", |
| | | SelectedImagePath = "Public/transparent.png", |
| | | }; |
| | | intellectualizationView.AddChidren(btnIntellectualizationIcon); |
| | | btnIntellectualizationText = new Button() |
| | |
| | | TextColor = CSS.CSS_Color.FirstLevelTitleColor, |
| | | SelectedTextColor = CSS.CSS_Color.MainColor, |
| | | TextSize = CSS.CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | TextID = InternationalizationString.Intellectualization, |
| | | TextID = StringId.Intellectualization, |
| | | TextAlignment = TextAlignment.Center, |
| | | }; |
| | | intellectualizationView.AddChidren(btnIntellectualizationText); |
| | |
| | | Width = Application.GetMinRealAverage(22), |
| | | Height = Application.GetMinRealAverage(22), |
| | | UnSelectedImagePath = "Navigation/PersonalCenterIcon.png", |
| | | SelectedImagePath = "0Common/transparent.png", |
| | | SelectedImagePath = "Public/transparent.png", |
| | | }; |
| | | personalCenterView.AddChidren(btnPersonalCenterIcon); |
| | | |
| | |
| | | TextColor = CSS.CSS_Color.FirstLevelTitleColor, |
| | | SelectedTextColor = CSS.CSS_Color.MainColor, |
| | | TextSize = CSS.CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | TextID = InternationalizationString.Personal, |
| | | TextID = StringId.Personal, |
| | | TextAlignment = TextAlignment.Center, |
| | | }; |
| | | personalCenterView.AddChidren(btnPersonalCenterText); |
| | | #endregion |
| | | |
| | | |
| | | |
| | | var homePage = new HomePage(); |
| | | ContextView.AddChidren(homePage); |
| | |
| | | { IsBackground = true }.Start(); |
| | | #endregion |
| | | ContextView.RemoveAll(); |
| | | var classificaitionView = new UI.ClassificationPage(); |
| | | var classificaitionView = new ClassificationPage(); |
| | | ContextView.AddChidren(classificaitionView); |
| | | classificaitionView.LoadPage(); |
| | | |