HDL Home App 第二版本 旧平台金堂用 正在使用
温居城
2021-10-27 993ecf49ae04ccea89f6bc4a32cfc0c45def1215
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
using System;
namespace Shared.Phone.Device.Logic.LogicView
{
    public class RoomClickView
    {
        public RoomClickView()
        {
 
        }
        /// <summary>
        /// 父控件
        /// </summary>
        public FrameLayout fra = new FrameLayout
        {
            Height = Application.GetRealHeight(204),
            Width = Application.GetRealWidth(245),
        };
        /// <summary>
        /// 背景图片控件
        /// </summary>
        public Button roombjBtn = new Button
        {
            Height = Application.GetRealWidth(72),
            Width = Application.GetRealWidth(170),
            UnSelectedImagePath = "ZigeeLogic/iconBackgroundColor1.png",
            SelectedImagePath = "ZigeeLogic/iconSelectedBackgroundColor1.png",
            Y = Application.GetRealHeight(60),
            X = Application.GetRealWidth(26),
        };
        /// <summary>
        /// 房间名字控件
        /// </summary>
        public Button roomnameBtn = new Button
        {
            Height = Application.GetRealHeight(49),
            Width = Application.GetRealWidth(125),
            TextColor = Common.ZigbeeColor.Current.LogicBtnCancelColor,
            SelectedTextColor = Common.ZigbeeColor.Current.LogicBlankBackgroundColor,
            Y = Application.GetRealHeight(72),
            X = Application.GetRealWidth(26 + 22),
 
        };
        public void Show(HorizontalScrolViewLayout HorizontalScrolViewLayout)
        {
            HorizontalScrolViewLayout.AddChidren(fra);
            fra.AddChidren(roombjBtn);
            fra.AddChidren(roomnameBtn);
        }
 
    }
}