陈嘉乐
2020-08-19 b764dff5c4f4a7b0cde45a8d3eb28ff2a315cc29
HDL_ON/UI/UI2/FuntionControlView/Music/View/DialogView.cs
@@ -15,7 +15,7 @@
            //主控件
            Dialog dialog = new Dialog()
            {
                BackgroundColor = Color.PopupBackgroundColor,
                BackgroundColor = MusicColor.PopupBackgroundColor,
            };
            dialog.Show();
            //父控件
@@ -32,7 +32,7 @@
                Y = Application.GetRealHeight(187),
                Width = Application.GetRealWidth(344),
                Height = Application.GetRealHeight(460),
                BackgroundColor = Color.WhiteColor,
                BackgroundColor = MusicColor.WhiteColor,
                Radius = (uint)Application.GetRealHeight(12),
            };
            frame.AddChidren(dialogFra);
@@ -52,7 +52,7 @@
                Height = Application.GetRealHeight(20),
                TextID = StringId.cancelMusic,
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = Color.MusicNoTxetColor,
                TextColor = MusicColor.MusicNoTxetColor,
                TextSize = TextSize.Text14,
            };
            topFra.AddChidren(cancelnBtn);
@@ -67,7 +67,7 @@
                Y = Application.GetRealHeight(23),
                Width = Application.GetRealWidth(152),
                Height = Application.GetRealHeight(22),
                TextColor = Color.TextColor,
                TextColor = MusicColor.TextColor,
                TextSize = TextSize.Text16,
                TextAlignment = TextAlignment.Center,
                TextID = StringId.myList,
@@ -123,7 +123,7 @@
                RowLayout addFlieRow = new RowLayout
                {
                    Height = Application.GetRealHeight(78),
                    LineColor = Color.WhiteColor,
                    LineColor = MusicColor.WhiteColor,
                    SubViewWidth = Application.GetRealWidth(80),//改变编辑控件宽度多少;
                };
                verticalScrolViewLayout.AddChidren(addFlieRow);
@@ -145,7 +145,7 @@
                    Y = Application.GetRealHeight(29),
                    Width = Application.GetRealWidth(189),
                    Height = Application.GetRealHeight(20),
                    TextColor = Color.TextColor,
                    TextColor = MusicColor.TextColor,
                    TextSize = TextSize.Text14,
                    TextAlignment = TextAlignment.CenterLeft,
                    Text = list.ListName,
@@ -155,9 +155,9 @@
                ///编辑控件
                var editBtn = new Button
                {
                    BackgroundColor = Color.MusicEditColor,
                    BackgroundColor = MusicColor.MusicEditColor,
                    Text = Language.StringByID(StringId.editMusic),
                    TextColor = Color.WhiteColor,
                    TextColor = MusicColor.WhiteColor,
                    TextSize = TextSize.Text16,
                };
                addFlieRow.AddRightView(editBtn);
@@ -188,9 +188,9 @@
                ///删除控件
                var delBtn = new Button
                {
                    BackgroundColor = Color.MusicDelColor,
                    BackgroundColor = MusicColor.MusicDelColor,
                    Text = Language.StringByID(StringId.delMusic),
                    TextColor = Color.WhiteColor,
                    TextColor = MusicColor.WhiteColor,
                    TextSize = TextSize.Text16,
                };
                addFlieRow.AddRightView(delBtn);
@@ -228,13 +228,23 @@
        /// </summary>
        public void PlayMergence(A31MusicModel a31MusicModel)
        {
            int number1 = 0;
            for (int i = 0; i < A31MusicModel.A31MusicModelList.Count; i++)
            {
                var player = A31MusicModel.A31MusicModelList[i];
                if (!player.IsOnLine)
                {
                    //不在线不显示;
                    continue;
                }
                number1 = number1 + 1;
            }
            #region
            //主控件
            Dialog dialog = new Dialog()
            {
                BackgroundColor = Color.PopupBackgroundColor,
                BackgroundColor = MusicColor.PopupBackgroundColor,
            };
            dialog.Show();
            //父控件
@@ -248,10 +258,10 @@
            FrameLayout dialogFra = new FrameLayout()
            {
                X = Application.GetRealWidth(16),
                Y = Application.GetRealHeight(397),
                Y = Application.GetRealHeight(667 - (50 + number1 * 50) - 20),
                Width = Application.GetRealWidth(344),
                Height = Application.GetRealHeight(250),
                BackgroundColor = Color.WhiteColor,
                Height = Application.GetRealHeight(50 + number1 * 50),
                BackgroundColor = MusicColor.WhiteColor,
                Radius = (uint)Application.GetRealHeight(12),
            };
            frame.AddChidren(dialogFra);
@@ -271,7 +281,7 @@
                Height = Application.GetRealHeight(20),
                TextID = StringId.cancelMusic,
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = Color.MusicNoTxetColor,
                TextColor = MusicColor.MusicNoTxetColor,
                TextSize = TextSize.Text14,
            };
            topFra.AddChidren(cancelnBtn);
