From c209a50cabf524c146fb2d02ce09cfc46c7c2f70 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 26 五月 2020 13:49:02 +0800 Subject: [PATCH] 2020-05-26-1 --- HDL_ON/UI/Music/A31MyList.cs | 30 +++++++++++++++++------------- 1 files changed, 17 insertions(+), 13 deletions(-) diff --git a/HDL_ON/UI/Music/A31MyList.cs b/HDL_ON/UI/Music/A31MyList.cs index 597b9d9..ef38e27 100644 --- a/HDL_ON/UI/Music/A31MyList.cs +++ b/HDL_ON/UI/Music/A31MyList.cs @@ -21,7 +21,7 @@ this.RemoveFromParent(); }; - //鎾斁/鏆傚仠鍥炬爣 + Button addIconBtn = new Button { X = Application.GetRealWidth(336), @@ -61,7 +61,9 @@ } - + /// <summary> + /// + /// </summary> void FileView() { middViewLayout.RemoveAll(); @@ -70,7 +72,7 @@ var list = A31MusicModel.Current.FileLists[i]; RowLayout addFlieRow = new RowLayout { - Height = Application.GetRealHeight(122), + Height = Application.GetRealHeight(104), LineColor = Color.WhiteColor, SubViewWidth = Application.GetRealWidth(90),//鏀瑰彉缂栬緫鎺т欢瀹藉害澶氬皯锛� }; @@ -80,18 +82,18 @@ { X = Application.GetRealWidth(16), Y = Application.GetRealHeight(8), - Width = Application.GetMinRealAverage(106), - Height = Application.GetMinRealAverage(106), + Width = Application.GetMinRealAverage(88), + Height = Application.GetMinRealAverage(88), UnSelectedImagePath = "MusicIcon/fileList.png", }; addFlieRow.AddChidren(fileIconBtn); //鎾斁/鏆傚仠鍥炬爣 Button playIconBtn = new Button { - X = Application.GetRealWidth(94), - Y = Application.GetRealHeight(86), - Width = Application.GetMinRealAverage(28), - Height = Application.GetMinRealAverage(28), + X = Application.GetRealWidth(78), + Y = Application.GetRealHeight(70), + Width = Application.GetMinRealAverage(24), + Height = Application.GetMinRealAverage(24), UnSelectedImagePath = "MusicIcon/filePause.png", SelectedImagePath = "MusicIcon/filePlay.png", }; @@ -105,13 +107,13 @@ Button fileNameBtn = new Button { X = fileIconBtn.Right + Application.GetRealWidth(16), - Y = Application.GetRealHeight(51), + Y = Application.GetRealHeight(42), Width = Application.GetRealWidth(217), Height = Application.GetRealHeight(20), TextColor = Color.TextColor, TextSize = TextSize.Text14, TextAlignment = TextAlignment.CenterLeft, - Text = list.ListName, + Text= list.ListName, }; addFlieRow.AddChidren(fileNameBtn); ///缂栬緫鎺т欢 @@ -157,9 +159,10 @@ { new View.TipView().TipBox(StringId.tip, StringId.delMusicFile, () => { - addFlieRow.RemoveFromParent(); A31MusicModel.Current.FileLists.Remove(list); A31MusicModel.Save(); + addFlieRow.RemoveFromParent(); + }); }; @@ -168,7 +171,7 @@ { X = fileIconBtn.Right + Application.GetRealWidth(16), Width = Application.GetRealWidth(375 - 138), - Height = Application.GetRealHeight(122), + Height = Application.GetRealHeight(104), }; addFlieRow.AddChidren(clickBtn); clickBtn.MouseUpEventHandler += (sender, e) => @@ -177,6 +180,7 @@ MainPage.BasePageView.AddChidren(a31MyListMusic); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; a31MyListMusic.Show(list); + a31MyListMusic.UpdateSelectedMusic(); }; } -- Gitblit v1.8.0