using System;
using System.Collections.Generic;
using System.Text;
using Shared;
using Shared.SimpleControl.R;
using Shared.SimpleControl.Pad;
using Shared.SimpleControl;
using Shared.Net;
namespace Shared.SimpleControl.Pad.Music
{
///
///我的喜爱
///
class A31LikeList : FrameLayout
{
///
/// 喜爱音乐
///
Button mylike;
///
/// 喜爱电台
///
Button mycn;
bool isExited;
public void Show ()
{
var topFrameLayout = new FrameLayout {
Height = Application.GetRealHeight (100),
BackgroundColor = SkinStyle.Current.MainColor,
};
AddChidren (topFrameLayout);
var lovelistName = new Button {
TextID = MyInternationalizationString.Musiclike,
};
topFrameLayout.AddChidren (lovelistName);
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 TtopFrameLayout = new FrameLayout {
Height = Application.GetRealHeight (100),
Y = Application.GetRealHeight (100),
BackgroundColor = 0xFF121212,
};
AddChidren (TtopFrameLayout);
//喜爱音乐
var mylikerow = new RowLayout {
Height = Application.GetRealHeight (100),
Width = Application.GetRealWidth (288),
};
TtopFrameLayout.AddChidren (mylikerow);
mylike = new Button {
TextID = MyInternationalizationString.likemusic,
TextColor = 0xffFE5E00,
};
mylikerow.AddChidren (mylike);
var ther = new Button {
Height = Application.GetRealHeight (100),
Width = Application.GetRealWidth (2),
X = Application.GetRealHeight (289),
BackgroundColor = 0xFF2F2F2F,
};
TtopFrameLayout.AddChidren (ther);
//喜爱电台
var mycnrow = new RowLayout {
Height = Application.GetRealHeight (100),
X = Application.GetRealWidth (288),
Width = Application.GetRealWidth (290),
};
TtopFrameLayout.AddChidren (mycnrow);
mycn = new Button {
TextID = MyInternationalizationString.likecn,
};
mycnrow.AddChidren (mycn);
var likelist = new VerticalScrolViewLayout {
Height = Application.GetRealHeight (Application.DesignHeight - 100 - 100-150),
Y = TtopFrameLayout.Bottom,
BackgroundColor = 0xff2F2F2F,
};
AddChidren (likelist);
#region 喜爱音乐
List