| | |
| | | /// </summary> |
| | | private void InitMiddleFrame() |
| | | {
|
| | | uint roundHeigth = (uint)Application.GetMinRealAverage(6);
|
| | | uint roundHeigth = (uint)Application.GetRealHeight(17);
|
| | |
|
| | | //背景框
|
| | | var frameBack = new FrameLayout();
|
| | |
| | | btnIcon.Radius = (uint)Application.GetMinRealAverage(294) / 2;
|
| | | btnIcon.Y = Application.GetRealHeight(121);
|
| | | btnIcon.Gravity = Gravity.CenterHorizontal;
|
| | | btnIcon.ImagePath = UserCenterResourse.UserInfo.UserIconFile;
|
| | | btnIcon.ImageBytes = Shared.IO.FileUtils.ReadFile(UserCenterResourse.UserInfo.UserIconFile);
|
| | | frameBack.AddChidren(btnIcon);
|
| | | //用户名
|
| | | var btnUser = new NormalViewControl(frameBack.Width, Application.GetRealHeight(46), false);
|
| | | btnUser.IsBold = true;
|
| | | btnUser.Y = Application.GetRealHeight(147);
|
| | | btnUser.Text = UserCenterResourse.UserInfo.UserName;
|
| | | btnUser.TextAlignment = TextAlignment.Center;
|