using System; using System.Collections.Generic; using System.Text; using Shared; using Shared.Net; using Shared.SimpleControl; using Shared.SimpleControl.Pad.Music; using Shared.SimpleControl.R; namespace SmartHome { public class A31AddListMusic : FrameLayout { bool isExited; public void Show (string listname, List musicInfoList) { var topFrameLayout = new FrameLayout { Height = Application.GetRealHeight (100), BackgroundColor = SkinStyle.Current.MainColor, }; AddChidren (topFrameLayout); var LocallistName = new Button { Text = listname, }; 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 fra = new FrameLayout { Y = topFrameLayout.Bottom, Height = Application.GetRealHeight (Application.DesignHeight - 100-150), BackgroundColor = 0xff2F2F2F, }; AddChidren (fra); var middle = new VerticalScrolViewLayout (); fra.AddChidren (middle); List