using System;
|
using HDL_ON.UI.UI2.Intelligence.Automation.LogicView;
|
using Shared;
|
namespace HDL_ON.UI.UI2.FuntionControlView.Video.View
|
{
|
public class FrameLayout60
|
{
|
/// <summary>
|
/// 主控件View
|
/// </summary>
|
public FrameLayout frameLayout = new FrameLayout
|
{
|
Height = Application.GetRealHeight(60),
|
//BackgroundColor = CSS.CSS_Color.view,
|
};
|
|
/// <summary>
|
/// 文本描述
|
/// </summary>
|
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= "门口机呼叫",
|
TextID=StringId.menkoujihujiao,
|
TextAlignment = TextAlignment.CenterLeft,
|
};
|
/// <summary>
|
/// 时间文本描述
|
/// </summary>
|
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",
|
};
|
/// <summary>
|
/// 状态文本
|
/// </summary>
|
public Button btnStateText = 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 = "已接听, 已开锁",
|
};
|
|
|
/// <summary>
|
/// 图标
|
/// </summary>
|
public Button btnNextIcon = new Button
|
{
|
Width = Application.GetRealWidth(102),
|
Height = Application.GetRealWidth(56),
|
UnSelectedImagePath = "LogicIcon/next.png",
|
X = Application.GetRealWidth(191),
|
Visible=false,
|
};
|
|
/// <summary>
|
/// 线
|
/// </summary>
|
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),
|
};
|
/// <summary>
|
/// View的方法
|
/// </summary>
|
/// <returns></returns>
|
public FrameLayout FLayoutView()
|
{
|
frameLayout.AddChidren(btnText);
|
frameLayout.AddChidren(btnTime);
|
frameLayout.AddChidren(btnStateText);
|
frameLayout.AddChidren(btnNextIcon);
|
btnLine.Y = frameLayout.Height - 1;
|
frameLayout.AddChidren(btnLine);
|
frameLayout.AddChidren(btnClick);
|
return frameLayout;
|
}
|
}
|
}
|