黄学彪
2020-09-22 ade5917841b0fdcb1df7353ef7c56b1a1bdc9282
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
using System;
using Shared.Common;
 
namespace Shared.Phone.Device.Logic.LogicView
{
    public class AddDeviceView
    {
        public FrameLayout addframeLayout = new FrameLayout
        {
            Height = Application.GetRealHeight(160 + 30 + 50),
            BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor,
        };
        public Button addIconBtn = new Button
        {
            Height = Application.GetRealHeight(130 + 50),
            Width = Application.GetRealWidth(908),
            Y = Application.GetRealHeight(30),
            X = Application.GetRealWidth(86),
            UnSelectedImagePath = "ZigeeLogic/logicaddcolor.png",
        };
        public Button titleBtn = new Button
        {
            Height = Application.GetRealHeight(58),
            Width = Application.GetRealWidth(400),
            Y = Application.GetRealHeight(45 + 30),
            TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor,
            //TextID = MyInternationalizationString.addfunction,
            X = Application.GetRealWidth(340),
            TextSize = 14,
        };
        /// <summary>
        /// 点击热键
        /// </summary>
        public Button clickBtn = new Button
        {
            Width = Application.GetRealWidth(1080 - 2 * 86),
            Height = Application.GetRealHeight(130 + 50),
            X = Application.GetRealWidth(86),
        };
        public FrameLayout AddFl()
        {
            addframeLayout.AddChidren(addIconBtn);
            addframeLayout.AddChidren(titleBtn);
            addframeLayout.AddChidren(clickBtn);
            return addframeLayout;
        }
 
    }
}