From 7b60238359b94125d591678eff105ae2bf47843f Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期五, 15 十一月 2019 13:16:21 +0800
Subject: [PATCH] 2019.11.15
---
ZigbeeApp/Shared/Phone/UserCenter/UserMain/QRCodeForm.cs | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/QRCodeForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/QRCodeForm.cs
index b781ced..67f8470 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/QRCodeForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/QRCodeForm.cs
@@ -63,10 +63,13 @@
frameBack.AddChidren(frameDetail);
//鐢ㄦ埛澶村儚
- var btnIcon = new IconViewControl(294);
+ var btnIcon = new ImageView();
+ btnIcon.Height = Application.GetMinRealAverage(294);
+ btnIcon.Width = Application.GetMinRealAverage(294);
+ btnIcon.Radius = (uint)Application.GetMinRealAverage(294) / 2;
btnIcon.Y = Application.GetRealHeight(121);
btnIcon.Gravity = Gravity.CenterHorizontal;
- btnIcon.UnSelectedImagePath = UserCenterResourse.UserInfo.UserIconFile;
+ btnIcon.ImagePath = UserCenterResourse.UserInfo.UserIconFile;
frameBack.AddChidren(btnIcon);
//鐢ㄦ埛鍚�
var btnUser = new NormalViewControl(frameBack.Width, Application.GetRealHeight(46), false);
@@ -77,7 +80,7 @@
frameDetail.AddChidren(btnUser);
//浜岀淮鐮�
var btnQrCode = new PicViewControl(236, 236);
- btnQrCode.BackgroundColor = UserCenterColor.Current.Green;
+ btnQrCode.ImageBytes = QRCode.BytesFromText(UserCenterResourse.UserInfo.Account, Application.GetMinRealAverage(236), Application.GetMinRealAverage(236));
btnQrCode.Gravity = Gravity.CenterHorizontal;
btnQrCode.Y = Application.GetRealHeight(262);
frameDetail.AddChidren(btnQrCode);
--
Gitblit v1.8.0