黄学彪
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
using System;
using System.Collections.Generic;
using Shared.Common;
using Shared.R;
using ZigBee.Device;
namespace Shared.Phone.Device.Logic.LogicView
{
    public class TypeView
    {
        public FrameLayout frameLayout = new FrameLayout
        {
            Height = Application.GetRealHeight(160),
            BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor,
        };
 
        public Button textBtn = new Button
        {
            X = Application.GetRealWidth(58),
            Y = Application.GetRealHeight(30),
            Text = Language.StringByID(MyInternationalizationString.type),
            TextAlignment = TextAlignment.CenterLeft,
            TextColor = ZigbeeColor.Current.LogicTextBlackColor,
            Width = Application.GetRealWidth(265),
            Height = Application.GetRealHeight(130),
            TextSize = 14,
 
        };
 
        public Button titleBtn = new Button
        {
            Y = Application.GetRealHeight(30),
            X = Application.GetRealWidth(265 + 58),
            Height = Application.GetRealHeight(130),
            Width = Application.GetRealWidth(630),
            TextAlignment = TextAlignment.CenterRight,
            TextColor = ZigbeeColor.Current.LogicTextBlackColor,
            TextSize = 14,
        };
 
        public Button backBtn = new Button
        {
            X = Application.GetRealWidth(265 + 58 + 630) + Application.GetRealWidth(12),
            Y = Application.GetRealHeight(30 + 36),
            Width = Application.GetRealWidth(58),
            Height = Application.GetRealHeight(58),
            UnSelectedImagePath = "ZigeeLogic/next.png",
        };
 
        public Button lineBtn = new Button
        {
           // Y = Application.GetRealHeight(155),
            Width = Application.GetRealWidth(965),
            Height =1,// Application.GetRealHeight(5),
            X = Application.GetRealWidth(58),
            BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor,
        };
        public Button clickviewBtn = new Button
        {
            Height = Application.GetRealHeight(160),
        };
        public FrameLayout Show()
        {
            frameLayout.AddChidren(textBtn);
            frameLayout.AddChidren(titleBtn);
            frameLayout.AddChidren(backBtn);
            lineBtn.Y = frameLayout.Height - 1;
            frameLayout.AddChidren(lineBtn);
            frameLayout.AddChidren(clickviewBtn);
            return frameLayout;
 
        }
    }
}