wxr
2020-12-08 145b157ba183ebf877c93ed2dbb01ec737c993d3
HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/SingleLogicView.cs
@@ -10,7 +10,7 @@
        public FrameLayout frameLayout = new FrameLayout
        {
            X = Application.GetRealWidth(16),
            Y = Application.GetRealHeight(12),
            //Y = Application.GetRealHeight(12),
            Width = Application.GetRealWidth(343),
            Height = Application.GetRealHeight(102),
            BackgroundColor = CSS.CSS_Color.view,
@@ -72,13 +72,22 @@
        /// </summary>
        public Button btnSwitchIcon = new Button
        {
            Width = Application.GetMinRealAverage(36),
            Height = Application.GetMinRealAverage(36),
            Width = Application.GetRealWidth(36),
            Height = Application.GetRealWidth(36),
            Y = Application.GetRealHeight(58),
            X = Application.GetRealWidth(295),
            UnSelectedImagePath = "LogicIcon/off.png",
            SelectedImagePath = "LogicIcon/on.png",
    };
        };
        /// <summary>
        /// 图标开关
        /// </summary>
        public Button btnclick= new Button
        {
            Width = Application.GetRealWidth(343),
            Height = Application.GetRealHeight(102),
        };
        /// <summary>
        /// View的方法
@@ -90,6 +99,7 @@
            frameLayout.AddChidren(btnWeekText);
            frameLayout.AddChidren(btnStateIcon);
            frameLayout.AddChidren(btnLienIcon);
            frameLayout.AddChidren(btnclick);
            frameLayout.AddChidren(btnSwitchIcon);
            return frameLayout;
        }