xm
2020-07-21 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d
ZigbeeApp/Shared/Phone/Device/Logic/LogicView/TypeView.cs
New file
@@ -0,0 +1,73 @@
using System;
using System.Collections.Generic;
using Shared.Common;
using Shared.R;
using ZigBee.Device;
namespace Shared.Phone.Device.Logic.LogicView
{
    public class TypeView
    {
        public FrameLayout frameLayout = new FrameLayout
        {
            Height = Application.GetRealHeight(160),
            BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor,
        };
        public Button textBtn = new Button
        {
            X = Application.GetRealWidth(58),
            Y = Application.GetRealHeight(30),
            Text = Language.StringByID(MyInternationalizationString.type),
            TextAlignment = TextAlignment.CenterLeft,
            TextColor = ZigbeeColor.Current.LogicTextBlackColor,
            Width = Application.GetRealWidth(265),
            Height = Application.GetRealHeight(130),
            TextSize = 14,
        };
        public Button titleBtn = new Button
        {
            Y = Application.GetRealHeight(30),
            X = Application.GetRealWidth(265 + 58),
            Height = Application.GetRealHeight(130),
            Width = Application.GetRealWidth(630),
            TextAlignment = TextAlignment.CenterRight,
            TextColor = ZigbeeColor.Current.LogicTextBlackColor,
            TextSize = 14,
        };
        public Button backBtn = new Button
        {
            X = Application.GetRealWidth(265 + 58 + 630) + Application.GetRealWidth(12),
            Y = Application.GetRealHeight(30 + 36),
            Width = Application.GetRealWidth(58),
            Height = Application.GetRealHeight(58),
            UnSelectedImagePath = "ZigeeLogic/next.png",
        };
        public Button lineBtn = new Button
        {
           // Y = Application.GetRealHeight(155),
            Width = Application.GetRealWidth(965),
            Height =1,// Application.GetRealHeight(5),
            X = Application.GetRealWidth(58),
            BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor,
        };
        public Button clickviewBtn = new Button
        {
            Height = Application.GetRealHeight(160),
        };
        public FrameLayout Show()
        {
            frameLayout.AddChidren(textBtn);
            frameLayout.AddChidren(titleBtn);
            frameLayout.AddChidren(backBtn);
            lineBtn.Y = frameLayout.Height - 1;
            frameLayout.AddChidren(lineBtn);
            frameLayout.AddChidren(clickviewBtn);
            return frameLayout;
        }
    }
}