using System;
using System.Collections.Generic;
using System.Text;
using Shared;
using Shared.SimpleControl.R;
namespace Shared.SimpleControl.Pad.Music
{
///
/// SD/USB界面
///
class A31Usbmusic : FrameLayout
{
Button seletcedbutton = null;
bool isExited;
public void show (A31MusicModel a31, List musicInfoList, FrameLayout MusicSourcePage, FrameLayout PalyMusicPage)
{
var topFrameLayout = new FrameLayout {
Height = Application.GetRealHeight (100),
BackgroundColor = SkinStyle.Current.MainColor,
};
AddChidren (topFrameLayout);
var SDlistName = new Button {
TextID = MyInternationalizationString.SDcard,
};
topFrameLayout.AddChidren (SDlistName);
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;
this.AddChidren (middle);
EventHandler ddd = (sender, e) => {
if (seletcedbutton != null) {
seletcedbutton.Parent.BackgroundColor = 0xff000000;
}
seletcedbutton = sender as Button;
};
int number = 0;
List