gxc
2019-12-03 a7a6907b3df65db9c4b2bb1237f709db5c985b52
ZigbeeApp/Shared/Phone/Device/CommonForm/SceneMainView.cs
@@ -16,7 +16,7 @@
        /// <summary>
        /// SceneIcon
        /// </summary>
        public Button SceneIcon;
        public ImageView SceneIcon;
        /// <summary>
        /// statu
        /// </summary>
@@ -92,16 +92,15 @@
            };
            AddChidren(CardBG);
            SceneIcon = new Button
            SceneIcon = new ImageView
            {
                X = Application.GetMinRealAverage(14),
                Width = Application.GetMinRealAverage(458),
                Height = Application.GetRealHeight(305),
                Gravity = Gravity.CenterHorizontal
                Height = Application.GetMinRealAverage(305),
                Gravity = Gravity.CenterHorizontal,
            };
            AddChidren(SceneIcon);
            SceneIcon.SetViewShadow(true);
            SceneIcon.SetCornerWithSameRadius(Application.GetRealHeight(100), HDLUtils.RectCornerBottomRight);
            //sceneBG = new Button
            //{
@@ -219,11 +218,11 @@
        {
            if (scene.IconPathType == 0)
            {
                SceneIcon.UnSelectedImagePath = iconPath;
                SceneIcon.ImagePath = iconPath;
            }
            else
            {
                SceneIcon.UnSelectedImagePath = System.IO.Path.Combine(Config.Instance.FullPath, iconPath);
                SceneIcon.ImagePath = System.IO.Path.Combine(Config.Instance.FullPath, iconPath);
            }
        }