| | |
| | | contentView.RemoveAll(); |
| | | |
| | | #region 住宅信息区域 |
| | | //if (!DB_ResidenceData.residenceData.residecenInfo.IsOthreShare) |
| | | //{ |
| | | // residenceInfoView = new FrameLayout() |
| | | // { |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Width = Application.GetRealWidth(343), |
| | | // Height = Application.GetRealHeight(213), |
| | | // BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | // Radius = (uint)Application.GetRealHeight(12), |
| | | // BorderColor = 0x00FFFFFF, |
| | | // BorderWidth = 0, |
| | | // }; |
| | | // contentView.AddChidren(residenceInfoView); |
| | | //} |
| | | //else |
| | | if (!DB_ResidenceData.residenceData.residecenInfo.IsOthreShare) |
| | | { |
| | | residenceInfoView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealHeight(213), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Radius = (uint)Application.GetRealHeight(12), |
| | | BorderColor = 0x00FFFFFF, |
| | | BorderWidth = 0, |
| | | }; |
| | | contentView.AddChidren(residenceInfoView); |
| | | } |
| | | else |
| | | { |
| | | residenceInfoView = new FrameLayout() |
| | | { |
| | |
| | | }; |
| | | residenceManageView.AddChidren(btnResidenceManageText); |
| | | #endregion |
| | | #if stage2 |
| | | |
| | | #region ---成员区域 |
| | | #region ---成员区域 |
| | | residenceMemberView = new FrameLayout() |
| | | { |
| | | X = residenceManageView.Right, |
| | |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel |
| | | }; |
| | | residenceMemberView.AddChidren(btnResidenceMemberText); |
| | | #endregion |
| | | #region ---安放区域 |
| | | #endregion |
| | | #region ---安放区域 |
| | | residenceArmView = new FrameLayout() |
| | | { |
| | | X = residenceMemberView.Right, |
| | |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel |
| | | }; |
| | | residenceArmView.AddChidren(btnResidenceArmText); |
| | | #endregion |
| | | #region ---数据备份区域 |
| | | #endregion |
| | | #region ---数据备份区域 |
| | | //residenceDataBackupView = new FrameLayout() |
| | | //{ |
| | | // X = Application.GetRealWidth(28 - 24), |
| | |
| | | // TextSize = CSS_FontSize.PromptFontSize_FirstLevel |
| | | //}; |
| | | //residenceDataBackupView.AddChidren(btnResidenceDataBackupText); |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region ---辅助功能区域 |
| | | #region ---辅助功能区域 |
| | | residenceAuxiliaryFunctionView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(28 - 24), |
| | |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel |
| | | }; |
| | | residenceAuxiliaryFunctionView.AddChidren(btnResidenceAuxiliaryFunctionText); |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region ---添加功能区域 |
| | | #region ---添加功能区域 |
| | | residenceAddFunctionView = new FrameLayout() |
| | | { |
| | | X = residenceAuxiliaryFunctionView.Right, |
| | |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel |
| | | }; |
| | | residenceAddFunctionView.AddChidren(btnResidenceAddFunctionText); |
| | | #endregion |
| | | #endif |
| | | } |
| | | #endregion |
| | | } |
| | | else |
| | | { |
| | | #region ---安放区域 |
| | | #region ---安放区域 |
| | | residenceArmView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(28 - 24), |
| | |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel |
| | | }; |
| | | residenceArmView.AddChidren(btnResidenceArmText); |
| | | #endregion |
| | | #region ---数据备份区域 |
| | | #endregion |
| | | #region ---数据备份区域 |
| | | //residenceDataBackupView = new FrameLayout() |
| | | //{ |
| | | // X = residenceArmView.Right, |
| | |
| | | // TextSize = CSS_FontSize.PromptFontSize_FirstLevel |
| | | //}; |
| | | //residenceDataBackupView.AddChidren(btnResidenceDataBackupText); |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region ---辅助功能区域 |
| | | #region ---辅助功能区域 |
| | | residenceAuxiliaryFunctionView = new FrameLayout() |
| | | { |
| | | X = residenceArmView.Right, |
| | |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel |
| | | }; |
| | | residenceAuxiliaryFunctionView.AddChidren(btnResidenceAuxiliaryFunctionText); |
| | | #endregion |
| | | #endregion |
| | | |
| | | } |
| | | #endregion |
| | | #endregion |
| | | |
| | | #endregion |
| | | #endregion |
| | | |
| | | contentView.ScrollEnabled = false; |
| | | #if stage2 |
| | | contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) }); |
| | | #region 软件设置区域 |
| | | softSettingView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealWidth(88), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Radius = (uint)Application.GetRealHeight(12), |
| | | BorderColor = 0x00FFFFFF, |
| | | BorderWidth = 0, |
| | | }; |
| | | contentView.AddChidren(softSettingView); |
| | | #region 软件设置区域 |
| | | softSettingView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealWidth(88), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Radius = (uint)Application.GetRealHeight(12), |
| | | BorderColor = 0x00FFFFFF, |
| | | BorderWidth = 0, |
| | | }; |
| | | contentView.AddChidren(softSettingView); |
| | | |
| | | Button btnNightViewModeIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(12), |
| | | Y = Application.GetRealHeight(10), |
| | | Width = Application.GetMinRealAverage(24), |
| | | Height = Application.GetMinRealAverage(24), |
| | | UnSelectedImagePath = "PersonalCenter/NightViewIcon.png", |
| | | }; |
| | | softSettingView.AddChidren(btnNightViewModeIcon); |
| | | Button btnNightViewModeIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(12), |
| | | Y = Application.GetRealHeight(10), |
| | | Width = Application.GetMinRealAverage(24), |
| | | Height = Application.GetMinRealAverage(24), |
| | | UnSelectedImagePath = "PersonalCenter/NightViewIcon.png", |
| | | }; |
| | | softSettingView.AddChidren(btnNightViewModeIcon); |
| | | |
| | | btnNightViewModeText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealWidth(44), |
| | | TextID = StringId.NightView, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | | softSettingView.AddChidren(btnNightViewModeText); |
| | | btnNightViewModeText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealWidth(44), |
| | | TextID = StringId.NightView, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | | softSettingView.AddChidren(btnNightViewModeText); |
| | | |
| | | Button btnNightViewModeRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(315), |
| | | Y = Application.GetRealWidth(14), |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | softSettingView.AddChidren(btnNightViewModeRight); |
| | | Button btnNightViewModeRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(315), |
| | | Y = Application.GetRealWidth(14), |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | softSettingView.AddChidren(btnNightViewModeRight); |
| | | |
| | | var btnSoftSettingViewLine = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Y = btnNightViewModeText.Bottom, |
| | | Height = Application.GetRealHeight(1), |
| | | BackgroundColor = CSS_Color.DividingLineColor |
| | | }; |
| | | softSettingView.AddChidren(btnSoftSettingViewLine); |
| | | var btnSoftSettingViewLine = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Y = btnNightViewModeText.Bottom, |
| | | Height = Application.GetRealHeight(1), |
| | | BackgroundColor = CSS_Color.DividingLineColor |
| | | }; |
| | | softSettingView.AddChidren(btnSoftSettingViewLine); |
| | | |
| | | Button btnGeneralSettingsIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(12), |
| | | Y = Application.GetRealWidth(54), |
| | | Width = Application.GetMinRealAverage(24), |
| | | Height = Application.GetMinRealAverage(24), |
| | | UnSelectedImagePath = "PersonalCenter/GeneralSettingsIcon.png", |
| | | }; |
| | | softSettingView.AddChidren(btnGeneralSettingsIcon); |
| | | Button btnGeneralSettingsIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(12), |
| | | Y = Application.GetRealWidth(54), |
| | | Width = Application.GetMinRealAverage(24), |
| | | Height = Application.GetMinRealAverage(24), |
| | | UnSelectedImagePath = "PersonalCenter/GeneralSettingsIcon.png", |
| | | }; |
| | | softSettingView.AddChidren(btnGeneralSettingsIcon); |
| | | |
| | | btnGeneralSettingsText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Y = btnSoftSettingViewLine.Bottom, |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealWidth(44), |
| | | TextID = StringId.GeneralSettings, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CSS_FontSize.TextFontSize |
| | | }; |
| | | softSettingView.AddChidren(btnGeneralSettingsText); |
| | | btnGeneralSettingsText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Y = btnSoftSettingViewLine.Bottom, |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealWidth(44), |
| | | TextID = StringId.GeneralSettings, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CSS_FontSize.TextFontSize |
| | | }; |
| | | softSettingView.AddChidren(btnGeneralSettingsText); |
| | | |
| | | Button btnGeneralSettingsRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(315), |
| | | Y = Application.GetRealWidth(58), |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | softSettingView.AddChidren(btnGeneralSettingsRight); |
| | | #endregion |
| | | #endif |
| | | Button btnGeneralSettingsRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(315), |
| | | Y = Application.GetRealWidth(58), |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | softSettingView.AddChidren(btnGeneralSettingsRight); |
| | | #endregion |
| | | contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) }); |
| | | #region 获取支持 |
| | | #region 获取支持 |
| | | supportView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | |
| | | supportView.AddChidren(btnAboutOnRight); |
| | | |
| | | |
| | | #endregion |
| | | #endregion |
| | | |
| | | contentView.AddChidren(new Button() { Height = Application.GetRealHeight(28) }); |
| | | |
| | | LoadEventList(); |
| | | } |
| | | } |
| | | } |
| | | } |