From 7584dea0241cefc276a4b5311331aee1dcda6c80 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 16 三月 2021 11:44:41 +0800 Subject: [PATCH] Merge branch 'WJC' into temp-wxr --- HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ControlView.cs | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 113 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ControlView.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ControlView.cs new file mode 100644 index 0000000..a2caf6c --- /dev/null +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ControlView.cs @@ -0,0 +1,113 @@ +锘縰sing System; +using HDL_ON.UI.UI2.Intelligence.Automation.LogicView; +using Shared; + +namespace HDL_ON.UI.UI2.PersonalCenter.PirDevice.View +{ + public class ControlView + { + /// <summary> + /// 鐖舵帶浠� + /// </summary> + public RowLayout funControlRow = new RowLayout + { + Width = Application.GetRealWidth(375 - 16 * 2), + Height = Application.GetRealHeight(50), + LineColor = CSS.CSS_Color.textWhiteColor, + SubViewWidth = Application.GetRealWidth(68), + }; + /// <summary> + /// 閬ユ帶鍣ㄥ悕绉� + /// </summary> + public Button nameBtn = new Button + { + X = Application.GetRealWidth(16), + Width = Application.GetRealWidth(150), + Height = Application.GetRealHeight(20), + //Text = control.name, + TextAlignment = TextAlignment.CenterLeft, + TextSize = TextSize.text14, + TextColor = CSS.CSS_Color.textColor, + Gravity = Gravity.CenterVertical, + }; + + /// <summary> + /// 閬ユ帶鍣ㄥ尯鍩� + /// </summary> + public Button areaBtn = new Button + { + X = Application.GetRealWidth(311 + 16 - (40 + 100)), + Width = Application.GetRealWidth(100), + Height = Application.GetRealHeight(17), + //Text = Intelligence.Automation.LogicMethod.GetGetRoomName(control), + TextAlignment = TextAlignment.CenterRight, + TextSize = TextSize.text12, + TextColor = CSS.CSS_Color.textCancelColor, + Gravity = Gravity.CenterVertical, + }; + + /// <summary> + /// 涓嬩竴绾у浘鏍� + /// </summary> + public Button nextIconBtn = new Button + { + X = Application.GetRealWidth(295 + 16), + Width = Application.GetRealWidth(16), + Height = Application.GetRealWidth(16), + UnSelectedImagePath = "PirIcon/next.png", + Gravity = Gravity.CenterVertical, + }; + + + /// <summary> + /// 鍒犻櫎 + /// </summary> + public Button delBtn = new Button + { + Width = Application.GetRealWidth(50), + Height = Application.GetRealHeight(22), + TextID = StringId.Del, + TextAlignment = TextAlignment.Center, + TextSize = TextSize.text16, + TextColor = CSS.CSS_Color.textWhiteColor, + IsBold = true, + BackgroundColor = CSS.CSS_Color.textRedColor, + //Tag = control, + }; + + /// <summary> + /// 绾� + /// </summary> + public Button line1Btn = new Button + { + Y = Application.GetRealHeight(50 - 2), + X = Application.GetRealWidth(16), + Width = Application.GetRealWidth(311), + Height = 1, + BackgroundColor = CSS.CSS_Color.viewLine, + }; + /// <summary> + /// 鐐瑰嚮浜嬩欢 + /// </summary> + public Button clickBtn = new Button + { + Width = Application.GetRealWidth(375 - 16 * 2), + Height = Application.GetRealHeight(50), + }; + /// <summary> + /// view鏂规硶 + /// </summary> + /// <param name="frame"></param> + public void Show(FrameLayout frame, int i) + { + funControlRow.Y = Application.GetRealHeight(92 + (50 * i)); + frame.AddChidren(funControlRow); + funControlRow.AddChidren(nameBtn); + funControlRow.AddChidren(areaBtn); + funControlRow.AddChidren(nextIconBtn); + funControlRow.AddRightView(delBtn); + funControlRow.AddChidren(line1Btn); + funControlRow.AddChidren(clickBtn); + } + } +} -- Gitblit v1.8.0