黄学彪
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
using System;
using System.Collections.Generic;
using Shared.Common;
using Shared.R;
using ZigBee.Device;
namespace Shared.Phone.Device.Logic
{
    public class FunView
    {
        #region  ----功能块控件----
        public FrameLayout funFrameLayout = new FrameLayout
        {
            Height = Application.GetRealHeight(160),
            BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor,
        };
        public Button iconBtn = new Button
        {
            Width = Application.GetMinRealAverage(81),
            Height = Application.GetMinRealAverage(81),
            X = Application.GetRealWidth(58),
            Y = Application.GetRealHeight(55),
            //UnSelectedImagePath = $"ZigeeLogic/{iocn}.png",
        };
        public Button funnameBtn = new Button
        {
            //Text = Language.StringByID(MyInternationalizationString.timecondition),
            TextAlignment = TextAlignment.CenterLeft,
            TextColor = ZigbeeColor.Current.LogicTextBlackColor,
            TextSize = 15,
            Y = Application.GetRealHeight(30),
            X = Application.GetRealWidth(176),
            Height = Application.GetRealHeight(130),
            Width = Application.GetRealWidth(400),
        };
        public Button funnextBtn = new Button
        {
            Width = Application.GetMinRealAverage(58),
            Height = Application.GetMinRealAverage(58),
            UnSelectedImagePath = "ZigeeLogic/next.png",
            X = Application.GetRealWidth(789 + 176),
            Y = Application.GetRealHeight(30 + 36),
        };
        public Button lineBtn = new Button
        {
            Width = Application.GetRealWidth(850),
            Height =1,
            X = Application.GetRealWidth(176),
            BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor,
        };
        public Button clickviewBtn = new Button
        {
            Height = Application.GetRealHeight(160),
        };
 
        public FrameLayout FunFrameView()
        {
            funFrameLayout.AddChidren(iconBtn);
            funFrameLayout.AddChidren(funnameBtn);
            funFrameLayout.AddChidren(funnextBtn);
            lineBtn.Y = funFrameLayout.Height - 1;
            funFrameLayout.AddChidren(lineBtn);
            funFrameLayout.AddChidren(clickviewBtn);
            return funFrameLayout;
        }
 
        
        #endregion
    }
}