| | |
| | | { |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | | new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(InternationalizationString.PersonalCenter)); |
| | | new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(StringId.PersonalCenter)); |
| | | |
| | | headPortraitView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(124), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | bodyView.AddChidren(headPortraitView); |
| | | |
| | | btnHeadPortraitView = new Button(){ |
| | | btnHeadPortraitView = new Button() |
| | | { |
| | | Gravity = Gravity.Center, |
| | | Width = Application.GetMinRealAverage(84), |
| | | Height = Application.GetMinRealAverage(84), |
| | |
| | | /// </summary> |
| | | optionListView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = headPortraitView.Bottom+ Application.GetRealHeight(8), |
| | | Height = Application.GetRealHeight(45*6), |
| | | Y = headPortraitView.Bottom + Application.GetRealHeight(8), |
| | | Height = Application.GetRealHeight(45 * 6), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | ScrollEnabled = false, |
| | | }; |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = InternationalizationString.Name, |
| | | TextID = StringId.Name, |
| | | }; |
| | | userNameView.AddChidren(btnUserName); |
| | | /// <summary> |
| | |
| | | UnSelectedImagePath = "PersonalCenter/PersonalData/EditIcon.png", |
| | | }; |
| | | userNameView.AddChidren(btnEditUserNameIcon); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16),Height = Application.GetRealHeight(1) ,Width = Application.GetRealWidth(343),BackgroundColor = CSS_Color.DividingLineColor}); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | #endregion |
| | | #region 个人选项-二维码区域 |
| | | /// <summary> |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = InternationalizationString.MyQRcode, |
| | | TextID = StringId.MyQRcode, |
| | | }; |
| | | _QRcodeView.AddChidren(btnQRcode); |
| | | /// <summary> |
| | |
| | | UnSelectedImagePath = "PersonalCenter/PersonalData/QRcodeIcon.png", |
| | | }; |
| | | _QRcodeView.AddChidren(btnQRcodeIcon); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16),Height = Application.GetRealHeight(1) ,Width = Application.GetRealWidth(343),BackgroundColor = CSS_Color.DividingLineColor}); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | /// <summary> |
| | | /// 二维码前进图标 |
| | | /// </summary> |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = InternationalizationString.BoundEmailInfo, |
| | | TextID = StringId.BoundEmailInfo, |
| | | }; |
| | | userEmailInfoView.AddChidren(btnUserEmailTilte); |
| | | /// <summary> |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = string.IsNullOrEmpty(MainPage.LoginUser.UserEmailInfo )?Language.StringByID(InternationalizationString.Unbound):MainPage.LoginUser.UserEmailInfo |
| | | Text = string.IsNullOrEmpty(MainPage.LoginUser.UserEmailInfo) ? Language.StringByID(StringId.Unbound) : MainPage.LoginUser.UserEmailInfo |
| | | }; |
| | | userEmailInfoView.AddChidren(btnUserEmailInfo); |
| | | /// <summary> |
| | |
| | | UnSelectedImagePath = "PersonalCenter/PersonalData/Right.png", |
| | | }; |
| | | userEmailInfoView.AddChidren(btnUserEmailRight); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16),Height = Application.GetRealHeight(1) ,Width = Application.GetRealWidth(343),BackgroundColor = CSS_Color.DividingLineColor}); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | #endregion |
| | | #region 个人选项-手机信息区域 |
| | | /// <summary> |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = InternationalizationString.BoundMobileInfo, |
| | | TextID = StringId.BoundMobileInfo, |
| | | }; |
| | | userPhoneInfoView.AddChidren(btnUserPhoneTitle); |
| | | /// <summary> |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = string.IsNullOrEmpty(MainPage.LoginUser.UserMobileInfo) ? Language.StringByID(InternationalizationString.Unbound) : MainPage.LoginUser.UserMobileInfo |
| | | Text = string.IsNullOrEmpty(MainPage.LoginUser.UserMobileInfo) ? Language.StringByID(StringId.Unbound) : MainPage.LoginUser.UserMobileInfo |
| | | }; |
| | | userPhoneInfoView.AddChidren(btnUserPhoneInfo); |
| | | /// <summary> |
| | |
| | | UnSelectedImagePath = "PersonalCenter/PersonalData/Right.png", |
| | | }; |
| | | userPhoneInfoView.AddChidren(btnUserPhoneRight); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16),Height = Application.GetRealHeight(1) ,Width = Application.GetRealWidth(343),BackgroundColor = CSS_Color.DividingLineColor}); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | #endregion |
| | | #region 个人选项-第三方授权区域 |
| | | /// <summary> |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = InternationalizationString.ThirdPartyAuthorization, |
| | | TextID = StringId.ThirdPartyAuthorization, |
| | | }; |
| | | thirdPartyAuthorizationView.AddChidren(btnThirdPartyAuthorizationTitle); |
| | | btnThirdPartyAuthorizationRight = new Button() |
| | |
| | | UnSelectedImagePath = "PersonalCenter/PersonalData/Right.png", |
| | | }; |
| | | thirdPartyAuthorizationView.AddChidren(btnThirdPartyAuthorizationRight); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16),Height = Application.GetRealHeight(1) ,Width = Application.GetRealWidth(343),BackgroundColor = CSS_Color.DividingLineColor}); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | #endregion |
| | | #region 个人选项-修改登录密码区域 |
| | | /// <summary> |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = InternationalizationString.ChangeLoginPassword, |
| | | TextID = StringId.ChangeLoginPassword, |
| | | }; |
| | | resetPasswordView.AddChidren(btnResetPasswordText); |
| | | btnResetPasswordRight = new Button() |
| | |
| | | UnSelectedImagePath = "PersonalCenter/PersonalData/Right.png", |
| | | }; |
| | | resetPasswordView.AddChidren(btnResetPasswordRight); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16),Height = Application.GetRealHeight(1) ,Width = Application.GetRealWidth(343),BackgroundColor = CSS_Color.DividingLineColor}); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | #endregion |
| | | #endregion |
| | | |
| | |
| | | TextAlignment = TextAlignment.BottomLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = InternationalizationString.InterpretationSettings, |
| | | TextID = StringId.InterpretationSettings, |
| | | }; |
| | | interpretationSettingsView.AddChidren(btnInterpretationSettingsTitle); |
| | | btnInterpretationSettingsTip = new Button() |
| | |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextID = InternationalizationString.InterpretationSettingsTip |
| | | TextID = StringId.InterpretationSettingsTip |
| | | }; |
| | | interpretationSettingsView.AddChidren(btnInterpretationSettingsTip); |
| | | |
| | |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.AuxiliaryColor2, |
| | | TextID = InternationalizationString.Logout, |
| | | TextID = StringId.Logout, |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | bodyView.AddChidren(btnLogout); |
| | | |
| | | |
| | | LoadEventList(); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | } |