From c1de48884fa145a16a0f8bcee93274dcfaa0ff82 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 07 五月 2020 10:40:28 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into dev-2020xm --- ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs index e0ea8f3..2d8c35d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs @@ -96,11 +96,13 @@ this.ClearBodyFrame(); //鍥剧墖 - var btnPic = new PicViewControl(878, 478); - btnPic.Y = Application.GetRealHeight(251); - btnPic.Gravity = Gravity.CenterHorizontal; - btnPic.UnSelectedImagePath = "Instruct/DeviceSearch.png"; - bodyFrameLayout.AddChidren(btnPic); + var framePic = new FrameLayout(); + framePic.Width = this.GetPictrueRealSize(878); + framePic.Height = this.GetPictrueRealSize(478); + framePic.Y = Application.GetRealHeight(251); + framePic.Gravity = Gravity.CenterHorizontal; + framePic.BackgroundImagePath = "Instruct/DeviceSearch.png"; + bodyFrameLayout.AddChidren(framePic); //姝e湪鎼滅储璁惧锛岃绋嶅�欌�� var btnSearch = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(58), false); @@ -150,7 +152,7 @@ this.realGateway.GwResDataAction += this.AdjustGatewayResultData; } //寮�鍚繛鎺ョ殑鍋囨兂鍔ㄧ敾鏁堟灉绾跨▼ - this.StartConcetionAnimeteThread(); + this.StartConcetionAnimeteThread(framePic); } #endregion @@ -211,7 +213,7 @@ //娣诲姞璁惧鐨勭紦瀛� device.IsOnline = 1; Common.LocalDevice.Current.AddDeviceToMemory(ref device); - + if (this.dicNewDevice.ContainsKey(device.DeviceAddr) == false) { this.dicNewDevice[device.DeviceAddr] = new List<CommonDevice>(); @@ -312,7 +314,7 @@ /// <summary> /// 寮�鍚繛鎺ョ殑鍋囨兂鍔ㄧ敾鏁堟灉绾跨▼ /// </summary> - private void StartConcetionAnimeteThread() + private void StartConcetionAnimeteThread(FrameLayout framePic) { int iconSize = this.GetPictrueRealSize(23); @@ -320,15 +322,15 @@ for (int i = 0; i < 9; i++) { //X杞�+Index*(鍥炬爣澶у皬+闂磋窛) - listPoint.Add(this.GetPictrueRealSize(394) + i * (iconSize + this.GetPictrueRealSize(10))); + listPoint.Add(this.GetPictrueRealSize(300) + i * (iconSize + this.GetPictrueRealSize(10))); } var btnRound = new PicViewControl(iconSize, iconSize, false); btnRound.Radius = (uint)iconSize / 2; btnRound.BackgroundColor = UserCenterColor.Current.ConcetionRoundColor; btnRound.X = listPoint[0]; - btnRound.Y = this.GetPictrueRealSize(475); - bodyFrameLayout.AddChidren(btnRound); + btnRound.Y = this.GetPictrueRealSize(225); + framePic.AddChidren(btnRound); HdlThreadLogic.Current.RunThread(() => { -- Gitblit v1.8.0