From f1c3921b08bb22ac6f5db22d620e01d7e8e5c49f Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期一, 30 十二月 2019 13:32:33 +0800 Subject: [PATCH] 2019-12-30-1 --- ZigbeeApp/Shared/Phone/UserCenter/SharedContent/AddNewSharedContentForm.cs | 33 +++++++++++++++++++++++++-------- 1 files changed, 25 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/AddNewSharedContentForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/AddNewSharedContentForm.cs index 03a1c54..ae87a7d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/AddNewSharedContentForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/AddNewSharedContentForm.cs @@ -1,7 +1,6 @@ 锘縰sing System; using System.Collections.Generic; using System.Text; -using System.Threading.Tasks; using ZigBee.Device; namespace Shared.Phone.UserCenter.SharedContent @@ -58,6 +57,7 @@ /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓) /// </summary> /// <param name="i_room">鏌ョ湅鐨勬埧闂村璞�</param> + /// <param name="i_memberShardInfo">鎴愬憳鐨勫垎浜暟鎹�</param> public void ShowForm(Common.Room i_room, MemberShardInfoData i_memberShardInfo) { this.lookRoom = i_room; @@ -198,16 +198,33 @@ //鍦烘櫙鍥剧墖 var frameContr = new FrameLayoutControl(); frameContr.UseClickStatu = false; - frameContr.Width = Application.GetRealWidth(878); - frameContr.Height = Application.GetRealHeight(440); - frameContr.Gravity = Gravity.CenterHorizontal; - frameContr.BackgroundImagePath = data.IconPath; + frameContr.Height = Application.GetRealHeight(470); listView.AddChidrenFrame(frameContr); + + //鍦烘櫙鍥剧墖 + var btnPic = new ImageView(); + btnPic.X = Application.GetRealWidth(179); + btnPic.Width = Application.GetRealWidth(844); + btnPic.Height = Application.GetRealHeight(420); + btnPic.ImagePath = data.IconPath; + btnPic.Radius = 8; + frameContr.AddChidren(btnPic, ChidrenBindMode.BindEventOnly); + + var btnName = new NormalViewControl(251, 282, true); + btnName.X = ControlCommonResourse.XXLeft; + btnName.Y = Application.GetRealHeight(58); + btnName.BackgroundColor = 0xff333333; + btnName.Radius = 8; + btnName.Text = data.Name; + btnName.TextSize = 15; + btnName.TextColor = UserCenterColor.Current.White; + btnName.TextAlignment = TextAlignment.Center; + frameContr.AddChidren(btnName); var btnSelect = new IconViewControl(58); btnSelect.UnSelectedImagePath = "Item/ItemUnSelected.png"; btnSelect.SelectedImagePath = "Item/ItemSelected.png"; - btnSelect.X = Application.GetRealWidth(786); + btnSelect.X = Application.GetRealWidth(887); btnSelect.Y = Application.GetRealHeight(35); frameContr.AddChidren(btnSelect, ChidrenBindMode.BindEventOnly); if (dicSelectScene.ContainsKey(data.Id) == true) @@ -262,13 +279,13 @@ } else { - var frameBack = new FrameLayoutControl(false); + var frameBack = new FrameLayout(); frameBack.X = ControlCommonResourse.XXLeft; frameBack.Y = Application.GetRealHeight(178); frameBack.BackgroundColor = UserCenterColor.Current.White; frameBack.Width = bodyFrameLayout.Width; frameBack.Height = Application.GetRealHeight(1650); - frameBack.RadiusEx = 20; + frameBack.Radius = 20; frameDeviceTable.AddChidren(frameBack); var listView = new VerticalListControl(23); -- Gitblit v1.8.0