using System;
using System.Collections.Generic;
using System.Text;
using Shared;
using Shared.Net;
namespace HDL_ON.UI.Music
{
public class A31LoveMusicList : FrameLayout
{
public A31LoveMusicList()
{
Tag = "Music";
}
VerticalRefreshLayout middViewLayout;
///
/// 先加载界面出来
///
public void Show()
{
#region 界面布局------
this.BackgroundColor = MusicColor.ViewColor;
var topView = new TopView();
this.AddChidren(topView.TopFLayoutView());
topView.topNameBtn.TextID = StringId.myLove;//a31Music;
topView.clickBackBtn.MouseUpEventHandler += (sender, e) =>
{
this.RemoveFromParent();
};
middViewLayout = new VerticalRefreshLayout
{
BackgroundColor = MusicColor.WhiteColor,
Y = topView.fLayout.Bottom,
Height = Application.GetRealHeight(H_W.H - H_W.T_Height),
};
this.AddChidren(middViewLayout);
middViewLayout.BeginHeaderRefreshingAction += () =>
{
middViewLayout.EndHeaderRefreshing();
};
#endregion
MusicView(Language.StringByID(StringId.myLove));
}
///
/// 加载数据的方法
///
public void MusicView(string listName)
{
middViewLayout.RemoveAll();
UI2.FuntionControlView.Music.UpdateThread.playMusuc(middViewLayout, "我的最爱", listName, A31MusicModel.Current.LoveMusicInfoList, A31MusicModel.Current);
}
///
/// 定时更新当前播放音乐
///
public void UpdateSelectedMusic()
{
UI2.FuntionControlView.Music.UpdateThread.updateThread(this, middViewLayout,A31MusicModel.Current);
}
}
}