using System; using HDL_ON.UI.UI2.Intelligence.Automation.LogicView; using Shared; namespace HDL_ON.UI.UI2.FuntionControlView.Video.View { public class FrameLayout60 { /// /// 主控件View /// public FrameLayout frameLayout = new FrameLayout { Height = Application.GetRealHeight(60), //BackgroundColor = CSS.CSS_Color.view, }; /// /// 文本描述 /// public Button btnText = new Button { Y=Application.GetRealHeight(10), Width = Application.GetRealWidth(200), Height = Application.GetRealHeight(20), TextColor = CSS.CSS_Color.textColor, TextSize = TextSize.text14, Text= "门口机呼叫", TextAlignment = TextAlignment.CenterLeft, }; /// /// 时间文本描述 /// public Button btnTime = new Button { X=Application.GetRealWidth(82), Y = Application.GetRealHeight(10), Width = Application.GetRealWidth(120), Height = Application.GetRealHeight(20), TextColor = CSS.CSS_Color.textColor, TextSize = TextSize.text14, TextAlignment=TextAlignment.CenterLeft, Text = "15:01", }; /// /// 编辑文本 /// public Button btnEditText = new Button { Y = Application.GetRealHeight(32), Width = Application.GetRealWidth(260), Height = Application.GetRealHeight(17), TextSize = TextSize.text12, TextColor = CSS.CSS_Color.textCancelColor, TextAlignment = TextAlignment.CenterLeft, Text = "已接听, 已开锁", }; /// /// 图标 /// public Button btnNextIcon = new Button { Width = Application.GetRealWidth(102), Height = Application.GetRealWidth(56), UnSelectedImagePath = "LogicIcon/next.png", X = Application.GetRealWidth(191), Visible=false, }; /// /// 线 /// public Button btnLine = new Button { Width = Application.GetRealWidth(295), Height = 1, BackgroundColor = CSS.CSS_Color.viewLine, }; public Button btnClick = new Button { Height = Application.GetRealHeight(50), }; /// /// View的方法 /// /// public FrameLayout FLayoutView() { frameLayout.AddChidren(btnText); frameLayout.AddChidren(btnTime); frameLayout.AddChidren(btnEditText); frameLayout.AddChidren(btnNextIcon); btnLine.Y = frameLayout.Height - 1; frameLayout.AddChidren(btnLine); frameLayout.AddChidren(btnClick); return frameLayout; } } }