From c26c06ef4a22d6fb9e59dc734abca92fa8a23c47 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期五, 05 六月 2020 17:41:00 +0800 Subject: [PATCH] 2020-06-05-02 --- HDL_ON/UI/Music/A31MyListMusic.cs | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/Music/A31MyListMusic.cs b/HDL_ON/UI/Music/A31MyListMusic.cs index 302f73e..37266dc 100644 --- a/HDL_ON/UI/Music/A31MyListMusic.cs +++ b/HDL_ON/UI/Music/A31MyListMusic.cs @@ -65,10 +65,12 @@ //闃叉姝屾墜鍚嶅瓧涓虹┖鎶涘紓甯� songs.Artist = " "; } - FrameLayout musicViewFl = new FrameLayout + RowLayout musicViewFl = new RowLayout { Width = Application.GetRealWidth(375), Height = Application.GetRealHeight(44), + LineColor = Color.WhiteColor, + SubViewWidth = Application.GetRealWidth(90),//鏀瑰彉缂栬緫鎺т欢瀹藉害澶氬皯锛� }; middViewLayout.AddChidren(musicViewFl); //鍒楄〃褰撳墠鎾斁闊充箰鍥炬爣 @@ -177,7 +179,21 @@ { loveIcon.IsSelected = false; } - + ///鍒犻櫎鎺т欢 + var delBtn = new Button + { + BackgroundColor = Color.MusicDelColor, + Text = Language.StringByID(StringId.delMusic), + TextColor = Color.WhiteColor, + TextSize = TextSize.Text16, + }; + musicViewFl.AddRightView(delBtn); + delBtn.MouseUpEventHandler += (sender, e) => + { + fileListInfo.MusicInfoList.Remove(songs); + A31MusicModel.Save(); + musicViewFl.RemoveFromParent(); + }; //娣诲姞鍒版垜鐨勫垪琛� Button addIcon = new Button { @@ -363,7 +379,7 @@ sb.AppendLine("&lt;dc:title&gt;" + tempMusicInfo.Title + "&lt;/dc:title&gt;"); sb.AppendLine("&lt;dc:creator&gt;DJ Sanny J&lt;/dc:creator&gt;"); - sb.AppendLine("&lt;upnp:artist&gt;" + tempMusicInfo.Artist + "&lt;/upnp:artist&gt;"); + sb.AppendLine("&lt;upnp:artist&gt;" + listName + "&lt;/upnp:artist&gt;"); sb.AppendLine("&lt;upnp:album&gt;" + tempMusicInfo.Album + "&lt;/upnp:album&gt;"); sb.AppendLine("&lt;upnp:albumArtURI&gt;unknown&lt;/upnp:albumArtURI&gt;"); sb.AppendLine("&lt;/item&gt;"); -- Gitblit v1.8.0