using System; using System.Collections.Generic; using System.Text; using Shared; using Shared.SimpleControl.R; using Shared.SimpleControl.Phone; using Shared.SimpleControl; using Shared.Net; namespace Shared.SimpleControl.Phone.Music { /// ///我的喜爱 /// class A31LikeList : FrameLayout { /// /// 喜爱音乐 /// Button mylike; /// /// 喜爱电台 /// Button mycn; bool isExited; public void Show (A31MusicModel a31) { AddChidren (new Button { Height = Application.GetRealHeight (36), BackgroundColor = SkinStyle.Current.MusicTopFrameLayout, }); var topFrameLayout = new FrameLayout { Height = Application.GetRealHeight (100), Y = Application.GetRealHeight (36), BackgroundColor = SkinStyle.Current.MusicTopFrameLayout, }; AddChidren (topFrameLayout); var lovelistName = new Button { TextID = MyInternationalizationString.Musiclike, TextColor=SkinStyle.Current.MusicTextColor, }; topFrameLayout.AddChidren (lovelistName); var hdl = new Button { Width = Application.GetRealWidth (154), Height = Application.GetRealHeight (90), X = Application.GetRealWidth (486), Gravity = Gravity.CenterVertical, UnSelectedImagePath = MainPage.LogoString, }; topFrameLayout.AddChidren (hdl); 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 (130), BackgroundColor = SkinStyle.Current.MusicMiddleBackgroundColor, }; AddChidren (TtopFrameLayout); //喜爱音乐 var mylikerow = new RowLayout { Height = Application.GetRealHeight (100), Width = Application.GetRealWidth (319), }; 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 (320), //BackgroundColor = 0xFF2F2F2F, BackgroundColor = SkinStyle.Current.MusicLineColor, }; TtopFrameLayout.AddChidren (ther); //喜爱电台 var mycnrow = new RowLayout { Height = Application.GetRealHeight (100), X = Application.GetRealWidth (320), Width = Application.GetRealWidth (321), }; TtopFrameLayout.AddChidren (mycnrow); mycn = new Button { TextID = MyInternationalizationString.likecn, TextColor=SkinStyle.Current.MusicTextColor, }; mycnrow.AddChidren (mycn); var likelist = new VerticalScrolViewLayout { Height = Application.GetRealHeight (Application.DesignHeight - 100 - 100 - 36), Y = TtopFrameLayout.Bottom, BackgroundColor =SkinStyle.Current.MusicVerticalScrolViewLayout, }; AddChidren (likelist); //d2d2d2 #region 喜爱音乐 List