using Shared;
using Shared.SimpleControl;
using Shared.SimpleControl.R;
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace Shared.SimpleControl.Pad.Music
{
///
/// DLNA服务器播放音乐列表
///
class A31DlnaListMusic : FrameLayout
{
bool isExited;
public void show (DLNAServer dlnaServer, string listName, List list, FrameLayout MusicSourcePage, FrameLayout PalyMusicPage)
{
var topFrameLayout = new FrameLayout {
Height = Application.GetRealHeight (100),
BackgroundColor = SkinStyle.Current.MainColor,
};
AddChidren (topFrameLayout);
var musiclist = new Button {
Text = listName,
};
topFrameLayout.AddChidren (musiclist);
var back = new Button {
Width = Application.GetRealWidth (82),
Height = Application.GetRealHeight (89),
X = Application.GetRealWidth (10),
Gravity = Gravity.CenterVertical,
UnSelectedImagePath = "MusicIcon/HomepageBack.png",
};
topFrameLayout.AddChidren (back);
back.MouseDownEventHandler += (sender, e) => {
RemoveFromParent ();
isExited = true;
};
VerticalScrolViewLayout middle = new VerticalScrolViewLayout ();
middle.Y = topFrameLayout.Bottom;
middle.Height = Application.GetRealHeight (Application.DesignHeight - 100 - 150);
middle.BackgroundColor = 0xff2F2F2F;
AddChidren (middle);
var listMusicInfo = new List ();
List