From e79b65b97a8ae1eae5ee172dea1b52d041006599 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 02 九月 2020 17:24:32 +0800
Subject: [PATCH] 2020-09-02-3
---
ZigbeeApp/Shared/Phone/UserCenter/UserMain/QRCodeForm.cs | 31 ++++++++++++++++---------------
1 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/QRCodeForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/QRCodeForm.cs
index 4f643e6..ce92e3e 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/QRCodeForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/QRCodeForm.cs
@@ -13,19 +13,19 @@
/// <summary>
/// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓)
- /// </summary>
- public void ShowForm()
- {
- //鍒濆鍖栦腑閮ㄦ帶浠�
- this.InitMiddleFrame();
+ /// </summary>
+ public void ShowForm()
+ {
+ //鍒濆鍖栦腑閮ㄦ帶浠�
+ this.InitMiddleFrame();
}
- /// <summary>
- /// 鍒濆鍖栦腑閮ㄦ帶浠�
- /// </summary>
- private void InitMiddleFrame()
+ /// <summary>
+ /// 鍒濆鍖栦腑閮ㄦ帶浠�
+ /// </summary>
+ private void InitMiddleFrame()
{
- uint roundHeigth = (uint)Application.GetMinRealAverage(6);
+ uint roundHeigth = (uint)Application.GetRealHeight(17);
//鑳屾櫙妗�
var frameBack = new FrameLayout();
@@ -64,15 +64,16 @@
//鐢ㄦ埛澶村儚
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.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;
@@ -80,7 +81,7 @@
frameDetail.AddChidren(btnUser);
//浜岀淮鐮�
var btnQrCode = new PicViewControl(236, 236);
- btnQrCode.BackgroundColor = UserCenterColor.Current.Green;
+ 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);
--
Gitblit v1.8.0