陈嘉乐
2020-05-25 258d1675d02d3610cb302514fb5c86ab68ee6571
HDL_ON/UI/Music/A31LoveList.cs
@@ -45,7 +45,7 @@
            {
                RowLayout addFlieRow = new RowLayout
                {
                    Height = Application.GetRealHeight(122),
                    Height = Application.GetRealHeight(104),
                    LineColor = Color.WhiteColor,
                    SubViewWidth = Application.GetRealWidth(90),//改变编辑控件宽度多少;
                };
@@ -55,16 +55,16 @@
                {
                    X = Application.GetRealWidth(16),
                    Y = Application.GetRealHeight(8),
                    Width = Application.GetMinRealAverage(106),
                    Height = Application.GetMinRealAverage(106),
                    Width = Application.GetMinRealAverage(88),
                    Height = Application.GetMinRealAverage(88),
                };
                addFlieRow.AddChidren(fileIconBtn);
                //播放/暂停图标
                Button playIconBtn = new Button
                {
                    X = Application.GetRealWidth(94),
                    Y = Application.GetRealHeight(86),
                    X = Application.GetRealWidth(78),
                    Y = Application.GetRealHeight(70),
                    Width = Application.GetMinRealAverage(24),
                    Height = Application.GetMinRealAverage(24),
                    UnSelectedImagePath = "MusicIcon/filePause.png",
@@ -80,7 +80,7 @@
                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,
@@ -90,12 +90,12 @@
                addFlieRow.AddChidren(fileNameBtn);
                if (i == 0)
                {
                    fileIconBtn.UnSelectedImagePath = "MusicIcon/loveList.png";
                    fileIconBtn.UnSelectedImagePath = "MusicIcon/loveMusic.png";
                    fileNameBtn.TextID = StringId.a31Music;
                }
                else
                {
                    fileIconBtn.UnSelectedImagePath = "MusicIcon/radioList.png";
                    fileIconBtn.UnSelectedImagePath = "MusicIcon/loveRadio.png";
                    fileNameBtn.TextID = StringId.radioLove;
                }
@@ -103,28 +103,30 @@
                {
                    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) =>
                {
                    List<MusicInfo> loveList = new List<MusicInfo>();
                    loveList.Clear();
                    if (fileNameBtn.Text == Language.StringByID(StringId.a31Music))
                    {
                        ///喜爱音乐列表
                        loveList.AddRange(A31MusicModel.Current.LoveMusicInfoList);
                        A31LoveMusicList a31LoveMusicList = new A31LoveMusicList();
                        MainPage.BasePageView.AddChidren(a31LoveMusicList);
                        MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                        a31LoveMusicList.Show();
                        a31LoveMusicList.UpdateSelectedMusic();
                    }
                    else
                    {
                        ///喜爱电台列表
                        loveList.AddRange(A31MusicModel.Current.LoveRadioInfoList);
                    }
                    A31LoveMusicList a31LoveMusicList = new A31LoveMusicList();
                    MainPage.BasePageView.AddChidren(a31LoveMusicList);
                        A31LoveRadioList a31LoveRadioList = new A31LoveRadioList();
                        MainPage.BasePageView.AddChidren(a31LoveRadioList);
                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                    a31LoveMusicList.Show(fileNameBtn.Text, loveList);
                    a31LoveMusicList.UpdateSelectedMusic();
                        a31LoveRadioList.Show();
                        a31LoveRadioList.UpdateSelectedMusic();
                    }
                };
            }