xm
2020-08-14 a45fe56aeeac8f28a9891b83362954067c8166dc
ZigbeeApp/Shared/Phone/Device/Logic/LogicView/RoomClickView.cs
New file
@@ -0,0 +1,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.GetRealHeight(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);
        }
    }
}