黄学彪
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
{
    public class CompleteView
    {
        public FrameLayout fraView = new FrameLayout
        {
            Width = Application.GetRealWidth(1080),
            Height = Application.GetRealHeight(140 + 320 + 70),
            Y = Application.GetRealHeight(Method.H - 530),
            BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor,
            // Radius = (uint)Application.GetRealHeight(60),
        };
        #region  -------取消   完成
        public RowLayout titleRow = new RowLayout
        {
            Height = Application.GetRealHeight(140),
            LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor,
        };
        public Button Btncancel = new Button
        {
            TextID = MyInternationalizationString.cancel,
            TextColor = ZigbeeColor.Current.LogicBtnCancelColor,
            Height = Application.GetRealHeight(140),
            Width = Application.GetRealWidth(150),
            X = Application.GetRealWidth(80),
            TextAlignment = TextAlignment.CenterLeft,
            TextSize = 14,
 
        };
        public Button Btntitle = new Button
        {
            //TextID = MyInternationalizationString.type,
            TextColor = ZigbeeColor.Current.LogicBtnTypeColor,
            Height = Application.GetRealHeight(140),
            Width = Application.GetRealWidth(580),
            TextAlignment = TextAlignment.Center,
            X = Application.GetRealWidth(230+20),
            TextSize = 16,
 
        };
        public Button Btncomplete = new Button
        {
            TextID = MyInternationalizationString.complete,
            TextColor = ZigbeeColor.Current.LogicBtnCompleteColor,
            Height = Application.GetRealHeight(140),
            Width = Application.GetRealWidth(150),
            TextAlignment = TextAlignment.CenterRight,
            X = Application.GetRealWidth(850),
            TextSize = 14,
 
        };
        #endregion
       
        public FrameLayout Show(int n)
        {
            //n多少行
            fraView.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
            fraView.Height = Application.GetRealHeight(1+140 + 70 + 160 * n);//1作用就是覆盖底色
            fraView.Y = Application.GetRealHeight(1920 - 140 - 70 - 160 * n);
            fraView.AddChidren(titleRow);
            fraView.AddChidren(Btncancel);
            fraView.AddChidren(Btntitle);
            fraView.AddChidren(Btncomplete);
            return fraView;
        }
 
    }
}