using System;
|
using Shared;
|
using HDL_ON.UI.CSS;
|
|
namespace HDL_ON.UI
|
{
|
/// <summary>
|
/// 问题列表页面
|
/// 功能问题、场景问题、APP使用辅助
|
/// </summary>
|
public class QuestionListPage : FrameLayout
|
{
|
/// <summary>
|
/// bodyView
|
/// </summary>
|
FrameLayout bodyView;
|
/// <summary>
|
/// 当前
|
/// </summary>
|
VerticalScrolViewLayout bodyScrolView;
|
/// <summary>
|
/// emptyTipView
|
/// </summary>
|
EmptyTipView emptyTipView;
|
|
/// <summary>
|
///
|
/// </summary>
|
public QuestionListPage()
|
{
|
bodyView = this;
|
}
|
|
/// <summary>
|
/// 加载显示网页
|
/// </summary>
|
/// <param name="titleId"></param>
|
public void LoadPage(int titleId)
|
{
|
new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView();
|
|
int bodyY = Application.GetRealHeight(64);
|
bodyScrolView = new VerticalScrolViewLayout()
|
{
|
Y = bodyY,
|
Height = bodyView.Height - bodyY,
|
BackgroundColor = CSS_Color.MainBackgroundColor,
|
};
|
bodyView.AddChidren(bodyScrolView);
|
|
AddEmptyTipView();
|
}
|
|
/// <summary>
|
/// 添加内容为空提示页面
|
/// </summary>
|
void AddEmptyTipView()
|
{
|
emptyTipView = new EmptyTipView()
|
{
|
Gravity = Gravity.Center
|
};
|
bodyView.AddChidren(emptyTipView);
|
}
|
}
|
}
|