using System; using System.Collections.Generic; using System.Text; using Shared; using Shared.SimpleControl; using Shared.SimpleControl.R; using Shared.SimpleControl.Pad; using System.Xml; using Shared.Net; using SmartHome.UI.SimpleControl.Pad.Music; namespace Shared.SimpleControl.Pad.Music { /// /// 本地音乐 /// class A31LocalMusic : FrameLayout { /// /// 歌曲 /// Button songs; /// /// 歌手 /// Button artists; /// /// 专辑 /// Button albums; bool isExited; public void Show (A31MusicModel a31, FrameLayout SettingView, FrameLayout PalyPage) { var topFrameLayout = new FrameLayout { Height = Application.GetRealHeight (100), BackgroundColor = SkinStyle.Current.MainColor, }; AddChidren (topFrameLayout); var LocallistName = new Button { TextID = MyInternationalizationString.LocalMusic, }; topFrameLayout.AddChidren (LocallistName); 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 (1536 - 110 - 100 - 150); middle.BackgroundColor = 0xff2F2F2F; AddChidren (middle); #region 本地音乐 List