using System;
using System.Collections.Generic;
using System.Text;
using Shared;
using Shared.SimpleControl;
using Shared.SimpleControl.R;
using Shared.SimpleControl.Phone;
using System.Xml;
using Shared.Net;
using SmartHome.UI.SimpleControl.Phone.Music;
namespace Shared.SimpleControl.Phone.Music
{
///
/// 本地音乐
///
class A31LocalMusic : FrameLayout
{
///
/// 歌曲
///
Button songs;
///
/// 歌手
///
Button artists;
///
/// 专辑
///
Button albums;
bool isExited;
public void Show (A31MusicModel a31)
{
AddChidren (new Button {
Height = Application.GetRealHeight (36),
BackgroundColor = SkinStyle.Current.MusicTopFrameLayout,
});
var topFrameLayout = new FrameLayout {
Height = Application.GetRealHeight (100),
Y = Application.GetRealHeight (36),
BackgroundColor = SkinStyle.Current.MusicTopFrameLayout,
};
AddChidren (topFrameLayout);
var LocallistName = new Button {
TextID = MyInternationalizationString.LocalMusic,
TextColor=SkinStyle.Current.MusicTextColor,
};
topFrameLayout.AddChidren (LocallistName);
var hdl = new Button {
Width = Application.GetRealWidth (154),
Height = Application.GetRealHeight (90),
X = Application.GetRealWidth (486),
Gravity = Gravity.CenterVertical,
UnSelectedImagePath = MainPage.LogoString,
};
topFrameLayout.AddChidren (hdl);
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;
};
var middle = new VerticalScrolViewLayout ();
middle.Y = topFrameLayout.Bottom;
middle.Height = Application.GetRealHeight (Application.DesignHeight - 136 - 110);
middle.BackgroundColor = SkinStyle.Current.MusicVerticalScrolViewLayout;
AddChidren (middle);
#region 本地音乐
List