| | |
| | |
|
| | | //用户图标
|
| | | var btnUserIcon = new ImageView();
|
| | | btnUserIcon.Height = Application.GetMinRealAverage(251);
|
| | | btnUserIcon.Width = Application.GetMinRealAverage(251);
|
| | | btnUserIcon.Radius = (uint)Application.GetMinRealAverage(251) / 2;
|
| | | btnUserIcon.Height = this.GetPictrueRealSize(251);
|
| | | btnUserIcon.Width = this.GetPictrueRealSize(251);
|
| | | btnUserIcon.Radius = (uint)this.GetPictrueRealSize(251) / 2;
|
| | | btnUserIcon.Y = Application.GetRealHeight(46);
|
| | | btnUserIcon.Gravity = Gravity.CenterHorizontal;
|
| | | btnUserIcon.ImageBytes = Shared.IO.FileUtils.ReadFile(UserCenterResourse.UserInfo.UserIconFile);
|
| | |
| | | //名称View
|
| | | rowName.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uName), 350);
|
| | | //名称输入
|
| | | var txtName = new TextInputExControl(700, true);
|
| | | var txtName = new TextInputControl(700, true);
|
| | | txtName.UseFocusColor = true;
|
| | | txtName.X = bodyFrameLayout.Width - Application.GetRealWidth(700) - ControlCommonResourse.XXLeft;
|
| | | txtName.Gravity = Gravity.CenterVertical;
|
| | | txtName.TextAlignment = TextAlignment.CenterRight;
|
| | |
| | | /// 更新用户名
|
| | | /// </summary>
|
| | | /// <param name="txtName"></param>
|
| | | private async void SaveUserName(TextInputExControl txtName, bool showMsg)
|
| | | private async void SaveUserName(TextInputControl txtName, bool showMsg)
|
| | | {
|
| | | if (UserCenterResourse.UserInfo.UserName == string.Empty)
|
| | | {
|