@@ -286,7 +296,7 @@
                Y = Application.GetRealHeight(14),
                Width = Application.GetRealWidth(152),
                Height = Application.GetRealHeight(22),
                TextColor = Color.TextColor,
                TextColor = MusicColor.TextColor,
                TextSize = TextSize.Text16,
                TextAlignment = TextAlignment.Center,
                TextID = StringId.selectedMergence,
@@ -303,18 +313,37 @@
                Height = Application.GetRealHeight(20),
                TextID = StringId.confirmMusic,
                TextAlignment = TextAlignment.CenterRight,
                TextColor = Color.SelectedColor,
                TextColor = MusicColor.SelectedColor,
                TextSize = TextSize.Text14,
            };
            topFra.AddChidren(confirmBtn);
            VerticalScrolViewLayout verticalScrolViewLayout = new VerticalScrolViewLayout
            ///大于4用上下滑动控件
            VerticalScrolViewLayout verticalScrolViewLayout = null;
            FrameLayout frameLayout = null;
            if (number1 > 4)
            {
                Y = Application.GetRealHeight(50),
                Height = dialogFra.Height - Application.GetRealHeight(50),
                Width = Application.GetRealWidth(344),
            };
            dialogFra.AddChidren(verticalScrolViewLayout);
                verticalScrolViewLayout = new VerticalScrolViewLayout
                {
                    Y = Application.GetRealHeight(50),
                    Height = dialogFra.Height - Application.GetRealHeight(50),
                    Width = Application.GetRealWidth(344),
                };
                dialogFra.AddChidren(verticalScrolViewLayout);
            }
            else
            {
                frameLayout = new FrameLayout
                {
                    Y = Application.GetRealHeight(50),
                    Height = dialogFra.Height - Application.GetRealHeight(50),
                    Width = Application.GetRealWidth(344),
                };
                dialogFra.AddChidren(frameLayout);
            }
            var playList1 = new List<A31MusicModel>();
            for (int i = 0; i < A31MusicModel.A31MusicModelList.Count; i++)
            {
@@ -327,11 +356,17 @@
                RowLayout PlayRow = new RowLayout
                {
                    Height = Application.GetRealHeight(50),
                    LineColor = Color.WhiteColor,
                    SubViewWidth = Application.GetRealWidth(80),//改变编辑控件宽度多少;
                    LineColor = 0x00000000,
                };
                verticalScrolViewLayout.AddChidren(PlayRow);
                if (number1 > 4)
                {
                    verticalScrolViewLayout.AddChidren(PlayRow);
                }
                else
                {
                    PlayRow.Y = Application.GetRealHeight(i * 50);
                    frameLayout.AddChidren(PlayRow);
                }
                //播放器名称控件
                Button PlayNameBtn = new Button
@@ -340,7 +375,7 @@
                    Y = Application.GetRealHeight(15),
                    Width = Application.GetRealWidth(150),
                    Height = Application.GetRealHeight(20),
                    TextColor = Color.TextColor,
                    TextColor = MusicColor.TextColor,
                    TextSize = TextSize.Text14,
                    TextAlignment = TextAlignment.CenterLeft,
                    Text = NamePlayer(player),
@@ -358,7 +393,7 @@
                    SelectedImagePath = "MusicIcon/selectedIcon.png",
                };
                PlayRow.AddChidren(selectedIconBtn);
                ///加大几点范围
                Button clickBtn = new Button
@@ -391,16 +426,6 @@
                        }
                    }
                };
                //线
                Button lineBtn = new Button
                {
                    Y = PlayRow.Height - 1,
                    X = Application.GetRealWidth(20),
                    Width = Application.GetRealWidth(304),
                    Height = 1,
                    BackgroundColor = Color.LineColor,
                };
                PlayRow.AddChidren(lineBtn);
            }
            #endregion
            confirmBtn.MouseUpEventHandler += (sender, e) =>
