From 23532fa8ad34c89b6d24b01eaef6475fd0aad898 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 15 四月 2020 18:08:24 +0800
Subject: [PATCH] ???????

---
 ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs b/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs
index 009eccd..e916bc0 100755
--- a/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs
+++ b/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs
@@ -66,9 +66,6 @@
             //鍒濆鍖栦腑閮ㄦ帶浠�
             this.InitBodyFrameLayout();
 
-            //璁剧疆澶撮儴淇℃伅
-            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.RoomList));
-
             //鍒濆鍖栦腑閮ㄤ俊鎭�
             this.InitMiddleFrame();
         }
@@ -79,7 +76,11 @@
         private void InitTopFrame()
         {
             //鍒濆鍖栧ご閮ㄦ帶浠�
-            this.InitTopFrameLayout();
+            this.InitTopFrameLayout();
+
+            //璁剧疆澶撮儴淇℃伅
+            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.RoomList));
+
             //閲嶇疆杩斿洖鎸夐敭鐨勪簨浠�
             var btnBack = this.GetBackButton();
             btnBack.ButtonClickEvent = null;
@@ -164,9 +165,9 @@
             listRoom.Insert(0, HdlRoomLogic.Current.GetLoveRoom());
 
             //X杞�
-            int XX = Application.GetRealWidth(43);
+            int XX = this.GetPictrueRealSize(43);
             //Y杞�
-            int YY = Application.GetRealWidth(58);
+            int YY = this.GetPictrueRealSize(58);
             //鎴块棿璁℃暟
             int roomCount = 0;
             foreach (var room in listRoom)
@@ -181,11 +182,11 @@
                 //鍔犵紦瀛�
                 this.dicCardControl[room.Id] = contr;
                 //姣忎袱涓噸缃甔杞�
-                XX = roomCount % 2 == 0 ? Application.GetRealWidth(43) : contr.Right + Application.GetRealWidth(3);
+                XX = roomCount % 2 == 0 ? this.GetPictrueRealSize(43) : contr.Right + this.GetPictrueRealSize(3);
                 //姣忎袱涓疮鍔燳杞�
                 if (roomCount >= 2 && roomCount % 2 == 0)
                 {
-                    YY = contr.Bottom + Application.GetRealHeight(14);
+                    YY = contr.Bottom + this.GetPictrueRealSize(14);
                 }
                 contr.ButtonClickEvent += (sender, e) =>
                 {
@@ -239,8 +240,8 @@
             var frameBack = new FrameLayoutControl();
             frameBack.X = XX;
             frameBack.Y = YY;
-            frameBack.Width = Application.GetRealWidth(495);
-            frameBack.Height = Application.GetRealHeight(354);
+            frameBack.Width = this.GetPictrueRealSize(495);
+            frameBack.Height = this.GetPictrueRealSize(354);
             listView.frameTable.AddChidren(frameBack);
 
             //搴曢儴闃村奖鏁堟灉
@@ -249,23 +250,23 @@
             frameBack.AddChidren(btnShadow, ChidrenBindMode.NotBind);
 
             //鑳屾櫙鎺т欢
-            var picBackGroud = new NormalViewControl(467, 311, true);
+            var picBackGroud = new NormalViewControl(this.GetPictrueRealSize(467), this.GetPictrueRealSize(311), false);
             picBackGroud.Gravity = Gravity.CenterHorizontal;
-            picBackGroud.Radius = (uint)Application.GetRealHeight(29);
+            picBackGroud.Radius = (uint)this.GetPictrueRealSize(29);
             picBackGroud.BackgroundColor = ZigbeeColor.Current.GXCBlackBackgroundColor3;
             frameBack.AddChidren(picBackGroud, ChidrenBindMode.BindEventOnly);
 
             //鏈垎閰嶅浘鏍�
             var btnIcon = new PicViewControl(92, 72);
-            btnIcon.X = Application.GetRealWidth(129);
-            btnIcon.Y = Application.GetRealHeight(141);
+            btnIcon.X = this.GetPictrueRealSize(129);
+            btnIcon.Y = this.GetPictrueRealSize(141);
             btnIcon.UnSelectedImagePath = "Room/NoNameRoom.png";
             frameBack.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly);
 
             //鏈垎閰�
             var btnName = new NormalViewControl(141, 84, true);
-            btnName.X = Application.GetRealWidth(244);
-            btnName.Y = Application.GetRealHeight(131);
+            btnName.X = this.GetPictrueRealSize(244);
+            btnName.Y = this.GetPictrueRealSize(131);
             btnName.IsBold = true;
             btnName.TextColor = UserCenterColor.Current.White;
             btnName.TextID = R.MyInternationalizationString.Unallocated;

--
Gitblit v1.8.0