gxc
2019-11-18 1e76fa5a69bc478b3eb5738546aeb51b8fd6f7c9
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
104
105
106
using System;
using Shared.Common;
using Shared.Phone.Device.CommonForm;
 
namespace Shared.Phone.UserView
{
    public class LoginLoading : FrameLayout
    {
        public LoginLoading()
        {
            BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor;
            Tag = "Login";
        }
        /// <summary>
        /// show
        /// </summary>
        public void Show()
        {
            var topFrameLayout = new FrameLayout()
            {
                Y = Application.GetRealHeight(60),
                Height = Application.GetRealHeight(127),
                BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor,
            };
            AddChidren(topFrameLayout);
 
            var floor = new Button
            {
                X = Application.GetRealWidth(CommonFormResouce.X_Left),
                Width = Application.GetMinRealAverage(69),
                Height = Application.GetMinRealAverage(69),
                Gravity = Gravity.CenterVertical,
                UnSelectedImagePath = "Item/Floor.png"
            };
            topFrameLayout.AddChidren(floor);
 
            var messageBtn = new Button()
            {
                X = Application.GetRealWidth(953),
                Width = Application.GetMinRealAverage(69),
                Height = Application.GetMinRealAverage(69),
                Gravity = Gravity.CenterVertical,
                UnSelectedImagePath = "Item/Message.png",
                SelectedImagePath = "Item/MessageSelected.png"
            };
            topFrameLayout.AddChidren(messageBtn);
 
            var roomBG = new Button()
            {
                Y = Application.GetRealHeight(302),
                Width = Application.GetRealWidth(CommonPage.AppRealWidth - CommonPage.XLeft * 2),
                Height = Application.GetMinRealAverage(550),
                Gravity = Gravity.CenterHorizontal,
                UnSelectedImagePath = "RoomIcon/1.JPG",
            };
            AddChidren(roomBG);
 
 
            var functionSceneView = new FrameLayout()
            {
                Y = Application.GetRealHeight(861),
                Width = Application.GetRealWidth(832),
                Height = Application.GetRealHeight(167),
                Gravity = Gravity.CenterHorizontal,
                BackgroundImagePath = "Item/SceneFunctionBG.png"
            };
            AddChidren(functionSceneView);
 
            var sceneBtn = new Button()
            {
                X = Application.GetRealWidth(30),
                Y = Application.GetRealHeight(12),
                Width = Application.GetRealWidth(350),
                Height = Application.GetRealHeight(100),
                TextColor = ZigbeeColor.Current.GXCTextGrayColor3,
                SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor,
                TextID = R.MyInternationalizationString.Scence,
                IsSelected = true
            };
            functionSceneView.AddChidren(sceneBtn);
 
            var functionBtn = new Button()
            {
                X = Application.GetRealWidth(430),
                Y = Application.GetRealHeight(12),
                Width = Application.GetRealWidth(360),
                Height = Application.GetRealHeight(100),
                TextColor = ZigbeeColor.Current.GXCTextGrayColor3,
                SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor,
                TextID = R.MyInternationalizationString.Function,
                IsSelected = false
            };
            functionSceneView.AddChidren(functionBtn);
 
            var functionSceneBodyView = new FrameLayout()
            {
                Y = functionSceneView.Bottom,
                Height = Application.GetRealHeight(750),
                Gravity = Gravity.CenterHorizontal,
                BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor
            };
            AddChidren(functionSceneBodyView);
 
        }
    }
}