@@ -490,7 +515,7 @@
                Y = Application.GetRealHeight(397),
                Width = Application.GetRealWidth(344),
                Height = Application.GetRealHeight(250),
                BackgroundColor = Color.WhiteColor,
                BackgroundColor = MusicColor.WhiteColor,
                Radius = (uint)Application.GetRealHeight(12),
            };
            frame.AddChidren(dialogFra);
@@ -510,7 +535,7 @@
                Height = Application.GetRealHeight(20),
                TextID = StringId.cancelMusic,
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = Color.MusicNoTxetColor,
                TextColor = MusicColor.MusicNoTxetColor,
                TextSize = TextSize.Text14,
            };
            topFra.AddChidren(cancelnBtn);
@@ -525,7 +550,7 @@
                Y = Application.GetRealHeight(14),
                Width = Application.GetRealWidth(152),
                Height = Application.GetRealHeight(22),
                TextColor = Color.TextColor,
                TextColor = MusicColor.TextColor,
                TextSize = TextSize.Text16,
                TextAlignment = TextAlignment.Center,
                TextID = StringId.readyPlay,
@@ -541,7 +566,7 @@
                Height = Application.GetRealHeight(20),
                TextID = StringId.confirmMusic,
                TextAlignment = TextAlignment.CenterRight,
                TextColor = Color.SelectedColor,
                TextColor = MusicColor.SelectedColor,
                TextSize = TextSize.Text14,
            };
            topFra.AddChidren(confirmBtn);
@@ -561,7 +586,7 @@
                RowLayout addFlieRow = new RowLayout
                {
                    Height = Application.GetRealHeight(50),
                    LineColor = Color.WhiteColor,
                    LineColor = MusicColor.WhiteColor,
                };
                verticalScrolViewLayout.AddChidren(addFlieRow);
@@ -573,7 +598,7 @@
                        Y = Application.GetRealHeight(15),
                        Width = Application.GetRealWidth(150),
                        Height = Application.GetRealHeight(20),
                        TextColor = Color.TextColor,
                        TextColor = MusicColor.TextColor,
                        TextSize = TextSize.Text14,
                        TextAlignment = TextAlignment.CenterLeft,
                        Text = player.A31PlayStatus.Title,
@@ -581,7 +606,7 @@
                    addFlieRow.AddChidren(songNameBtn);
                    var wText = songNameBtn.GetTextWidth();//获取文本宽度
                    if (wText >Application.GetRealWidth(220))
                    if (wText > Application.GetRealWidth(220))
                    {
                        songNameBtn.Width = Application.GetRealWidth(220);
                    }
@@ -594,9 +619,9 @@
                    {
                        X = songNameBtn.Right,
                        Y = Application.GetRealHeight(15),
                        Width = Application.GetRealWidth(220)- wText,
                        Width = Application.GetRealWidth(220) - wText,
                        Height = Application.GetRealHeight(20),
                        TextColor = Color.MusicNoTxetColor,
                        TextColor = MusicColor.MusicNoTxetColor,
                        TextSize = TextSize.Text12,
                        TextAlignment = TextAlignment.CenterLeft,
                        Text = "-" + player.A31PlayStatus.Artist.Trim(),
@@ -612,7 +637,7 @@
                        Y = Application.GetRealHeight(15),
                        Width = Application.GetRealWidth(150),
                        Height = Application.GetRealHeight(20),
                        TextColor = Color.TextColor,
                        TextColor = MusicColor.TextColor,
                        TextSize = TextSize.Text14,
                        TextAlignment = TextAlignment.CenterLeft,
                        Text = NamePlayer(player),
@@ -653,7 +678,7 @@
                    X = Application.GetRealWidth(20),
                    Width = Application.GetRealWidth(304),
                    Height = 1,
                    BackgroundColor = Color.LineColor,
                    BackgroundColor = MusicColor.LineColor,
                };
                addFlieRow.AddChidren(lineBtn);
            }
