From 7ded9bc93b6beb5d7311ed4d013f90c521f85b5e Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 24 八月 2020 11:47:24 +0800
Subject: [PATCH] 2020.08.24.1
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/BackViewControl.cs | 53 ++++++++++++++++++++++++++---------------------------
1 files changed, 26 insertions(+), 27 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/BackViewControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/BackViewControl.cs
old mode 100644
new mode 100755
index 21eec6e..ed4989c
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/BackViewControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/BackViewControl.cs
@@ -1,16 +1,16 @@
-锘縰sing System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Shared.Phone.UserCenter
-{
+锘縰sing System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Shared.Phone.UserCenter
+{
/// <summary>
/// 鍋氭垚涓�涓猅opFrameLayout鐨勮繑鍥為敭鉁�
/// </summary>
- public class BackViewControl : FrameLayoutControl
+ public class BackViewControl : FrameLayoutStatuControl
{
- /// <summary>
- /// 鍥炬爣瀹藉害
+ /// <summary>
+ /// 鍥炬爣瀹藉害
/// </summary>
private int iconWidth = 30;
@@ -22,26 +22,25 @@
this.UseClickStatu = false;
this.Name = "btnBack";
this.X = ControlCommonResourse.XXLeft - Application.GetRealWidth((110 - iconWidth) / 2);
- this.Width = Application.GetMinRealAverage(110);
- this.Height = Application.GetMinRealAverage(110);
+ this.Width = this.GetPictrueRealSize(110);
+ this.Height = this.GetPictrueRealSize(110);
this.Gravity = Gravity.CenterVertical;
-
}
- /// <summary>
- /// 鍒濆鍖�
+ /// <summary>
+ /// 鍒濆鍖�
/// </summary>
- public void InitControl()
- {
- var btnIcon = new ButtonBase();
- btnIcon.Width = Application.GetMinRealAverage(30);
- btnIcon.Height = Application.GetMinRealAverage(51);
- btnIcon.UnSelectedImagePath = "Item/Back.png";
- btnIcon.Gravity = Gravity.Center;
-
- this.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly);
- //杩欏紶鍥剧墖濂藉儚寰堢壒娈�,鏃犳硶灞呬腑
- btnIcon.Y += Application.GetRealHeight(5);
+ public void InitControl()
+ {
+ var btnIcon = new ButtonBase();
+ btnIcon.Width = this.GetPictrueRealSize(30);
+ btnIcon.Height = this.GetPictrueRealSize(51);
+ btnIcon.UnSelectedImagePath = "Item/Back.png";
+ btnIcon.Gravity = Gravity.Center;
+
+ this.AddChidren(btnIcon, ChidrenBindMode.BindEvent);
+ //杩欏紶鍥剧墖濂藉儚寰堢壒娈�,鏃犳硶灞呬腑
+ btnIcon.Y += Application.GetRealHeight(5);
}
- }
-}
+ }
+}
--
Gitblit v1.8.0