HDL Home App 第二版本 旧平台金堂用 正在使用
陈嘉乐
2020-06-24 adb12dcdbb2ddaeac687c3aa9e57bb7ed459ab7e
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
 
using System;
using System.Collections.Generic;
using Shared.Common;
using Shared.R;
using ZigBee.Device;
 
namespace Shared.Phone.Device.Logic.LogicView
{
    public class LightView
    {
 
        public FrameLayout frameLayout = new FrameLayout
        {
            Height = Application.GetRealHeight(150),
        };
        public Button titleBtn = new Button
        {
            X = Application.GetRealWidth(58),
            Y = Application.GetRealHeight(34 + 20),
            Height = Application.GetRealHeight(58),
            Width = Application.GetRealWidth(400),
            //TextID = MyInternationalizationString.logicathomegarrison,
            TextAlignment = TextAlignment.CenterLeft,
            TextColor = ZigbeeColor.Current.LogicBtnSelectedColor,
            TextSize = 14,
            
        };
        public Button nextBtn = new Button
        {
            Width = Application.GetMinRealAverage(103),
            Height = Application.GetMinRealAverage(103),
            UnSelectedImagePath = "ZigeeLogic/next.png",
            X = Application.GetRealWidth(920),
            Y = Application.GetRealHeight(11 + 20),
        };
        public Button lineBtn = new Button
        {
            Width = Application.GetRealWidth(964),
            Height = 1,
            X = Application.GetRealWidth(54),
            BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor,
        };
        public Button clickviewBtn = new Button
        {
            Height = Application.GetRealHeight(150),
        };
        public FrameLayout Show()
        {
            frameLayout.AddChidren(titleBtn);
            frameLayout.AddChidren(nextBtn);
            lineBtn.Y = frameLayout.Height - 1;
            frameLayout.AddChidren(lineBtn);
            frameLayout.AddChidren(clickviewBtn);
            return frameLayout;
        }
 
    }
}