using System;
|
using Shared.SimpleControl.Pad.Music;
|
|
namespace Shared.SimpleControl.Pad
|
{
|
public class UserDeviceToMusic :Shared.Dialog
|
{
|
FrameLayout bordorView;
|
VerticalScrolViewLayout RoomListScrolView;
|
PlayerPage playerPage = new PlayerPage();
|
|
|
|
public void ShowRoomMusciList ()
|
{
|
#region 标题
|
var topView = new FrameLayout () {
|
Y = Application.GetRealHeight (36),
|
Height = Application.GetRealHeight (90),
|
BackgroundColor = 0xFF2f2f2f
|
};
|
AddChidren (topView);
|
|
var title = new Button () {
|
TextAlignment = TextAlignment.Center,
|
Text = Language.StringByID (R.MyInternationalizationString.Music),
|
TextSize = 19,
|
};
|
topView.AddChidren (title);
|
|
var back = new Button () {
|
Height = Application.GetRealHeight (120),
|
Width = Application.GetRealWidth (95),
|
UnSelectedImagePath = "Item/Back.png",
|
SelectedImagePath = "Item/BackSelected.png",
|
Gravity = Gravity.CenterVertical,
|
};
|
topView.AddChidren (back);
|
back.MouseUpEventHandler += (sender, e) => {
|
playerPage.RemoveFromParent ();
|
Close ();
|
//UserMiddle.DeviceMode ();
|
};
|
var logo = new Button () {
|
Width = Application.GetRealWidth (154),
|
Height = Application.GetRealHeight (90),
|
X = Application.GetRealWidth (486),
|
UnSelectedImagePath = MainPage.LogoString,
|
};
|
topView.AddChidren (logo);
|
var btnl = new Button () {
|
Height = 1,
|
BackgroundColor = 0xFF2F2F2F,
|
Y = topView.Height - 1
|
};
|
topView.AddChidren (btnl);
|
#endregion
|
|
#region bordorView
|
bordorView = new FrameLayout () {
|
Width = Application.GetRealWidth (640),
|
Height = Application.GetRealHeight (Application.DesignHeight - 150),
|
Y = Application.GetRealHeight (150),
|
BackgroundColor = 0xff2F2F2F,
|
};
|
AddChidren (bordorView);
|
|
|
|
bordorView.AddChidren (playerPage);
|
|
#endregion
|
|
#region ControlBodyView
|
|
var controlBodyView = new FrameLayout () {
|
Width = Application.GetRealWidth (Application.DesignWidth) - bordorView.Width,
|
Height = Application.GetRealHeight (Application.DesignHeight - 150),
|
X = bordorView.Right,
|
Y = bordorView.Y,
|
//BackgroundColor = 0xFF121212
|
BackgroundImagePath = "MusicIcon/MusicBackgroun.png",
|
};
|
AddChidren (controlBodyView);
|
#endregion
|
|
playerPage.Show (controlBodyView, bordorView, false);
|
|
Show ();
|
}
|
|
}
|
}
|