@@ -678,12 +703,22 @@
        /// </summary>
        public void DetachPlayMergence(A31MusicModel a31player)
        {
            int number1 = 0;
            for (int i = 0; i < A31MusicModel.A31MusicModelList.Count; i++)
            {
                var player = A31MusicModel.A31MusicModelList[i];
                if (!player.IsOnLine)
                {
                    //不在线不显示;
                    continue;
                }
                number1 = number1 + 1;
            }
            #region
            //主控件
            Dialog dialog = new Dialog()
            {
                BackgroundColor = Color.PopupBackgroundColor,
                BackgroundColor = MusicColor.PopupBackgroundColor,
            };
            dialog.Show();
            //父控件
@@ -697,10 +732,10 @@
            FrameLayout dialogFra = new FrameLayout()
            {
                X = Application.GetRealWidth(16),
                Y = Application.GetRealHeight(397),
                Y = Application.GetRealHeight(667 - (50 + number1 * 50) - 20),
                Width = Application.GetRealWidth(344),
                Height = Application.GetRealHeight(250),
                BackgroundColor = Color.WhiteColor,
                Height = Application.GetRealHeight(50 + number1 * 50),
                BackgroundColor = MusicColor.WhiteColor,
                Radius = (uint)Application.GetRealHeight(12),
            };
            frame.AddChidren(dialogFra);
@@ -720,7 +755,7 @@
                Height = Application.GetRealHeight(20),
                TextID = StringId.cancelMusic,
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = Color.MusicNoTxetColor,
                TextColor = MusicColor.MusicNoTxetColor,
                TextSize = TextSize.Text14,
            };
            topFra.AddChidren(cancelnBtn);
@@ -735,7 +770,7 @@
                Y = Application.GetRealHeight(14),
                Width = Application.GetRealWidth(152),
                Height = Application.GetRealHeight(22),
                TextColor = Color.TextColor,
                TextColor = MusicColor.TextColor,
                TextSize = TextSize.Text16,
                TextAlignment = TextAlignment.Center,
                TextID = StringId.checkTheReleasePlayer,
@@ -753,18 +788,36 @@
                Height = Application.GetRealHeight(20),
                TextID = StringId.confirmMusic,
                TextAlignment = TextAlignment.CenterRight,
                TextColor = Color.SelectedColor,
                TextColor = MusicColor.SelectedColor,
                TextSize = TextSize.Text14,
            };
            topFra.AddChidren(confirmBtn);
            VerticalScrolViewLayout verticalScrolViewLayout = new VerticalScrolViewLayout
            ///大于4用上下滑动控件
            VerticalScrolViewLayout verticalScrolViewLayout = null;
            FrameLayout frameLayout = null;
            if (number1 > 4)
            {
                Y = Application.GetRealHeight(50),
                Height = dialogFra.Height - Application.GetRealHeight(50),
                Width = Application.GetRealWidth(344),
            };
            dialogFra.AddChidren(verticalScrolViewLayout);
                verticalScrolViewLayout = new VerticalScrolViewLayout
                {
                    Y = Application.GetRealHeight(50),
                    Height = dialogFra.Height - Application.GetRealHeight(50),
                    Width = Application.GetRealWidth(344),
                };
                dialogFra.AddChidren(verticalScrolViewLayout);
            }
            else
            {
                frameLayout = new FrameLayout
                {
                    Y = Application.GetRealHeight(50),
                    Height = dialogFra.Height - Application.GetRealHeight(50),
                    Width = Application.GetRealWidth(344),
                };
                dialogFra.AddChidren(frameLayout);
            }
            var playList1 = new List<A31MusicModel>();
            playList1.Add(a31player);
@@ -786,11 +839,17 @@
                RowLayout PlayRow = new RowLayout
                {
                    Height = Application.GetRealHeight(50),
                    LineColor = Color.WhiteColor,
                    SubViewWidth = Application.GetRealWidth(80),//改变编辑控件宽度多少;
                    LineColor =0x00000000, //MusicColor.WhiteColor,
                };
                verticalScrolViewLayout.AddChidren(PlayRow);
                if (number1 > 4)
                {
                    verticalScrolViewLayout.AddChidren(PlayRow);
                }
                else
                {
                    PlayRow.Y = Application.GetRealHeight(i * 50);
                    frameLayout.AddChidren(PlayRow);
                }
                //播放器名称控件
                Button PlayNameBtn = new Button
@@ -799,7 +858,7 @@
                    Y = Application.GetRealHeight(15),
                    Width = Application.GetRealWidth(150),
                    Height = Application.GetRealHeight(20),
                    TextColor = Color.TextColor,
                    TextColor = MusicColor.TextColor,
                    TextSize = TextSize.Text14,
                    TextAlignment = TextAlignment.CenterLeft,
                    Text = NamePlayer(player),
