From a2d26f15b940c853faaf6d6959b16a6d919cb800 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期三, 27 十一月 2019 19:26:30 +0800 Subject: [PATCH] 请合并最新的代码(完成门锁功能) --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/SelectDeviceForm.cs | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/SelectDeviceForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/SelectDeviceForm.cs index 6b0e889..f42aa76 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/SelectDeviceForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/SelectDeviceForm.cs @@ -57,6 +57,13 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + if (i_listShowDevice.Count == 0) + { + //娌℃湁鍙坊鍔犵殑鐩爣 + this.ShowNotDataImage(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uNotHadAddTarget)); + return; + } + listView = new VerticalListControl(29); listView.Y = Application.GetRealHeight(-6); listView.Height = bodyFrameLayout.Height + Application.GetRealHeight(6); @@ -73,7 +80,7 @@ this.AddDeviceRow(i_listShowDevice[i], i_listSelectDevice, SelcetCancel, SelectOnlyOne, i != count); } //璋冩暣鍒楄〃鎺т欢鐨勯珮搴� - listView.AdjustRealHeight(Application.GetRealHeight(23)); + listView.AdjustRealHeightByBottomButton(Application.GetRealHeight(23), Application.GetRealHeight(6)); }); //瀹屾垚 -- Gitblit v1.8.0