using System;
|
using System.Collections.Generic;
|
using HDL_ON.UI.Music;
|
using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView;
|
using Shared;
|
using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage;
|
namespace HDL_ON.UI.UI2.FuntionControlView.Aks
|
{
|
/// <summary>
|
/// 功放界面
|
/// </summary>
|
public class GFPage : BaseFramLayout
|
{
|
public GFPage()
|
{
|
}
|
|
public Action<IntType> action;
|
CornerFramLayout cornerFram;
|
TypeMultiFramLayout typeMultiFramLayout;
|
|
public void Show()
|
{
|
//初始化UI
|
this.InitUI();
|
//初始化事件
|
this.EventListener();
|
//读取数据
|
this.ReadData();
|
|
}
|
|
private void ReadData()
|
{
|
|
}
|
|
private void EventListener()
|
{
|
cornerFram.selectAction += (value) =>
|
{
|
Console.WriteLine("1");
|
};
|
|
typeMultiFramLayout.SetLeftFlClickListener((f) =>
|
{
|
SxqPage sxqPage = new SxqPage();
|
MainPage.BasePageView.AddChidren(sxqPage);
|
MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
|
sxqPage.Show();
|
|
});
|
|
typeMultiFramLayout.SetRightFlClickListener((f) =>
|
{
|
Console.WriteLine("4");
|
action?.Invoke(IntType.HiFi);
|
});
|
|
}
|
|
private void InitUI()
|
{
|
this.BackgroundColor = MusicColor.ViewColor;
|
Button btnTitle = new Button
|
{
|
Y = Application.GetRealHeight(16),
|
X = Application.GetRealWidth(16),
|
Height = Application.GetRealHeight(22),
|
Width = Application.GetRealWidth(200),
|
TextAlignment = TextAlignment.CenterLeft,
|
TextColor = MusicColor.TextColor,
|
TextSize = TextSize.Text16,
|
TextID = StringId.gongfan,
|
};
|
this.AddChidren(btnTitle);
|
|
cornerFram = new CornerFramLayout(343, 452, 4, 17);
|
cornerFram.X = Application.GetRealWidth(16);
|
cornerFram.Y = btnTitle.Bottom + Application.GetRealHeight(16);
|
this.AddChidren(cornerFram);
|
cornerFram.SetList(cornerFram.GetTestList(17));
|
cornerFram.SetMargin(16, 0, 16, 0);
|
cornerFram.LoadButtonPage();
|
|
|
CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 72, 0, 17);
|
cornerBottomFram.X = Application.GetRealWidth(16);
|
cornerBottomFram.Y = cornerFram.Bottom + Application.GetRealHeight(16);
|
cornerBottomFram.BackgroundColor = MusicColor.WhiteColor;
|
cornerBottomFram.Radius = (uint)Application.GetRealHeight(17);
|
this.AddChidren(cornerBottomFram);
|
|
typeMultiFramLayout = new TypeMultiFramLayout();
|
typeMultiFramLayout.multiFramLayout.Gravity = Gravity.Center;
|
typeMultiFramLayout.AddView(cornerBottomFram);
|
typeMultiFramLayout.btnBottonRightName.TextID = StringId.gongfan;
|
|
this.AdjustRealHeight(16);
|
}
|
}
|
}
|