gxc
2020-02-28 66a9965c44ecc32a6696abca876ab9d1cd091584
ZigbeeApp/Shared/Phone/Device/CommonForm/RoomMainView.cs
old mode 100755 new mode 100644
@@ -1,5 +1,6 @@
using System;
using Shared.Common;
using Shared.Phone.UserView;
namespace Shared.Phone.Device.CommonForm
{
@@ -8,7 +9,7 @@
        /// <summary>
        /// SceneIcon
        /// </summary>
        public Button Icon;
        public ImageView Icon;
        /// <summary>
        /// RoomNameButton
        /// </summary>
@@ -17,7 +18,14 @@
        /// CardBG
        /// </summary>
        private Button CardBG;
        /// <summary>
        /// ClickBtn
        /// </summary>
        public Button ClickBtn;
        /// <summary>
        /// 是否可以触发点击事件
        /// </summary>
        public bool CanClick = true;
        /// <summary>
        /// RoomMainView
        /// </summary>
@@ -34,7 +42,7 @@
        /// <summary>
        /// init
        /// </summary>
        public void Init()
        public void Init(FrameLayout frameLayout, Common.Room room)
        {
            CardBG = new Button
            {
@@ -45,7 +53,7 @@
            };
            AddChidren(CardBG);
            Icon = new Button
            Icon = new ImageView
            {
                X = Application.GetMinRealAverage(14),
                Width = Application.GetMinRealAverage(467),
@@ -69,9 +77,15 @@
                X = Application.GetMinRealAverage(14),
                Width = Application.GetMinRealAverage(141),
                Height = Application.GetMinRealAverage(84),
                TextColor = ZigbeeColor.Current.GXCTextWhiteColor
                TextColor = ZigbeeColor.Current.GXCTextWhiteColor,
                TextSize=14,
                IsBold=true
            };
            AddChidren(RoomNameButton);
            ClickBtn = new Button { };
            AddChidren(ClickBtn);
        }
        /// <summary>
@@ -89,9 +103,8 @@
        /// <param name="imagePath"></param>
        public void SetRoomIcon(string imagePath)
        {
            Icon.UnSelectedImagePath = imagePath;
            Icon.ImagePath = imagePath;
        }
    }
}