| | |
| | | /// <summary>
|
| | | /// 用户头像
|
| | | /// </summary>
|
| | | private IconViewControl btnUserIcon = null;
|
| | | private ImageView btnUserIcon = null;
|
| | | /// <summary>
|
| | | /// 皇冠
|
| | | /// </summary>
|
| | |
| | | frameBack.BackgroundColor = UserCenterColor.Current.BodyFrameLayout;
|
| | | frameBack.Y = Application.GetRealHeight(380);
|
| | | frameBack.Gravity = Gravity.CenterHorizontal;
|
| | | frameBack.Radius = (uint)Application.GetMinRealAverage(12);
|
| | | frameBack.Radius = 12;
|
| | | frameBack.Width = bodyFrameLayout.Width - Application.GetRealWidth(29 * 2);
|
| | | frameBack.Height = bodyFrameLayout.Height - Application.GetRealHeight(380) + Application.GetRealHeight(100);
|
| | | bodyFrameLayout.AddChidren(frameBack);
|
| | |
| | | private void InitUserInfoControl(FrameLayout frameWhite)
|
| | | {
|
| | | //用户头像
|
| | | this.btnUserIcon = new IconViewControl(280);
|
| | | this.btnUserIcon = new ImageView();
|
| | | btnUserIcon.Height = Application.GetMinRealAverage(280);
|
| | | btnUserIcon.Width = Application.GetMinRealAverage(280);
|
| | | btnUserIcon.Radius = (uint)Application.GetMinRealAverage(280) / 2;
|
| | | btnUserIcon.X = Application.GetRealWidth(121);
|
| | | btnUserIcon.UnSelectedImagePath = UserCenterResourse.UserInfo.UserIconFile;
|
| | | btnUserIcon.ImagePath = UserCenterResourse.UserInfo.UserIconFile;
|
| | | bodyFrameLayout.AddChidren(btnUserIcon);
|
| | | btnUserIcon.Y = frameWhite.Y - Application.GetRealHeight(109);
|
| | | btnUserIcon.MouseUpEventHandler += (sender, e) =>
|
| | |
| | | frameWhiteBack.Gravity = Gravity.CenterHorizontal;
|
| | | frameWhiteBack.Height = Application.GetRealHeight(371);
|
| | | frameWhiteBack.Width = frameWhite.Width - Application.GetRealWidth(29 * 2);
|
| | | frameWhiteBack.Radius = (uint)Application.GetMinRealAverage(10);
|
| | | frameWhiteBack.Radius = 10;
|
| | | frameWhiteBack.BackgroundColor = UserCenterColor.Current.White;
|
| | | frameWhite.AddChidren(frameWhiteBack);
|
| | | }
|
| | |
| | | public override int FormActionAgainEvent()
|
| | | {
|
| | | //用户头像
|
| | | if (btnUserIcon.UnSelectedImagePath != UserCenterResourse.UserInfo.UserIconFile)
|
| | | if (UserCenterResourse.UserInfo.UserIconFileChanged == true)
|
| | | {
|
| | | btnUserIcon.UnSelectedImagePath = UserCenterResourse.UserInfo.UserIconFile;
|
| | | UserCenterResourse.UserInfo.UserIconFileChanged = false;
|
| | | btnUserIcon.ImagePath = UserCenterResourse.UserInfo.UserIconFile;
|
| | | }
|
| | | //用户名字
|
| | | btnUserName.Text = UserCenterResourse.UserInfo.UserName;
|