陈嘉乐
2020-11-23 db68ee28e538f1de22db27216f194d131240f901
HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/SelectTypeView.cs
@@ -13,7 +13,7 @@
            BackgroundColor = CSS.CSS_Color.view,
        };
        /// <summary>
        /// (条件或者目标)图标
        /// 图标
        /// </summary>
        public Button btnIcon = new Button
        {
@@ -24,7 +24,7 @@
        };
        /// <summary>
        /// (条件或者目标)文本描述
        /// 文本描述
        /// </summary>
        public Button btnText = new Button
        {
@@ -35,8 +35,39 @@
            //Y=Application.GetRealHeight(12),
            X = Application.GetRealWidth(52),
        };
        /// <summary>
        /// (条件或者目标)图标
        /// 设备名称
        /// </summary>
        public Button btnDeviceName = new Button
        {
            Width = Application.GetRealWidth(250),
            Height = Application.GetRealHeight(20),
            TextSize = TextSize.text14,
            TextColor = CSS.CSS_Color.textColor,
            Y =Application.GetRealHeight(6),
            X = Application.GetRealWidth(52),
            TextAlignment = TextAlignment.CenterLeft,
            Visible =false,
        };
        /// <summary>
        /// 房间名(即是=区域名称)
        /// </summary>
        public Button btnRoomName= new Button
        {
            Width = Application.GetRealWidth(250),
            Height = Application.GetRealHeight(14),
            TextSize = TextSize.text10,
            TextColor = CSS.CSS_Color.textCancelColor,
            Y=Application.GetRealHeight(30),
            X = Application.GetRealWidth(52),
            TextAlignment = TextAlignment.CenterLeft,
            Visible = false,
        };
        /// <summary>
        /// 图标
        /// </summary>
        public Button btnNextIcon = new Button
        {
@@ -64,7 +95,7 @@
            Height = Application.GetRealHeight(50),
        };
        /// <summary>
        /// 条件或者目标主控件的方法
        /// View的方法
        /// </summary>
        /// <returns></returns>
        public FrameLayout FLayoutView()
@@ -75,6 +106,8 @@
            btnNextIcon.Gravity = Gravity.CenterVertical;
            frameLayout.AddChidren(btnIcon);
            frameLayout.AddChidren(btnText);
            frameLayout.AddChidren(btnDeviceName);
            frameLayout.AddChidren(btnRoomName);
            frameLayout.AddChidren(btnNextIcon);
            btnLine.Y = frameLayout.Height - 1;
            frameLayout.AddChidren(btnLine);