using System;
|
using HDL_ON.UI.Music;
|
using Shared;
|
namespace HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView
|
{
|
public class MenuFramLayout : BaseFramLayout
|
{
|
|
public const int widthFrameLayout = 180;
|
public const int heightFrameLayout = 180;
|
public const int cornerValue = 90;
|
|
public MenuFramLayout(int width = widthFrameLayout, int height = heightFrameLayout)
|
{
|
this.Width = Application.GetMinRealAverage(width);
|
this.Height = Application.GetMinRealAverage(height);
|
this.Radius = (uint)Application.GetRealHeight(cornerValue);
|
this.BackgroundColor = MusicColor.ViewColor;
|
}
|
Button btnTop = new Button
|
{
|
Y = Application.GetMinRealAverage(16),
|
X = Application.GetMinRealAverage(78),
|
Width = Application.GetRealWidth(24),
|
Height = Application.GetRealHeight(20),
|
UnSelectedImagePath = "AksIcon/shang.png",
|
};
|
Button btnBottom = new Button
|
{
|
Y = Application.GetMinRealAverage(144),
|
X = Application.GetMinRealAverage(78),
|
Width = Application.GetRealWidth(24),
|
Height = Application.GetRealHeight(20),
|
UnSelectedImagePath = "AksIcon/xia.png",
|
};
|
Button btnLeft = new Button
|
{
|
Y = Application.GetMinRealAverage(78),
|
X = Application.GetMinRealAverage(16),
|
Width = Application.GetRealWidth(20),
|
Height = Application.GetRealHeight(24),
|
UnSelectedImagePath = "AksIcon/zuo.png",
|
|
};
|
Button btnRight = new Button
|
{
|
Y = Application.GetMinRealAverage(78),
|
X = Application.GetMinRealAverage(144),
|
Width = Application.GetRealWidth(20),
|
Height = Application.GetRealHeight(24),
|
UnSelectedImagePath = "AksIcon/you.png",
|
|
};
|
|
Button btnOkbj = new Button
|
{
|
Y = Application.GetMinRealAverage(52),
|
X = Application.GetMinRealAverage(52),
|
Width = Application.GetMinRealAverage(76),
|
Height = Application.GetMinRealAverage(76),
|
Radius = (uint)Application.GetRealHeight(38),
|
BackgroundColor = MusicColor.WhiteColor,
|
|
|
};
|
Button btnOk = new Button
|
{
|
Y = Application.GetMinRealAverage(76),
|
X = Application.GetMinRealAverage(76),
|
Width = Application.GetMinRealAverage(28),
|
Height = Application.GetMinRealAverage(28),
|
Radius = (uint)Application.GetRealHeight(14),
|
BackgroundColor = MusicColor.SelectedColor,
|
};
|
|
public void AddView(FrameLayout layout)
|
{
|
layout.AddChidren(this);
|
this.AddChidren(btnTop);
|
this.AddChidren(btnBottom);
|
this.AddChidren(btnLeft);
|
this.AddChidren(btnRight);
|
this.AddChidren(btnOkbj);
|
this.AddChidren(btnOk);
|
|
|
}
|
}
|
}
|