| | |
| | | /// </summary> |
| | | ImageView userHeadImageView; |
| | | /// <summary> |
| | | /// 滚动部分 |
| | | /// </summary> |
| | | VerticalScrolViewLayout contentView; |
| | | /// <summary> |
| | | /// 住宅信息区域 |
| | | /// </summary> |
| | | FrameLayout residenceInfoView; |
| | |
| | | /// </summary> |
| | | FrameLayout softSettingView; |
| | | /// <summary> |
| | | /// 软件夜览模式图标 |
| | | /// </summary> |
| | | Button btnNightViewModeIcon; |
| | | /// <summary> |
| | | /// 软件夜览模式文本 |
| | | /// </summary> |
| | | Button btnNightViewModeText; |
| | | /// <summary> |
| | | /// 软件夜览模式按钮 |
| | | /// </summary> |
| | | Button btnNightViewModeSwitch; |
| | | /// <summary> |
| | | /// 通用设置图标 |
| | | /// </summary> |
| | | Button btnGeneralSettingsIcon; |
| | | /// <summary> |
| | | /// 通用设置文本 |
| | | /// </summary> |
| | | Button btnGeneralSettingsText; |
| | | |
| | | /// <summary> |
| | | /// 获取支持小区域 |
| | | /// </summary> |
| | | FrameLayout supportView; |
| | | /// <summary> |
| | | /// 获取支持图标 |
| | | /// </summary> |
| | | Button btnSupportIcon; |
| | | /// <summary> |
| | | /// 获取支持文本 |
| | | /// </summary> |
| | | Button btnSupportText; |
| | | |
| | | /// <summary> |
| | | /// 关于On文本 |
| | | /// </summary> |
| | | Button btnAboutOnText; |
| | | |
| | | #endregion |
| | | |
| | | public PersonalCenterPage() |
| | |
| | | |
| | | #endregion |
| | | |
| | | contentView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = Application.GetRealHeight(8) + personalInfoView.Bottom, |
| | | Height = Application.GetRealHeight(400), |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | | |
| | | #region 住宅信息区域 |
| | | if (!DB_ResidenceData.residenceData.residecenInfo.IsOthreShare) |
| | | { |
| | | residenceInfoView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(8) + personalInfoView.Bottom, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealHeight(213), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | |
| | | BorderColor = 0x00FFFFFF, |
| | | BorderWidth = 0, |
| | | }; |
| | | bodyView.AddChidren(residenceInfoView); |
| | | contentView.AddChidren(residenceInfoView); |
| | | } |
| | | else |
| | | { |
| | | residenceInfoView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(8) + personalInfoView.Bottom, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealHeight(144), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | |
| | | BorderColor = 0x00FFFFFF, |
| | | BorderWidth = 0, |
| | | }; |
| | | bodyView.AddChidren(residenceInfoView); |
| | | contentView.AddChidren(residenceInfoView); |
| | | |
| | | } |
| | | #region 顶部信息区域 |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | Text = DB_ResidenceData.residenceData.residecenInfo.IsOthreShare |
| | | == false ? "管理员" : "成员" |
| | | TextID = DB_ResidenceData.residenceData.residecenInfo.IsOthreShare |
| | | == false ? StringId.Administrators : StringId.Member |
| | | }; |
| | | userTypeView.AddChidren(btnUserTypeName); |
| | | #endregion |
| | |
| | | |
| | | #endregion |
| | | |
| | | contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) }); |
| | | |
| | | #region 软件设置区域 |
| | | softSettingView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(8) + residenceInfoView.Bottom, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealHeight(88), |
| | | Height = Application.GetRealWidth(88), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Radius = (uint)Application.GetRealHeight(5), |
| | | BorderColor = 0x00FFFFFF, |
| | | BorderWidth = 0, |
| | | }; |
| | | bodyView.AddChidren(softSettingView); |
| | | contentView.AddChidren(softSettingView); |
| | | |
| | | btnNightViewModeIcon = new Button() |
| | | Button btnNightViewModeIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(12), |
| | | Y = Application.GetRealHeight(10), |
| | |
| | | btnNightViewModeText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Width = Application.GetRealWidth(180), |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealHeight(44), |
| | | TextID = StringId.NightView, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | |
| | | }; |
| | | softSettingView.AddChidren(btnNightViewModeText); |
| | | |
| | | btnNightViewModeSwitch = new Button() |
| | | Button btnNightViewModeRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(283), |
| | | Y = Application.GetRealHeight(4), |
| | | Width = Application.GetMinRealAverage(48), |
| | | Height = Application.GetMinRealAverage(36), |
| | | UnSelectedImagePath = "Public/Switch.png", |
| | | SelectedImagePath = "Public/SwitchOn.png", |
| | | X = Application.GetRealWidth(315), |
| | | Y = Application.GetRealWidth(14), |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | softSettingView.AddChidren(btnNightViewModeSwitch); |
| | | softSettingView.AddChidren(btnNightViewModeRight); |
| | | |
| | | var btnSoftSettingViewLine = new Button() |
| | | { |
| | |
| | | }; |
| | | softSettingView.AddChidren(btnSoftSettingViewLine); |
| | | |
| | | btnGeneralSettingsIcon = new Button() |
| | | Button btnGeneralSettingsIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(12), |
| | | Y = Application.GetRealHeight(54), |
| | |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Y = btnSoftSettingViewLine.Bottom, |
| | | Width = Application.GetRealWidth(180), |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealHeight(44), |
| | | TextID = StringId.GeneralSettings, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | |
| | | }; |
| | | 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 |
| | | |
| | | contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) }); |
| | | #region 获取支持 |
| | | supportView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(8) + softSettingView.Bottom, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealHeight(44), |
| | | Height = Application.GetRealWidth(88), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Radius = (uint)Application.GetRealHeight(5), |
| | | BorderColor = 0x00FFFFFF, |
| | | BorderWidth = 0, |
| | | }; |
| | | bodyView.AddChidren(supportView); |
| | | contentView.AddChidren(supportView); |
| | | |
| | | btnSupportIcon = new Button() |
| | | Button btnSupportIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(12), |
| | | Y = Application.GetRealHeight(10), |
| | |
| | | btnSupportText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Width = Application.GetRealWidth(180), |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealHeight(44), |
| | | TextID = StringId.GetSupport, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | |
| | | TextSize = CSS_FontSize.TextFontSize |
| | | }; |
| | | supportView.AddChidren(btnSupportText); |
| | | Button btnSupportRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(315), |
| | | Y = Application.GetRealWidth(14), |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | supportView.AddChidren(btnSupportRight); |
| | | |
| | | |
| | | |
| | | var btnSupportViewLine = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Y = btnNightViewModeText.Bottom, |
| | | Height = Application.GetRealHeight(1), |
| | | BackgroundColor = CSS_Color.DividingLineColor |
| | | }; |
| | | supportView.AddChidren(btnSupportViewLine); |
| | | |
| | | Button btnAboutOnIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(12), |
| | | Y = Application.GetRealHeight(54), |
| | | Width = Application.GetMinRealAverage(24), |
| | | Height = Application.GetMinRealAverage(24), |
| | | UnSelectedImagePath = "PersonalCenter/InfoOnIcon.png", |
| | | }; |
| | | supportView.AddChidren(btnAboutOnIcon); |
| | | |
| | | btnAboutOnText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(48), |
| | | Y = btnSoftSettingViewLine.Bottom, |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealHeight(44), |
| | | TextID = StringId.AboutOn, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CSS_FontSize.TextFontSize |
| | | }; |
| | | supportView.AddChidren(btnAboutOnText); |
| | | |
| | | Button btnAboutOnRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(315), |
| | | Y = Application.GetRealWidth(58), |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | supportView.AddChidren(btnAboutOnRight); |
| | | |
| | | |
| | | #endregion |
| | | |
| | | contentView.AddChidren(new Button() { Height = Application.GetRealHeight(28) }); |
| | | |
| | | LoadEventList(); |
| | | } |
| | | } |