using System; namespace Shared.Phone.Device.Logic.LogicView { public class RoomClickView { public RoomClickView() { } /// /// 父控件 /// public FrameLayout fra = new FrameLayout { Height = Application.GetRealHeight(204), Width = Application.GetRealWidth(245), }; /// /// 背景图片控件 /// 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), }; /// /// 房间名字控件 /// 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); } } }