| | |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | | |
| | | |
| | | /// <summary> |
| | | /// 我的二维码页面 |
| | | /// </summary> |
| | | public class MyQRCodePage : FrameLayout |
| | | { |
| | | FrameLayout bodyView; |
| | |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | Text = UserInfo.Current.accountString |
| | | Text = UserInfo.Current.AccountString |
| | | }; |
| | | headView.AddChidren(btnEmail); |
| | | #endregion |
| | |
| | | Y = Application.GetRealHeight(104), |
| | | Height = codeWidth, |
| | | Width = codeWidth, |
| | | ImageBytes = Scan.BytesFromText(UserInfo.Current.accountString, codeWidth, codeWidth), |
| | | ImageBytes = Scan.BytesFromText(UserInfo.Current.AccountString, codeWidth, codeWidth), |
| | | }; |
| | | backView.AddChidren(codeImage); |
| | | |
| | | //二维码中心头像 |
| | | int imageWidth = Application.GetMinRealAverage(60); |
| | | int imageX = codeImage.X + (codeWidth - imageWidth) / 2; |
| | | int imageY = codeImage.Y + (codeWidth - imageWidth) / 2; |
| | | ImageView headImage2 = new ImageView() |
| | | { |
| | | X = imageX, |
| | | Y = imageY, |
| | | Width = imageWidth, |
| | | Height = imageWidth, |
| | | ImagePath = UserInfo.Current.headImagePagePath, |
| | | BorderColor = CSS_Color.MainBackgroundColor, |
| | | BorderWidth = (uint)Application.GetRealWidth(2), |
| | | Radius = (uint)Application.GetMinRealAverage(30), |
| | | }; |
| | | ////二维码中心头像 |
| | | //int imageWidth = Application.GetMinRealAverage(60); |
| | | //int imageX = codeImage.X + (codeWidth - imageWidth) / 2; |
| | | //int imageY = codeImage.Y + (codeWidth - imageWidth) / 2; |
| | | //ImageView headImage2 = new ImageView() |
| | | //{ |
| | | // X = imageX, |
| | | // Y = imageY, |
| | | // Width = imageWidth, |
| | | // Height = imageWidth, |
| | | // ImagePath = UserInfo.Current.headImagePagePath, |
| | | // BorderColor = CSS_Color.MainBackgroundColor, |
| | | // BorderWidth = (uint)Application.GetRealWidth(2), |
| | | // Radius = (uint)Application.GetMinRealAverage(30), |
| | | //}; |
| | | //backView.AddChidren(headImage2); |
| | | } |
| | | } |