lss
2021-04-23 8ccc71771efec9434ad3b4a45c5f2ec11326d40f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
using System;
using HDL_ON.UI.UI2.Intelligence.Automation.LogicView;
using Shared;
namespace HDL_ON.UI.UI2.FuntionControlView.Video.View
{
    public class FrameLayout60
    {
        /// <summary>
        /// 主控件View
        /// </summary>
        public FrameLayout frameLayout = new FrameLayout
        {
            Height = Application.GetRealHeight(60),
            //BackgroundColor = CSS.CSS_Color.view,
        };
 
        /// <summary>
        /// 文本描述
        /// </summary>
        public Button btnText = new Button
        {
            Y=Application.GetRealHeight(10),
            Width = Application.GetRealWidth(200),
            Height = Application.GetRealHeight(20),
            TextColor = CSS.CSS_Color.textColor,
            TextSize = TextSize.text14,
            //Text= "门口机呼叫",
            TextID=StringId.menkoujihujiao,
            TextAlignment = TextAlignment.CenterLeft,
        };
        /// <summary>
        /// 时间文本描述
        /// </summary>
        public Button btnTime = new Button
        {
            X=Application.GetRealWidth(82),
            Y = Application.GetRealHeight(10),
            Width = Application.GetRealWidth(120),
            Height = Application.GetRealHeight(20),
            TextColor = CSS.CSS_Color.textColor,
            TextSize = TextSize.text14,
            TextAlignment=TextAlignment.CenterLeft,
            Text = "15:01",
        };
        /// <summary>
        /// 状态文本
        /// </summary>
        public Button btnStateText = new Button  
        {
            Y = Application.GetRealHeight(32),
            Width = Application.GetRealWidth(260),
            Height = Application.GetRealHeight(17),
            TextSize = TextSize.text12,
            TextColor = CSS.CSS_Color.textCancelColor,
            TextAlignment = TextAlignment.CenterLeft,
            Text = "已接听, 已开锁",
        };
 
 
        /// <summary>
        /// 图标
        /// </summary>
        public Button btnNextIcon = new Button
        {
            Width = Application.GetRealWidth(102),
            Height = Application.GetRealWidth(56),
            UnSelectedImagePath = "LogicIcon/next.png",
            X = Application.GetRealWidth(191),
            Visible=false,
        };
 
        /// <summary>
        /// 线
        /// </summary>
        public Button btnLine = new Button
        {
            Width = Application.GetRealWidth(295),
            Height = 1,
            BackgroundColor = CSS.CSS_Color.viewLine,
 
        };
 
        public Button btnClick = new Button
        {
            Height = Application.GetRealHeight(50),
        };
        /// <summary>
        /// View的方法
        /// </summary>
        /// <returns></returns>
        public FrameLayout FLayoutView()
        {
            frameLayout.AddChidren(btnText);
            frameLayout.AddChidren(btnTime);
            frameLayout.AddChidren(btnStateText);
            frameLayout.AddChidren(btnNextIcon);
            btnLine.Y = frameLayout.Height - 1;
            frameLayout.AddChidren(btnLine);
            frameLayout.AddChidren(btnClick);
            return frameLayout;
        }
    }
}