陈嘉乐
2020-12-01 307e554fb2ef6491d08afc58a6c0a852f44b4f46
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
using System;
using Shared;
namespace HDL_ON.UI.UI2.Intelligence.Automation.LogicView
{
    public class FunAllAreaView
    {
        /// <summary>
        /// 主控件View
        /// </summary>
        public FrameLayout frameLayout = new FrameLayout
        {
            Height = Application.GetRealHeight(53),
            BackgroundColor = CSS.CSS_Color.view,
        };
        /// <summary>
        /// 第一个下拉图标
        /// </summary>
        public Button btnIcon1 = new Button
        {
            Width = Application.GetMinRealAverage(16),
            Height = Application.GetMinRealAverage(16),
            Y = Application.GetRealHeight(19),
            X = Application.GetRealWidth(TextSize.left16),
            UnSelectedImagePath = "LogicIcon/down.png",
 
        };
        /// <summary>
        /// 第一个文本描述
        /// </summary>
        public Button btnText1 = new Button
        {
            TextSize = TextSize.text12,
            Width = Application.GetRealWidth(70),
            Height = Application.GetRealHeight(17),
            TextColor = CSS.CSS_Color.textColor,
            Y=Application.GetRealHeight(18),
            X = Application.GetRealWidth(34),
            TextAlignment = TextAlignment.CenterLeft,
            TextID=StringId.allAreas,
            
        };
 
        /// <summary>
        /// 第二个下拉图标
        /// </summary>
        public Button btnIcon2 = new Button
        {
            Width = Application.GetMinRealAverage(16),
            Height = Application.GetMinRealAverage(16),
            Y = Application.GetRealHeight(19),
            X = Application.GetRealWidth(122),
            UnSelectedImagePath = "LogicIcon/down.png",
 
        };
        /// <summary>
        /// 第二个文本描述
        /// </summary>
        public Button btnText2 = new Button
        {
            TextSize = TextSize.text12,
            Width = Application.GetRealWidth(70),
            Height = Application.GetRealHeight(17),
            TextColor = CSS.CSS_Color.textColor,
            Y=Application.GetRealHeight(18),
            X = Application.GetRealWidth(140),
            TextAlignment = TextAlignment.CenterLeft,
            TextID = StringId.allFun,
        };
 
        /// <summary>
        ///View的方法
        /// </summary>
        /// <returns></returns>
        public FrameLayout FLayoutView()
        {
            frameLayout.AddChidren(btnIcon1);
            frameLayout.AddChidren(btnText1);
            frameLayout.AddChidren(btnIcon2);
            frameLayout.AddChidren(btnText2);
            return frameLayout;
        }
       
    }
}