| | |
| | |
|
| | | //用户头像
|
| | | var btnIcon = new ImageView();
|
| | | btnIcon.Height = Application.GetMinRealAverage(294);
|
| | | btnIcon.Width = Application.GetMinRealAverage(294);
|
| | | btnIcon.Radius = (uint)Application.GetMinRealAverage(294) / 2;
|
| | | btnIcon.Height = this.GetPictrueRealSize(294);
|
| | | btnIcon.Width = this.GetPictrueRealSize(294);
|
| | | btnIcon.Radius = (uint)this.GetPictrueRealSize(294) / 2;
|
| | | btnIcon.Y = Application.GetRealHeight(121);
|
| | | btnIcon.Gravity = Gravity.CenterHorizontal;
|
| | | btnIcon.ImageBytes = Shared.IO.FileUtils.ReadFile(UserCenterResourse.UserInfo.UserIconFile);
|
| | |
| | | frameDetail.AddChidren(btnUser);
|
| | | //二维码
|
| | | var btnQrCode = new PicViewControl(236, 236);
|
| | | btnQrCode.ImageBytes = QRCode.BytesFromText(UserCenterResourse.UserInfo.Account, Application.GetMinRealAverage(236), Application.GetMinRealAverage(236));
|
| | | btnQrCode.ImageBytes = QRCode.BytesFromText(UserCenterResourse.UserInfo.Account, this.GetPictrueRealSize(236), this.GetPictrueRealSize(236));
|
| | | btnQrCode.Gravity = Gravity.CenterHorizontal;
|
| | | btnQrCode.Y = Application.GetRealHeight(262);
|
| | | frameDetail.AddChidren(btnQrCode);
|