.vs/HDL_APP_Project/xs/UserPrefs.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
.vs/HDL_APP_Project/xs/sqlite3/storage.ide | 补丁 | 查看 | 原始文档 | blame | 历史 | |
.vs/HDL_APP_Project/xs/sqlite3/storage.ide-shm | 补丁 | 查看 | 原始文档 | blame | 历史 | |
.vs/HDL_APP_Project/xs/sqlite3/storage.ide-wal | 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/Music/A31MyListMusic.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/Music/A31PlayMusicPage.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/Music/View/PlayView.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
.vs/HDL_APP_Project/xs/UserPrefs.xml
@@ -1,16 +1,5 @@ <Properties StartupConfiguration="{09712674-2A38-407B-B1E2-560B2C352F9A}|Default"> <MonoDevelop.Ide.Workbench ActiveDocument="HDL_ON/UI/Music/View/PlayView.cs"> <Files> <File FileName="HDL_ON/UI/Music/View/DialogView.cs" Line="988" Column="26" /> <File FileName="HDL_ON/UI/Music/MusicMain.cs" Line="84" Column="17" /> <File FileName="HDL_ON/UI/Music/SendMethod.cs" Line="1" Column="1" /> <File FileName="HDL_ON/UI/Music/A31USBMusicList.cs" Line="217" Column="63" /> <File FileName="HDL_ON/UI/Music/A31MusicSourcePage.cs" Line="163" Column="23" /> <File FileName="HDL_ON/UI/Music/A31MusicModel.cs" Line="70" Column="33" /> <File FileName="HDL_ON/UI/Music/View/MusicView.cs" Line="18" Column="19" /> <File FileName="HDL_ON/UI/Music/A31PlayMusicPage.cs" Line="31" Column="48" /> <File FileName="HDL_ON/UI/Music/View/PlayView.cs" Line="185" Column="51" /> </Files> <MonoDevelop.Ide.Workbench> <Pads> <Pad Id="ProjectPad"> <State name="__root__"> @@ -18,9 +7,7 @@ <Node name="HDL_ON" expanded="True"> <Node name="UI" expanded="True"> <Node name="Music" expanded="True"> <Node name="View" expanded="True"> <Node name="PlayView.cs" selected="True" /> </Node> <Node name="A31PlayMusicPage.cs" selected="True" /> </Node> </Node> </Node> .vs/HDL_APP_Project/xs/sqlite3/storage.ideBinary files differ
.vs/HDL_APP_Project/xs/sqlite3/storage.ide-shmBinary files differ
.vs/HDL_APP_Project/xs/sqlite3/storage.ide-walBinary files differ
HDL_ON/UI/Music/A31MyListMusic.cs
@@ -265,10 +265,10 @@ { for (int i = 0; i < middViewLayout.ChildrenCount; i++) { FrameLayout view = (FrameLayout)middViewLayout.GetChildren(i); var volIconBtn = (Button)view.GetChildren(0);//直接FrameLayout父控件找到该控件Button var songNameBtn = (Button)view.GetChildren(1);//直接FrameLayout父控件找到该控件Button var artistNameBtn = (Button)view.GetChildren(2);//直接FrameLayout父控件找到该控件Button RowLayout view = (RowLayout)middViewLayout.GetChildren(i); var volIconBtn = (Button)view.GetChildren(0);//直接RowLayout父控件找到该控件Button var songNameBtn = (Button)view.GetChildren(1);//直接RowLayout父控件找到该控件Button var artistNameBtn = (Button)view.GetChildren(2);//直接RowLayout父控件找到该控件Button if (A31MusicModel.Current.A31PlayStatus.TrackURL == songNameBtn.Tag.ToString()) { volIconBtn.Visible = true; HDL_ON/UI/Music/A31PlayMusicPage.cs
@@ -26,29 +26,14 @@ } catch { } } if (VolumeThread != null) { try { if (VolumeThread.IsAlive) { VolumeThread.Abort(); } } catch { } } } View.PlayView playView = new View.PlayView(); int startVolume = 0;//之前的音量 int endVolume = 0;//现在的音量 public void Show() { ///1秒定时更新状态 timerUpdateStatus(); ///0.5秒监听音量状态 VolumeUpdateSend(); #region ---界面布局--- this.BackgroundColor = Color.ViewColor; var topView = new TopView(); @@ -359,18 +344,17 @@ } }; ///音量进度条点击事件 //int startVolume =0;//之前的音量 //int endVolume = 0; int startVolume =0;//之前的音量 //int endVolume = 0;//现在的音量 EventHandler<int> progressClick = (sender, e) => { playView.volValueBtn.Text = playView.volSeekBar.Progress + "%"; endVolume = e; //if (startVolume != e) //{ // startVolume = e; // SendMethod.ControlVolume(e, A31MusicModel.Current); // A31MusicModel.Current.A31PlayStatus.vol = e.ToString(); //} if (startVolume != e) { startVolume = e; SendMethod.ControlVolume(e, A31MusicModel.Current); A31MusicModel.Current.A31PlayStatus.vol = e.ToString(); } }; playView.volSeekBar.OnProgressChangedEvent += progressClick; playView.volSeekBar.OnStopTrackingTouchEvent += progressClick; @@ -429,28 +413,7 @@ }; } System.Threading.Thread VolumeThread; /// <summary> /// 音量发送 /// </summary> void VolumeUpdateSend() { VolumeThread = new System.Threading.Thread((obj) => { while (true) { if (startVolume != endVolume) { startVolume = endVolume; SendMethod.ControlVolume(endVolume, A31MusicModel.Current); A31MusicModel.Current.A31PlayStatus.vol = endVolume.ToString(); } System.Threading.Thread.Sleep(300); } }) { IsBackground = true }; VolumeThread.Start(); } System.Threading.Thread timerThread; /// <summary> /// 定时更新状态 HDL_ON/UI/Music/View/PlayView.cs
@@ -182,7 +182,7 @@ ThumbImagePath = "MusicIcon/progressIcon.png",//进度条按钮图标 ThumbImageHeight = Application.GetMinRealAverage(54),//进度条按钮图标的高度(默认正方形:宽和高一样) SeekBarViewHeight = Application.GetMinRealAverage(8),//进度条的高度 //ProgressChangeDelayTime=1000,//一秒发送一次 ProgressChangeDelayTime=300,//0.3秒发送一次 }; /// <summary>