@@ -847,16 +906,7 @@
                        }
                    }
                };
                //线
                Button lineBtn = new Button
                {
                    Y = PlayRow.Height - 1,
                    X = Application.GetRealWidth(20),
                    Width = Application.GetRealWidth(304),
                    Height = 1,
                    BackgroundColor = Color.LineColor,
                };
                PlayRow.AddChidren(lineBtn);
            }
            #endregion
            confirmBtn.MouseUpEventHandler += (sender, e) =>
@@ -878,7 +928,7 @@
        void MergeThreading(A31MusicModel serverMusic, List<A31MusicModel> musicList1)
        {
            A31MusicModel mainModel = null;
            bool mainModelCollection = false;
            bool mainModelCollection = false;
            MusicMain.loading.Start(Language.StringByID(StringId.inConfiguration));
            bool _if = false;
            System.Threading.Tasks.Task.Run(() =>
@@ -939,7 +989,7 @@
                                    for (int j = 0; j < A31MusicModel.A31MusicModelList.Count; j++)
                                    {
                                        var music = A31MusicModel.A31MusicModelList[j];
                                        if(music.collection && !mainModelCollection)
                                        if (music.collection && !mainModelCollection)
                                        {
                                            mainModelCollection = true;
                                        }
@@ -965,9 +1015,9 @@
                                        }
                                    }
                                    serverMusic.MainPlayName = str;
                                    foreach(var music in A31MusicModel.A31MusicModelList)
                                    foreach (var music in A31MusicModel.A31MusicModelList)
                                    {
                                        if(music.ServerClientType == 1)
                                        if (music.ServerClientType == 1)
                                        {
                                            music.MainPlayCollection = mainModelCollection;
                                        }
@@ -1011,7 +1061,7 @@
            MusicMain.loading.Start(Language.StringByID(StringId.lifting));
            var slaveList = new List<Slave>();
            slaveList.AddRange(a31player.Slave.slave_list);
           // bool host_If = false; //表示是否显示解除的播放
            // bool host_If = false; //表示是否显示解除的播放
            bool _if = false;
            System.Threading.Tasks.Task.Run(() =>
            {
@@ -1145,12 +1195,12 @@
                return a31player.Name;
            }
        }
        List<A31MusicModel> volumePlayList = new List<A31MusicModel>();
        A31MusicModel currVolumePlay = null;//当前的播放器
        int startVolume = 0;//之前的音量
        int endVolume = 0;//现在的音量
        string if_volume ="";//标记是调节总音量还是单个播放器音量;
        string if_volume = "";//标记是调节总音量还是单个播放器音量;
        /// <summary>
        /// 播放器音量的界面
        /// </summary>
@@ -1181,10 +1231,10 @@
            FrameLayout dialogFra = new FrameLayout()
            {
                X = Application.GetRealWidth(16),
                Y = Application.GetRealHeight(397-20),
                Y = Application.GetRealHeight(397 - 20),
                Width = Application.GetRealWidth(344),
                Height = Application.GetRealHeight(250+20),
                BackgroundColor = Color.WhiteColor,
                Height = Application.GetRealHeight(250 + 20),
                BackgroundColor = MusicColor.WhiteColor,
                Radius = (uint)Application.GetRealHeight(12),
            };
            frame.AddChidren(dialogFra);
@@ -1205,7 +1255,7 @@
                Height = Application.GetRealHeight(20),
                TextID = StringId.cancelMusic,
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = Color.MusicNoTxetColor,
                TextColor = MusicColor.MusicNoTxetColor,
                TextSize = TextSize.Text14,
            };
            topFra.AddChidren(cancelnBtn);
@@ -1216,7 +1266,7 @@
                Y = Application.GetRealHeight(14),
                Width = Application.GetRealWidth(152),
                Height = Application.GetRealHeight(22),
                TextColor = Color.TextColor,
                TextColor = MusicColor.TextColor,
                TextSize = TextSize.Text16,
                TextAlignment = TextAlignment.Center,
                TextID = StringId.volumeAdjustment,
@@ -1232,12 +1282,13 @@
                Height = Application.GetRealHeight(20),
                TextID = StringId.confirmMusic,
                TextAlignment = TextAlignment.CenterRight,
                TextColor = Color.SelectedColor,
                TextColor = MusicColor.SelectedColor,
                TextSize = TextSize.Text14,
            };
            topFra.AddChidren(confirmBtn);
            EventHandler<MouseEventArgs> eventHandler= (sen,e) => {
            EventHandler<MouseEventArgs> eventHandler = (sen, e) =>
            {
                volumedialog.Close();
                if (updateVolumeThread != null)
                {
@@ -1268,7 +1319,7 @@
                Y = Application.GetRealHeight(8),
                Width = Application.GetRealWidth(200),
                Height = Application.GetRealHeight(14),
                TextColor = Color.MusicNoTxetColor,
                TextColor = MusicColor.MusicNoTxetColor,
                TextSize = TextSize.Text10,
                TextAlignment = TextAlignment.CenterLeft,
                Text = Language.StringByID(StringId.totalVolume),
@@ -1282,7 +1333,7 @@
                Height = Application.GetRealHeight(54),//进度条父控件背景高度
                IsProgressTextShow = false,//显示百分比
                IsClickable = true,//进度条是否滑动
                ProgressBarColor = Color.SelectedColor,//选中进度条颜色
                ProgressBarColor = MusicColor.SelectedColor,//选中进度条颜色
                ThumbImagePath = "MusicIcon/progressIcon.png",//进度条按钮图标
                ThumbImageHeight = Application.GetMinRealAverage(54),//进度条按钮图标的高度(默认正方形:宽和高一样)
                SeekBarViewHeight = Application.GetMinRealAverage(8),//进度条的高度
@@ -1297,7 +1348,7 @@
                Y = Application.GetRealHeight(31),
                Width = Application.GetRealWidth(26 + 15),
                Height = Application.GetRealHeight(17),
                TextColor = Color.MusicNoTxetColor,
                TextColor = MusicColor.MusicNoTxetColor,
                TextSize = TextSize.Text12,
                TextAlignment = TextAlignment.CenterLeft,
                Text = totalVolSeekBar.Progress.ToString() + "%",
@@ -1307,8 +1358,8 @@
            VerticalScrolViewLayout volumeViewLayout = new VerticalScrolViewLayout
            {
                Y =Application.GetRealHeight(58+64),
                Height = dialogFra.Height - Application.GetRealHeight(58+64),
                Y = Application.GetRealHeight(58 + 64),
                Height = dialogFra.Height - Application.GetRealHeight(58 + 64),
                Width = Application.GetRealWidth(343),
            };
            dialogFra.AddChidren(volumeViewLayout);
@@ -1328,7 +1379,7 @@
                    Y = Application.GetRealHeight(8),
                    Width = Application.GetRealWidth(200),
                    Height = Application.GetRealHeight(14),
                    TextColor = Color.MusicNoTxetColor,
                    TextColor = MusicColor.MusicNoTxetColor,
                    TextSize = TextSize.Text10,
                    TextAlignment = TextAlignment.CenterLeft,
                    Text = player.Name + Language.StringByID(StringId.volumeMusic),
@@ -1344,7 +1395,7 @@
                    Height = Application.GetRealHeight(54),//进度条父控件背景高度
                    IsProgressTextShow = false,//显示百分比
                    IsClickable = true,//进度条是否滑动
                    ProgressBarColor = Color.SelectedColor,//选中进度条颜色
                    ProgressBarColor = MusicColor.SelectedColor,//选中进度条颜色
                    ThumbImagePath = "MusicIcon/progressIcon.png",//进度条按钮图标
                    ThumbImageHeight = Application.GetMinRealAverage(54),//进度条按钮图标的高度(默认正方形:宽和高一样)
                    SeekBarViewHeight = Application.GetMinRealAverage(8),//进度条的高度
@@ -1357,9 +1408,9 @@
                {
                    X = Application.GetRealWidth(289),
                    Y = Application.GetRealHeight(31),
                    Width = Application.GetRealWidth(26+15),
                    Width = Application.GetRealWidth(26 + 15),
                    Height = Application.GetRealHeight(17),
                    TextColor = Color.MusicNoTxetColor,
                    TextColor = MusicColor.MusicNoTxetColor,
                    TextSize = TextSize.Text12,
                    TextAlignment = TextAlignment.CenterLeft,
                    Text = player.A31PlayStatus.vol + "%",
@@ -1407,10 +1458,12 @@
        System.Threading.Thread updateVolumeThread;
        public void UpdateVolume()
        {
            if (updateVolumeThread != null) {
            if (updateVolumeThread != null)
            {
                try
                {
                    if (updateVolumeThread.IsAlive) {
                    if (updateVolumeThread.IsAlive)
                    {
                        updateVolumeThread.Abort();
                    }
                }
@@ -1439,7 +1492,7 @@
                            }
                        }
                        else if(if_volume == "Volume")
                        else if (if_volume == "Volume")
                        {
                            if (currVolumePlay == null)
                            {