| | |
| | | <Properties StartupConfiguration="{D998E133-F0DD-4760-BE3C-461632F54DA4}|Default"> |
| | | <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS automaticSigning="False" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.00008020-001674E61438002E" /> |
| | | <MonoDevelop.Ide.Workbench ActiveDocument="HDL-ON_iOS/ViewController.cs"> |
| | | <Files> |
| | | <File FileName="HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs" Line="9" Column="29" /> |
| | | <File FileName="HDL-ON_iOS/Info.plist" /> |
| | | <File FileName="HDL-ON_iOS/AppDelegate.cs" Line="26" Column="40" /> |
| | | <File FileName="HDL-ON_iOS/ViewController.cs" Line="37" Column="1" /> |
| | | <File FileName="HDL-ON_iOS/ViewControllerBase.cs" Line="122" Column="43" /> |
| | | <File FileName="HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs" Line="293" Column="30" /> |
| | | <File FileName="HDL_ON/UI/MainPage.cs" Line="10" Column="33" /> |
| | | <File FileName="HDL-ON_iOS/Main.cs" Line="1" Column="1" /> |
| | | </Files> |
| | | <Properties StartupConfiguration="{09712674-2A38-407B-B1E2-560B2C352F9A}|Default"> |
| | | <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS automaticSigning="False" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.D4411691-F5B8-40F4-97C1-964F33115DBC" /> |
| | | <MonoDevelop.Ide.Workbench> |
| | | <Pads> |
| | | <Pad Id="ProjectPad"> |
| | | <State name="__root__"> |
| | |
| | | <Node name="HDL_ON" expanded="True"> |
| | | <Node name="UI" expanded="True"> |
| | | <Node name="UI2" expanded="True"> |
| | | <Node name="FuntionControlView" expanded="True"> |
| | | <Node name="Music" expanded="True" /> |
| | | </Node> |
| | | <Node name="FuntionControlView" expanded="True" /> |
| | | </Node> |
| | | </Node> |
| | | </Node> |
| | | <Node name="HDL-ON_iOS" expanded="True"> |
| | | <Node name="ViewController.cs" selected="True" /> |
| | | </Node> |
| | | <Node name="HDL-ON_iOS" expanded="True" /> |
| | | </Node> |
| | | </State> |
| | | </Pad> |
| | |
| | | </Pads> |
| | | </MonoDevelop.Ide.Workbench> |
| | | <MonoDevelop.Ide.DebuggingService.PinnedWatches /> |
| | | <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhone" /> |
| | | <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" /> |
| | | <MonoDevelop.Ide.ItemProperties.HDL-ON__Android AndroidDesignerPreferredTheme="AppTheme" PreferredExecutionTarget="Android.5c86e4357d63" /> |
| | | <MonoDevelop.Ide.DebuggingService.Breakpoints> |
| | | <BreakpointStore /> |
| | |
| | | public void Show() |
| | | { |
| | | #region 界面布局------ |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | topView.topNameBtn.TextID = StringId.localMusic; |
| | |
| | | }; |
| | | middViewLayout = new VerticalRefreshLayout |
| | | { |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Y = topView.fLayout.Bottom, |
| | | Height = Application.GetRealHeight(H_W.H - H_W.T_Height), |
| | | }; |
| | | this.AddChidren(middViewLayout); |
| | | middViewLayout.BeginHeaderRefreshingAction += () => |
| | | { |
| | | MusicView(); |
| | | middViewLayout.EndHeaderRefreshing(); |
| | | }; |
| | | #endregion |
| | |
| | | public void MusicView() |
| | | { |
| | | middViewLayout.RemoveAll(); |
| | | for (int i = 0; i < MusicInfo.MusicInfoList.Count; i++) |
| | | { |
| | | var songs = MusicInfo.MusicInfoList[i]; |
| | | if (songs == null) |
| | | { |
| | | continue; |
| | | } |
| | | songs.URL = "http://" + new Shared.Net.NetWiFi().IpAddress + ":" + com.hdl.on.Server.Port + "/" + songs.ID; |
| | | View.SongView songView = new View.SongView(); |
| | | songView.SongFrameLayout(middViewLayout,songs); |
| | | //添加喜爱音乐控件 |
| | | songView.loveIcon.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | songView.loveIcon.IsSelected = !songView.loveIcon.IsSelected; |
| | | if (songView.loveIcon.IsSelected) |
| | | { |
| | | ///查找音乐是否存在在列表 |
| | | var music1 = A31MusicModel.Current.LoveMusicInfoList.Find((m) => m.URL == songs.URL); |
| | | if (music1 == null) |
| | | { |
| | | ///没有存在就添加 |
| | | A31MusicModel.Current.LoveMusicInfoList.Add(songs); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | ///查找音乐是否存在在列表 |
| | | var music1 = A31MusicModel.Current.LoveMusicInfoList.Find((m) => m.URL == songs.URL); |
| | | if (music1 != null) |
| | | { |
| | | ///存在就删除 |
| | | A31MusicModel.Current.LoveMusicInfoList.Remove(songs); |
| | | } |
| | | |
| | | } |
| | | A31MusicModel.Save(); |
| | | }; |
| | | //添加到我的列表 |
| | | songView.addIcon.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | new View.DialogView { }.FieListView(songs); |
| | | }; |
| | | ///点击播放事件 |
| | | songView.clickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | System.Threading.Thread.Sleep(50); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //移除界面 |
| | | A31MusicModel.Current.A31PlayStatus.Title = songView.songBtn.Text; |
| | | MainPage.BasePageView.RemoveViewByTag("Music"); |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | SendMethod.PushList(songs, Language.StringByID(StringId.localMusic), MusicInfo.MusicInfoList,A31MusicModel.Current); |
| | | }); |
| | | }); |
| | | }); |
| | | }; |
| | | |
| | | } |
| | | UI2.FuntionControlView.Music.UpdateThread.playMusuc(middViewLayout, "本地音乐", Language.StringByID(StringId.localMusic), MusicInfo.MusicInfoList, A31MusicModel.Current); |
| | | } |
| | | /// <summary> |
| | | /// 定时更新当前播放音乐 |
| | |
| | | public void Show() |
| | | { |
| | | #region 界面布局------ |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | topView.topNameBtn.TextID = StringId.myLove; |
| | |
| | | |
| | | middViewLayout = new VerticalScrolViewLayout |
| | | { |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Y = topView.fLayout.Bottom, |
| | | Height = Application.GetRealHeight(H_W.H - H_W.T_Height), |
| | | }; |
| | |
| | | RowLayout addFlieRow = new RowLayout |
| | | { |
| | | Height = Application.GetRealHeight(104), |
| | | LineColor = Color.WhiteColor, |
| | | LineColor = MusicColor.WhiteColor, |
| | | SubViewWidth = Application.GetRealWidth(90),//改变编辑控件宽度多少; |
| | | }; |
| | | middViewLayout.AddChidren(addFlieRow); |
| | |
| | | Y = Application.GetRealHeight(42), |
| | | Width = Application.GetRealWidth(217), |
| | | Height = Application.GetRealHeight(20), |
| | | TextColor = Color.TextColor, |
| | | TextColor = MusicColor.TextColor, |
| | | TextSize = TextSize.Text14, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | |
| | | { |
| | | #region 界面布局------ |
| | | |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | topView.topNameBtn.TextID = StringId.myLove;//a31Music; |
| | |
| | | }; |
| | | middViewLayout = new VerticalRefreshLayout |
| | | { |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Y = topView.fLayout.Bottom, |
| | | Height = Application.GetRealHeight(H_W.H - H_W.T_Height), |
| | | }; |
| | |
| | | public void MusicView(string listName) |
| | | { |
| | | middViewLayout.RemoveAll(); |
| | | for (int i = 0; i < A31MusicModel.Current.LoveMusicInfoList.Count; i++) |
| | | { |
| | | var songs = A31MusicModel.Current.LoveMusicInfoList[i]; |
| | | View.SongView songView = new View.SongView(); |
| | | songView.SongFrameLayout(middViewLayout, songs); |
| | | //添加收藏 |
| | | songView.loveIcon.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | var music= A31MusicModel.Current.LoveMusicInfoList.Find((m) => m.URL == songs.URL); |
| | | if (music!= null) |
| | | { |
| | | ///存在就删除 |
| | | A31MusicModel.Current.LoveMusicInfoList.Remove(music); |
| | | } |
| | | A31MusicModel.Save(); |
| | | songView.musicViewFl.RemoveFromParent(); |
| | | }; |
| | | //添加到我的列表 |
| | | songView.addIcon.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | new View.DialogView { }.FieListView(songs); |
| | | }; |
| | | ///点击播放事件 |
| | | songView.clickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | System.Threading.Thread.Sleep(50); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //移除界面 |
| | | A31MusicModel.Current.A31PlayStatus.Title = songView.songBtn.Text; |
| | | MainPage.BasePageView.RemoveViewByTag("Music"); |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | SendMethod.PushList(songs, listName, A31MusicModel.Current.LoveMusicInfoList,A31MusicModel.Current); |
| | | }); |
| | | }); |
| | | }); |
| | | |
| | | }; |
| | | |
| | | } |
| | | UI2.FuntionControlView.Music.UpdateThread.playMusuc(middViewLayout, "我的最爱", listName, A31MusicModel.Current.LoveMusicInfoList, A31MusicModel.Current); |
| | | } |
| | | /// <summary> |
| | | /// 定时更新当前播放音乐 |
| | |
| | | { |
| | | #region 界面布局------ |
| | | |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | topView.topNameBtn.TextID = StringId.radioLove; |
| | |
| | | }; |
| | | middViewLayout = new VerticalRefreshLayout |
| | | { |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Y = topView.fLayout.Bottom, |
| | | Height = Application.GetRealHeight(H_W.H - H_W.T_Height), |
| | | }; |
| | |
| | | Y = Application.GetRealHeight(23), |
| | | Width = Application.GetRealWidth(250), |
| | | Height = Application.GetRealHeight(22), |
| | | TextColor = Color.MusicTxet14Color, |
| | | TextColor = MusicColor.MusicTxet14Color, |
| | | TextSize = TextSize.Text16, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Tag = radioInfo.URL, |
| | |
| | | var songNameBtn = (Button)view.GetChildren(1);//直接FrameLayout父控件找到该控件Button |
| | | if (A31MusicModel.Current.A31PlayStatus.Title == songNameBtn.Text.ToString()) |
| | | { |
| | | songNameBtn.TextColor = Color.SelectedColor; |
| | | songNameBtn.TextColor = MusicColor.SelectedColor; |
| | | } |
| | | else |
| | | { |
| | | songNameBtn.TextColor = Color.MusicTxet14Color; |
| | | songNameBtn.TextColor = MusicColor.MusicTxet14Color; |
| | | } |
| | | |
| | | |
| | |
| | | /// 移除之前的线程 |
| | | /// </summary> |
| | | public static void RemoveListThread() { |
| | | var threads = updataMusicStatesListThread.FindAll((obj) => { return obj.Name == "A31"; }); |
| | | for (int i = 0; i < updataMusicStatesListThread.Count;) |
| | | { |
| | | try |
| | |
| | | public void Show() |
| | | { |
| | | #region 界面布局------ |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | topView.topNameBtn.TextID = StringId.set; |
| | |
| | | View.MusicSourceView musicIfonView = new View.MusicSourceView(); |
| | | musicIfonView.fLayout.Height = Application.GetRealHeight(44); |
| | | musicIfonView.textBtn.TextID = StringId.information; |
| | | musicIfonView.textBtn.TextColor = Color.SelectedColor; |
| | | musicIfonView.textBtn.TextColor = MusicColor.SelectedColor; |
| | | musicIfonView.textBtn.TextSize = TextSize.Text16; |
| | | musicIfonView.inputTextBtn.Visible = false; |
| | | musicIfonView.nextLevelBtn.Visible = false; |
| | |
| | | areaText.nextLevelBtn.Width = Application.GetMinRealAverage(16); |
| | | areaText.nextLevelBtn.Height = Application.GetMinRealAverage(16); |
| | | areaText.nextLevelBtn.UnSelectedImagePath = "MusicIcon/sourceNetx.png"; |
| | | areaText.lineBtn.BackgroundColor = Color.WhiteColor; |
| | | areaText.lineBtn.BackgroundColor = MusicColor.WhiteColor; |
| | | areaText.textBtn.X = Application.GetRealWidth(16); |
| | | areaText.textBtn.TextID = StringId.region; |
| | | areaText.inputTextBtn.Text = A31MusicModel.Current.GetRoomListName(); |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region 歌单(我的最爱 我的列表) |
| | | FrameLayout fL2 = new FrameLayout |
| | |
| | | View.MusicSourceView playListView = new View.MusicSourceView(); |
| | | playListView.fLayout.Height = Application.GetRealHeight(44); |
| | | playListView.textBtn.TextID = StringId.playList; |
| | | playListView.textBtn.TextColor = Color.SelectedColor; |
| | | playListView.textBtn.TextColor = MusicColor.SelectedColor; |
| | | playListView.textBtn.TextSize = TextSize.Text16; |
| | | playListView.inputTextBtn.Visible = false; |
| | | playListView.nextLevelBtn.Visible = false; |
| | |
| | | View.MusicSourceView selectedSourceView = new View.MusicSourceView(); |
| | | selectedSourceView.fLayout.Height = Application.GetRealHeight(44); |
| | | selectedSourceView.textBtn.TextID = StringId.selectedSource; |
| | | selectedSourceView.textBtn.TextColor = Color.SelectedColor; |
| | | selectedSourceView.textBtn.TextColor = MusicColor.SelectedColor; |
| | | selectedSourceView.textBtn.TextSize = TextSize.Text16; |
| | | selectedSourceView.inputTextBtn.Visible = false; |
| | | selectedSourceView.nextLevelBtn.Visible = false; |
| | |
| | | VerticalScrolViewLayout middViewLayout; |
| | | public void Show() |
| | | { |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | topView.topNameBtn.TextID = StringId.myList; |
| | |
| | | |
| | | middViewLayout = new VerticalScrolViewLayout |
| | | { |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Y = topView.fLayout.Bottom, |
| | | Height = Application.GetRealHeight(H_W.H - H_W.T_Height), |
| | | }; |
| | |
| | | RowLayout addFlieRow = new RowLayout |
| | | { |
| | | Height = Application.GetRealHeight(104), |
| | | LineColor = Color.WhiteColor, |
| | | LineColor = MusicColor.WhiteColor, |
| | | SubViewWidth = Application.GetRealWidth(90),//改变编辑控件宽度多少; |
| | | }; |
| | | middViewLayout.AddChidren(addFlieRow); |
| | |
| | | //移除界面 |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | SendMethod.PushList(songs, list.ListName, list.MusicInfoList,A31MusicModel.Current,true); |
| | | SendMethod.PushList(songs, list.ListName, list.MusicInfoList,A31MusicModel.Current, "我的列表"); |
| | | }); |
| | | }); |
| | | }); |
| | |
| | | Y = Application.GetRealHeight(42), |
| | | Width = Application.GetRealWidth(217), |
| | | Height = Application.GetRealHeight(20), |
| | | TextColor = Color.TextColor, |
| | | TextColor = MusicColor.TextColor, |
| | | TextSize = TextSize.Text14, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text= list.ListName, |
| | |
| | | ///编辑控件 |
| | | 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); |
| | |
| | | ///删除控件 |
| | | 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); |
| | |
| | | { |
| | | #region 界面布局------ |
| | | |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | topView.topNameBtn.Text = fileListInfo.ListName; |
| | |
| | | }; |
| | | middViewLayout = new VerticalRefreshLayout |
| | | { |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Y = topView.fLayout.Bottom, |
| | | Height = Application.GetRealHeight(H_W.H - H_W.T_Height), |
| | | }; |
| | |
| | | public void MusicView(FileListInfo fileListInfo) |
| | | { |
| | | middViewLayout.RemoveAll(); |
| | | for (int i = 0; i < fileListInfo.MusicInfoList.Count; i++) |
| | | { |
| | | var songs = fileListInfo.MusicInfoList[i]; |
| | | View.SongView songView = new View.SongView(); |
| | | songView.SongFrameLayout(middViewLayout, songs); |
| | | //添加收藏 |
| | | songView.loveIcon.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | |
| | | songView.loveIcon.IsSelected = !songView.loveIcon.IsSelected; |
| | | if (songView.loveIcon.IsSelected) |
| | | { |
| | | ///查找音乐是否存在在列表 |
| | | var music1 = A31MusicModel.Current.LoveMusicInfoList.Find((m) => m.URL == songs.URL); |
| | | if (music1 == null) |
| | | { |
| | | ///没有存在就添加 |
| | | A31MusicModel.Current.LoveMusicInfoList.Add(songs); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | ///查找音乐是否存在在列表 |
| | | var music1 = A31MusicModel.Current.LoveMusicInfoList.Find((m) => m.URL == songs.URL); |
| | | if (music1 != null) |
| | | { |
| | | ///存在就删除 |
| | | A31MusicModel.Current.LoveMusicInfoList.Remove(songs); |
| | | } |
| | | |
| | | } |
| | | A31MusicModel.Save(); |
| | | }; |
| | | |
| | | ///删除控件 |
| | | var delBtn = new Button |
| | | { |
| | | BackgroundColor = Color.MusicDelColor, |
| | | Text = Language.StringByID(StringId.delMusic), |
| | | TextColor = Color.WhiteColor, |
| | | TextSize = TextSize.Text16, |
| | | }; |
| | | songView.musicViewFl.AddRightView(delBtn); |
| | | delBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | fileListInfo.MusicInfoList.Remove(songs); |
| | | A31MusicModel.Save(); |
| | | songView.musicViewFl.RemoveFromParent(); |
| | | }; |
| | | //添加到我的列表 |
| | | songView.addIcon.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | new View.DialogView { }.FieListView(songs); |
| | | }; |
| | | ///点击播放事件 |
| | | songView.clickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | System.Threading.Thread.Sleep(50); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //移除界面 |
| | | |
| | | A31MusicModel.Current.A31PlayStatus.Title = songView.songBtn.Text; |
| | | MainPage.BasePageView.RemoveViewByTag("Music"); |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | SendMethod.PushList(songs, fileListInfo.ListName, fileListInfo.MusicInfoList,A31MusicModel.Current); |
| | | }); |
| | | }); |
| | | }); |
| | | |
| | | }; |
| | | |
| | | } |
| | | UI2.FuntionControlView.Music.UpdateThread.playMusuc(middViewLayout,"我的列表", fileListInfo.ListName, fileListInfo.MusicInfoList, A31MusicModel.Current); |
| | | } |
| | | /// <summary> |
| | | /// 定时更新当前播放音乐 |
| | |
| | | /// <summary> |
| | | /// 当前对象构造函数 |
| | | /// </summary> |
| | | public A31PlayMusicPage() |
| | | { |
| | | } |
| | | public A31PlayMusicPage() { } |
| | | /// <summary> |
| | | /// 重写RemoveFromParent方法 |
| | | /// </summary> |
| | |
| | | /// new布局界面 |
| | | /// </summary> |
| | | View.PlayView playView = new View.PlayView(); |
| | | |
| | | |
| | | public void Show() |
| | | { |
| | | |
| | | ///1秒定时更新状态 |
| | | timerUpdateStatus(); |
| | | #region ---界面布局--- |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | topView.setBtn.Visible = true; |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | |
| | | a31MusicSourcePage.Show(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | |
| | | |
| | | var middLayout = new FrameLayout |
| | | { |
| | | Y = topView.fLayout.Bottom, |
| | |
| | | this.AddChidren(middLayout); |
| | | ///加载播放音乐界面的控件方法 |
| | | playView.viewFrameLayout(middLayout); |
| | | #endregion |
| | | #region ---控件的点击事件--- |
| | | //收藏图标事件 |
| | | playView.collectIconBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | |
| | | } |
| | | |
| | | }; |
| | | #endregion |
| | | //快进滑动弹起事件; |
| | | playView.diyArcSeekBar.OnStopTrackingTouchEvent+= (sender, e) => |
| | | { |
| | |
| | | myListView.popFra.MouseUpEventHandler += removeFromParentView; |
| | | #endregion |
| | | loading.Start(); |
| | | System.Threading.Tasks.Task.Run(() => |
| | | GetMusicList((listName) => |
| | | { |
| | | string playListName = "List"; |
| | | string sourceName = "SourceName"; |
| | | try |
| | | { |
| | | if (A31MusicModel.Current.A31PlayStatus.Source == "STATION-NETWORK") |
| | | { |
| | | A31MusicModel.Current.CurrentPlayMusicInfoList = new List<MusicInfo>(); |
| | | return; |
| | | } |
| | | if (A31MusicModel.Current.A31PlayStatus.Source == "AIRPLAY") |
| | | { |
| | | A31MusicModel.Current.CurrentPlayMusicInfoList = new List<MusicInfo>(); |
| | | return; |
| | | } |
| | | var playString = SendMethod.GetCurrentPlayList(A31MusicModel.Current); |
| | | A31MusicModel.Current.CurrentPlayMusicInfoList = new List<MusicInfo>(); |
| | | var se = System.Security.SecurityElement.FromString(playString); |
| | | while (se.Children != null) |
| | | { |
| | | se = se.Children[0] as System.Security.SecurityElement; |
| | | } |
| | | playListName = SecurityElement.FromString(se.Text).SearchForChildByTag("ListName").Text; |
| | | sourceName = SecurityElement.FromString(se.Text).SearchForChildByTag("ListInfo").SearchForTextOfTag("SourceName"); |
| | | foreach (SecurityElement track in SecurityElement.FromString(se.Text).SearchForChildByTag("Tracks").Children) |
| | | { |
| | | MusicInfo musicInfo = new MusicInfo(); |
| | | musicInfo.URL = track.SearchForTextOfTag("URL").Replace("&", "&amp;"); |
| | | var metadata = track.SearchForTextOfTag("Metadata"); |
| | | musicInfo.SourceName = track.SearchForTextOfTag("Source"); |
| | | if (string.IsNullOrEmpty(metadata)) |
| | | { |
| | | continue; |
| | | } |
| | | if (A31MusicModel.IsJson(metadata)) |
| | | { |
| | | var qqSong = Newtonsoft.Json.JsonConvert.DeserializeObject<SendMethod.A31QQSong>(metadata); |
| | | musicInfo.Album = qqSong.album; |
| | | musicInfo.Title = qqSong.title; |
| | | musicInfo.Artist = qqSong.creator; |
| | | } |
| | | else |
| | | { |
| | | metadata = metadata.Replace("<?xml version=\"1.0\" encoding=\"UTF-8\"?>", "").Replace("&", "&amp;"); |
| | | var item = SecurityElement.FromString(metadata).SearchForChildByTag("item"); |
| | | musicInfo.Title = item.SearchForTextOfTag("dc:title"); |
| | | musicInfo.Artist = item.SearchForTextOfTag("upnp:artist"); |
| | | musicInfo.Album = item.SearchForTextOfTag("upnp:album"); |
| | | musicInfo.Duration = item.SearchForTextOfTag("res"); |
| | | musicInfo.AlbumId = item.SearchForTextOfTag("song:albumid"); |
| | | } |
| | | A31MusicModel.Current.CurrentPlayMusicInfoList.Add(musicInfo); |
| | | } |
| | | } |
| | | catch { } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | loading.Hide(); |
| | | PlayListView(myListView.popFra, myListView.verticalScrolViewLayout, playListName); |
| | | UpdateSelectedMusic(myListView.popFra, myListView.verticalScrolViewLayout); |
| | | }); |
| | | } |
| | | loading.Hide(); |
| | | PlayListView(myListView.popFra, myListView.verticalScrolViewLayout, listName); |
| | | UpdateSelectedMusic(myListView.popFra, myListView.verticalScrolViewLayout); |
| | | }); |
| | | |
| | | |
| | | }; |
| | | ///音量图标点击事件 |
| | | playView.volIconBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | if (A31MusicModel.Current.ServerClientType == 1 && A31MusicModel.Current.Slave.slave_list.Count != 0) |
| | | { ///主播放器 |
| | | //new View.DialogView { }.PlayerVolumeView(A31MusicModel.Current); |
| | | var volumeView = new View.DialogView { }; |
| | | volumeView.PlayerVolumeView(A31MusicModel.Current); |
| | | volumeView.UpdateVolume(); |
| | |
| | | } |
| | | |
| | | }; |
| | | |
| | | #endregion |
| | | } |
| | | /// <summary> |
| | | /// 定义全局线程 |
| | |
| | | playView.playOrderBtn.Enable = false; |
| | | break; |
| | | case "BLUETOOTH"://蓝牙 |
| | | playView.loveBtn.Alpha = 0.5f; |
| | | playView.loveBtn.Enable = false; |
| | | |
| | | playView.playlistBtn.Alpha = 0.5f; |
| | | playView.playlistBtn.Enable = false; |
| | | |
| | | playView.prevBtn.Alpha = 0.5f; |
| | | playView.prevBtn.Enable = false; |
| | | |
| | | playView.nextBtn.Alpha = 0.5f; |
| | | playView.nextBtn.Enable = false; |
| | | |
| | | playView.playOrderBtn.Alpha = 0.5f; |
| | | playView.playOrderBtn.Enable = false; |
| | | |
| | | break; |
| | | |
| | | |
| | | case "LINE-IN"://线路输入 |
| | | playView.loveBtn.Alpha = 0.5f; |
| | | playView.loveBtn.Enable = false; |
| | |
| | | |
| | | playView.playOrderBtn.Alpha = 0.5f; |
| | | playView.playOrderBtn.Enable = false; |
| | | break; |
| | | |
| | | break; |
| | | default: |
| | | playView.diyArcSeekBar.IsClickable = false; |
| | | playView.loveBtn.Alpha = 0.5f; |
| | |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 显示当前播放音乐View |
| | | /// 加载播放音乐列表View |
| | | /// </summary> |
| | | /// <param name="verticalScrolViewLayout"></param> |
| | | void PlayListView(FrameLayout frameLayout, VerticalRefreshLayout verticalScrolViewLayout, string playListName) |
| | | { |
| | | verticalScrolViewLayout.RemoveAll(); |
| | | int number = 0; |
| | | for (int i = 0; i < A31MusicModel.Current.CurrentPlayMusicInfoList.Count; i++) |
| | | { |
| | | number++; |
| | | var songs = A31MusicModel.Current.CurrentPlayMusicInfoList[i]; |
| | | View.SongView songView = new View.SongView(); |
| | | songView.SongFrameLayout(verticalScrolViewLayout, songs); |
| | | songView.loveIcon.Visible = false; |
| | | songView.addIcon.Visible = false; |
| | | songView.clickBtn.Width = Application.GetRealWidth(344); |
| | | songView.clickBtn.Tag = number;//标记播放哪一首歌曲 |
| | | ///点击播放事件 |
| | | songView.clickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | System.Threading.Thread.Sleep(50); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //移除界面 |
| | | frameLayout.RemoveFromParent(); |
| | | A31MusicModel.Current.A31PlayStatus.Title = songView.songBtn.Text; |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | SendMethod.ListMusicPlay(playListName, songView.clickBtn.Tag, A31MusicModel.Current); |
| | | }); |
| | | }); |
| | | }); |
| | | |
| | | }; |
| | | |
| | | } |
| | | UI2.FuntionControlView.Music.UpdateThread.playMusuc(verticalScrolViewLayout,"播放列表", playListName, A31MusicModel.Current.CurrentPlayMusicInfoList,A31MusicModel.Current,frameLayout); |
| | | } |
| | | /// <summary> |
| | | /// 定时更新当前播放音乐 |
| | |
| | | { |
| | | UI2.FuntionControlView.Music.UpdateThread.updateThread(frameLayout, middViewLayout, A31MusicModel.Current); |
| | | } |
| | | /// <summary> |
| | | /// 读取播放音乐列表 |
| | | /// </summary> |
| | | /// <param name="action"></param> |
| | | void GetMusicList(Action<string> action) { |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | string playListName = "List"; |
| | | string sourceName = "SourceName"; |
| | | try |
| | | { |
| | | if (A31MusicModel.Current.A31PlayStatus.Source == "STATION-NETWORK") |
| | | { |
| | | A31MusicModel.Current.CurrentPlayMusicInfoList = new List<MusicInfo>(); |
| | | return; |
| | | } |
| | | if (A31MusicModel.Current.A31PlayStatus.Source == "AIRPLAY") |
| | | { |
| | | A31MusicModel.Current.CurrentPlayMusicInfoList = new List<MusicInfo>(); |
| | | return; |
| | | } |
| | | var playString = SendMethod.GetCurrentPlayList(A31MusicModel.Current); |
| | | A31MusicModel.Current.CurrentPlayMusicInfoList = new List<MusicInfo>(); |
| | | var se = System.Security.SecurityElement.FromString(playString); |
| | | while (se.Children != null) |
| | | { |
| | | se = se.Children[0] as System.Security.SecurityElement; |
| | | } |
| | | playListName = SecurityElement.FromString(se.Text).SearchForChildByTag("ListName").Text; |
| | | sourceName = SecurityElement.FromString(se.Text).SearchForChildByTag("ListInfo").SearchForTextOfTag("SourceName"); |
| | | foreach (SecurityElement track in SecurityElement.FromString(se.Text).SearchForChildByTag("Tracks").Children) |
| | | { |
| | | MusicInfo musicInfo = new MusicInfo(); |
| | | musicInfo.URL = track.SearchForTextOfTag("URL").Replace("&", "&amp;"); |
| | | var metadata = track.SearchForTextOfTag("Metadata"); |
| | | musicInfo.SourceName = track.SearchForTextOfTag("Source"); |
| | | if (string.IsNullOrEmpty(metadata)) |
| | | { |
| | | continue; |
| | | } |
| | | if (A31MusicModel.IsJson(metadata)) |
| | | { |
| | | var qqSong = Newtonsoft.Json.JsonConvert.DeserializeObject<SendMethod.A31QQSong>(metadata); |
| | | musicInfo.Album = qqSong.album; |
| | | musicInfo.Title = qqSong.title; |
| | | musicInfo.Artist = qqSong.creator; |
| | | } |
| | | else |
| | | { |
| | | metadata = metadata.Replace("<?xml version=\"1.0\" encoding=\"UTF-8\"?>", "").Replace("&", "&amp;"); |
| | | var item = SecurityElement.FromString(metadata).SearchForChildByTag("item"); |
| | | musicInfo.Title = item.SearchForTextOfTag("dc:title"); |
| | | musicInfo.Artist = item.SearchForTextOfTag("upnp:artist"); |
| | | musicInfo.Album = item.SearchForTextOfTag("upnp:album"); |
| | | musicInfo.Duration = item.SearchForTextOfTag("res"); |
| | | musicInfo.AlbumId = item.SearchForTextOfTag("song:albumid"); |
| | | } |
| | | A31MusicModel.Current.CurrentPlayMusicInfoList.Add(musicInfo); |
| | | } |
| | | } |
| | | catch { } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | action(playListName); |
| | | //loading.Hide(); |
| | | //PlayListView(myListView.popFra, myListView.verticalScrolViewLayout, playListName); |
| | | //UpdateSelectedMusic(myListView.popFra, myListView.verticalScrolViewLayout); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | InitList(date); |
| | | #region 界面布局------ |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | topView.topNameBtn.TextID = StringId.radio; |
| | |
| | | }; |
| | | middViewLayout = new VerticalRefreshLayout |
| | | { |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Y = topView.fLayout.Bottom, |
| | | Height = Application.GetRealHeight(H_W.H - H_W.T_Height), |
| | | }; |
| | |
| | | RowLayout addFlieRow = new RowLayout |
| | | { |
| | | Height = Application.GetRealHeight(78), |
| | | LineColor = Color.WhiteColor, |
| | | LineColor = MusicColor.WhiteColor, |
| | | SubViewWidth = Application.GetRealWidth(90),//改变编辑控件宽度多少; |
| | | }; |
| | | middViewLayout.AddChidren(addFlieRow); |
| | |
| | | Y = Application.GetRealHeight(29), |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealHeight(20), |
| | | TextColor = Color.TextColor, |
| | | TextColor = MusicColor.TextColor, |
| | | TextSize = TextSize.Text14, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = radioInfo.Title, |
| | |
| | | { |
| | | return; |
| | | } |
| | | int startIndex1 = dataString.IndexOf("<body>"); |
| | | int startIndex1=dataString.IndexOf("<body>"); |
| | | int endIndex1 = dataString.IndexOf("</body>") + "</body>".Length; |
| | | if (endIndex1 <= startIndex1) |
| | | { |
| | |
| | | { |
| | | |
| | | #region 界面布局------ |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | topView.topNameBtn.Text= listName; |
| | |
| | | }; |
| | | middViewLayout = new VerticalRefreshLayout |
| | | { |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Y = topView.fLayout.Bottom, |
| | | Height = Application.GetRealHeight(H_W.H - H_W.T_Height), |
| | | }; |
| | |
| | | Y = Application.GetRealHeight(23), |
| | | Width = Application.GetRealWidth(250), |
| | | Height = Application.GetRealHeight(22), |
| | | TextColor = Color.MusicTxet14Color, |
| | | TextColor = MusicColor.MusicTxet14Color, |
| | | TextSize = TextSize.Text16, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Tag = radioInfo.URL, |
| | |
| | | RowLayout addFlieRow = new RowLayout |
| | | { |
| | | Height = Application.GetRealHeight(78), |
| | | LineColor = Color.WhiteColor, |
| | | LineColor = MusicColor.WhiteColor, |
| | | SubViewWidth = Application.GetRealWidth(90),//改变编辑控件宽度多少; |
| | | }; |
| | | middViewLayout.AddChidren(addFlieRow); |
| | |
| | | Y = Application.GetRealHeight(29), |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealHeight(20), |
| | | TextColor = Color.TextColor, |
| | | TextColor = MusicColor.TextColor, |
| | | TextSize = TextSize.Text14, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = radioInfo.Title, |
| | |
| | | { |
| | | #region 界面布局------ |
| | | |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | topView.topNameBtn.TextID = StringId.usb; |
| | |
| | | }; |
| | | middViewLayout = new VerticalRefreshLayout |
| | | { |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Y = topView.fLayout.Bottom, |
| | | Height = Application.GetRealHeight(H_W.H - H_W.T_Height), |
| | | }; |
| | |
| | | public void Show() |
| | | { |
| | | middViewLayout.RemoveAll(); |
| | | int number = 0; |
| | | for (int i = 0; i < A31MusicModel.Current.USBList.Count; i++) |
| | | { |
| | | number++; |
| | | var songs = A31MusicModel.Current.USBList[i]; |
| | | View.SongView songView = new View.SongView(); |
| | | songView.SongFrameLayout(middViewLayout, songs); |
| | | // 添加喜爱音乐控件 |
| | | songView.loveIcon.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | songView.loveIcon.IsSelected = !songView.loveIcon.IsSelected; |
| | | if (songView.loveIcon.IsSelected) |
| | | { |
| | | ///查找音乐是否存在在列表 |
| | | var music1 = A31MusicModel.Current.LoveMusicInfoList.Find((m) => m.URL == songs.URL); |
| | | if (music1 == null) |
| | | { |
| | | ///没有存在就添加 |
| | | A31MusicModel.Current.LoveMusicInfoList.Add(songs); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | ///查找音乐是否存在在列表 |
| | | var music1 = A31MusicModel.Current.LoveMusicInfoList.Find((m) => m.URL == songs.URL); |
| | | if (music1 != null) |
| | | { |
| | | ///存在就删除 |
| | | A31MusicModel.Current.LoveMusicInfoList.Remove(songs); |
| | | } |
| | | |
| | | } |
| | | A31MusicModel.Save(); |
| | | }; |
| | | //添加到我的列表 |
| | | songView.addIcon.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | new View.DialogView { }.FieListView(songs); |
| | | }; |
| | | songView.clickBtn.Tag = number;//标记播放哪一首歌曲 |
| | | ///点击播放事件 |
| | | songView.clickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | System.Threading.Thread.Sleep(50); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //移除界面 |
| | | A31MusicModel.Current.A31PlayStatus.Title = songView.songBtn.Text; |
| | | MainPage.BasePageView.RemoveViewByTag("Music"); |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | SendMethod.ListMusicPlay("USBDiskQueue", songView.clickBtn.Tag, A31MusicModel.Current); |
| | | }); |
| | | }); |
| | | }); |
| | | |
| | | }; |
| | | |
| | | } |
| | | UI2.FuntionControlView.Music.UpdateThread.playMusuc(middViewLayout, "USB", "USBDiskQueue",A31MusicModel.Current.USBList, A31MusicModel.Current); |
| | | } |
| | | /// <summary> |
| | | /// 定时更新当前播放音乐 |
| | |
| | | { |
| | | |
| | | #region 界面布局 |
| | | this.BackgroundColor = Color.ViewColor; |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | | this.AddChidren(topView.TopFLayoutView()); |
| | | topView.topNameBtn.TextID =StringId.a31Music; |
| | |
| | | musicView.singerBtn.Text = a31player.A31PlayStatus.Artist; |
| | | musicView.songNameBtn.Text = a31player.A31PlayStatus.Title; |
| | | musicView.musicNameBtn.Text = new View.DialogView { }.NamePlayer(a31player); |
| | | |
| | | if (a31player.IsEnd) |
| | | { |
| | | musicView.muiscFl.Height = Application.GetRealHeight(12 + 139 + 12); |
| | |
| | | a31MusicModel.A31PlayStatus.loop = se.SearchForTextOfTag("LoopMode"); |
| | | a31MusicModel.A31PlayStatus.Source = se.SearchForTextOfTag("PlayMedium"); |
| | | a31MusicModel.A31PlayStatus.playSource = se.SearchForTextOfTag("TrackSource"); |
| | | a31MusicModel.A31PlayStatus.TrackURL = se.SearchForTextOfTag("TrackURI"); |
| | | a31MusicModel.A31PlayStatus.TrackURL = se.SearchForTextOfTag("TrackURI").Replace("&", "&amp;"); |
| | | |
| | | } |
| | | catch (Exception ex) |
| | |
| | | foreach (SecurityElement track in SecurityElement.FromString(se.Text).SearchForChildByTag("Tracks").Children) |
| | | { |
| | | MusicInfo musicInfo = new MusicInfo(); |
| | | musicInfo.URL = track.SearchForTextOfTag("URL"); |
| | | musicInfo.URL = track.SearchForTextOfTag("URL").Replace("&", "&amp;"); |
| | | var metadata = track.SearchForTextOfTag("Metadata").Replace("&", "&"); |
| | | var item = SecurityElement.FromString(metadata).SearchForChildByTag("item"); |
| | | musicInfo.Title = item.SearchForTextOfTag("dc:title"); |
| | | musicInfo.Artist = item.SearchForTextOfTag("upnp:artist"); |
| | | musicInfo.Album = item.SearchForTextOfTag("upnp:album"); |
| | | musicInfo.Title = item.SearchForTextOfTag("dc:title").Replace("&", "&amp;"); |
| | | musicInfo.Artist = item.SearchForTextOfTag("upnp:artist").Replace("&", "&amp;"); |
| | | musicInfo.Album = item.SearchForTextOfTag("upnp:album").Replace("&", "&amp;"); |
| | | musicInfo.Duration = item.SearchForTextOfTag("res"); |
| | | musicInfo.AlbumId = item.SearchForTextOfTag("song:albumid"); |
| | | musicInfo.AlbumId = item.SearchForTextOfTag("song:albumid").Replace("&", "&amp;"); |
| | | musicInfoList.Add(musicInfo); |
| | | } |
| | | return musicInfoList; |
| | |
| | | /// <param name="musicInfo">播放音乐</param> |
| | | /// <param name="listName">列表名称</param> |
| | | /// <param name="musicList">推送列表(默认推50首)</param> |
| | | public static void PushList(MusicInfo musicInfo, string listName, List<MusicInfo> musicList, A31MusicModel a31player,bool bool_listName = false) |
| | | public static void PushList(MusicInfo musicInfo, string listName, List<MusicInfo> musicList, A31MusicModel a31player,string musicSource) |
| | | { |
| | | |
| | | //最大发送的条数 |
| | |
| | | tempMusicInfo.URL = "http://" + new Shared.Net.NetWiFi().IpAddress + ":" + com.hdl.on.Server.Port + "/" + tempMusicInfo.ID; |
| | | } |
| | | |
| | | |
| | | sb.AppendLine("<Track" + Tracknumber + ">"); |
| | | sb.AppendLine("<URL>" + tempMusicInfo.URL + "</URL>"); |
| | | sb.AppendLine("<Metadata>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;"); |
| | |
| | | |
| | | 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;"); |
| | | if (bool_listName) { |
| | | if (musicSource== "我的列表") { |
| | | sb.AppendLine("&lt;upnp:artist&gt;" + listName + "&lt;/upnp:artist&gt;"); |
| | | } |
| | | else { |
| | | sb.AppendLine("&lt;upnp:artist&gt;" + tempMusicInfo.Artist + "&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;"); |
| | |
| | | { |
| | | while (frame.Parent != null) |
| | | { |
| | | A31MusicModel.LogMusic("已启动更新音乐列表某一条音乐状态的线程"); |
| | | //A31MusicModel.LogMusic("已启动更新音乐列表某一条音乐状态的线程"); |
| | | System.Threading.Thread.Sleep(1000); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | |
| | | if (a31MusicModel.A31PlayStatus.TrackURL == songNameBtn.Tag.ToString()) |
| | | { |
| | | volIconBtn.Visible = true; |
| | | songNameBtn.TextColor = UI.Music.Color.SelectedColor; |
| | | songNameBtn.TextColor = UI.Music.MusicColor.SelectedColor; |
| | | songNameBtn.X = Application.GetRealWidth(48); |
| | | artistNameBtn.X = songNameBtn.Right; |
| | | artistNameBtn.TextColor = UI.Music.Color.SelectedColor; |
| | | artistNameBtn.TextColor = UI.Music.MusicColor.SelectedColor; |
| | | } |
| | | else |
| | | { |
| | | volIconBtn.Visible = false; |
| | | songNameBtn.TextColor = UI.Music.Color.MusicTxet14Color; |
| | | songNameBtn.TextColor = UI.Music.MusicColor.MusicTxet14Color; |
| | | songNameBtn.X = Application.GetRealWidth(16); |
| | | artistNameBtn.X = songNameBtn.Right; |
| | | artistNameBtn.TextColor = UI.Music.Color.MusicNoTxetColor; |
| | | artistNameBtn.TextColor = UI.Music.MusicColor.MusicNoTxetColor; |
| | | } |
| | | |
| | | |
| | |
| | | }); |
| | | updateSelectedMusicThread.Start(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 播放音乐 |
| | | /// </summary> |
| | | /// <param name="middViewLayout">上下拉动父控件</param> |
| | | /// <param name="musicSource">音乐源</param> |
| | | /// <param name="listName">播放列表名</param> |
| | | /// <param name="musicList">播放音乐列表</param> |
| | | /// <param name="a31MusicModel">音乐播放器</param> |
| | | public static void playMusuc(VerticalRefreshLayout middViewLayout, string musicSource, string listName,List<MusicInfo> musicList, A31MusicModel a31MusicModel, FrameLayout frame=null) |
| | | { |
| | | for (int i = 0; i < musicList.Count; i++) |
| | | { |
| | | var songs = musicList[i]; |
| | | if (songs == null) |
| | | { |
| | | continue; |
| | | } |
| | | UI.Music.View.SongView songView = new UI.Music.View.SongView(); |
| | | songView.SongFrameLayout(middViewLayout, songs); |
| | | switch (musicSource) |
| | | { |
| | | case "本地音乐": |
| | | { |
| | | songs.URL = "http://" + new Shared.Net.NetWiFi().IpAddress + ":" + com.hdl.on.Server.Port + "/" + songs.ID; |
| | | } |
| | | break; |
| | | case "USB": |
| | | { |
| | | songView.clickBtn.Tag = i + 1; |
| | | } |
| | | break; |
| | | case "我的列表": |
| | | { |
| | | ///删除控件 |
| | | var delBtn = new Button |
| | | { |
| | | BackgroundColor = MusicColor.MusicDelColor, |
| | | Text = Language.StringByID(StringId.delMusic), |
| | | TextColor = MusicColor.WhiteColor, |
| | | TextSize = TextSize.Text16, |
| | | }; |
| | | songView.musicViewFl.AddRightView(delBtn); |
| | | delBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | musicList.Remove(songs); |
| | | A31MusicModel.Save(); |
| | | songView.musicViewFl.RemoveFromParent(); |
| | | }; |
| | | } |
| | | break; |
| | | case "播放列表": |
| | | { |
| | | songView.loveIcon.Visible = false; |
| | | songView.addIcon.Visible = false; |
| | | var wText = songView.songBtn.GetTextWidth() + Application.GetRealWidth(15); |
| | | if (wText > Application.GetRealWidth(280)) |
| | | { |
| | | wText = Application.GetRealWidth(280);//(歌曲+歌手)宽度最大值时220 |
| | | } |
| | | songView.songBtn.Width = wText; |
| | | songView.singerBtn.X = songView.songBtn.Right; |
| | | songView.singerBtn.Width = Application.GetRealWidth(280) - wText;//歌名长度小于220才可以显示歌手出来 |
| | | songView.singerBtn.Text = string.IsNullOrEmpty(songs.Artist) ? "-Unkonw" : "-" + songs.Artist.Trim(); |
| | | songView.clickBtn.Width = Application.GetRealWidth(344); |
| | | songView.clickBtn.Tag = i + 1;//标记播放哪一首歌曲 |
| | | } |
| | | break; |
| | | } |
| | | |
| | | //添加喜爱音乐控件 |
| | | songView.loveIcon.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | songView.loveIcon.IsSelected = !songView.loveIcon.IsSelected; |
| | | if (songView.loveIcon.IsSelected) |
| | | { |
| | | ///查找音乐是否存在在列表 |
| | | var music1 = A31MusicModel.Current.LoveMusicInfoList.Find((m) => m.URL == songs.URL); |
| | | if (music1 == null) |
| | | { |
| | | ///没有存在就添加 |
| | | A31MusicModel.Current.LoveMusicInfoList.Add(songs); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | ///查找音乐是否存在在列表 |
| | | var music1 = A31MusicModel.Current.LoveMusicInfoList.Find((m) => m.URL == songs.URL); |
| | | if (music1 != null) |
| | | { |
| | | ///存在就删除 |
| | | A31MusicModel.Current.LoveMusicInfoList.Remove(songs); |
| | | } |
| | | |
| | | if (musicSource == "我的最爱") |
| | | { |
| | | songView.musicViewFl.RemoveFromParent(); |
| | | } |
| | | |
| | | } |
| | | A31MusicModel.Save(); |
| | | }; |
| | | //添加到我的列表 |
| | | songView.addIcon.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | new HDL_ON.UI.Music.View.DialogView { }.FieListView(songs); |
| | | }; |
| | | ///点击播放事件 |
| | | songView.clickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | System.Threading.Thread.Sleep(50); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //移除界面 |
| | | A31MusicModel.Current.A31PlayStatus.Title = songView.songBtn.Text; |
| | | if (frame != null) |
| | | { |
| | | frame.RemoveFromParent(); |
| | | } |
| | | MainPage.BasePageView.RemoveViewByTag("Music"); |
| | | System.Threading.Tasks.Task.Run(() => |
| | | { |
| | | if (musicSource == "本地音乐"|| musicSource == "我的最爱"|| musicSource == "我的列表") |
| | | { |
| | | SendMethod.PushList(songs, listName, musicList, a31MusicModel,musicSource); |
| | | } |
| | | else if (musicSource == "USB"|| musicSource == "播放列表") |
| | | { |
| | | SendMethod.ListMusicPlay(listName, songView.clickBtn.Tag, A31MusicModel.Current); |
| | | } |
| | | }); |
| | | }); |
| | | }); |
| | | }; |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | //主控件 |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | BackgroundColor = Color.PopupBackgroundColor, |
| | | BackgroundColor = MusicColor.PopupBackgroundColor, |
| | | }; |
| | | dialog.Show(); |
| | | //父控件 |
| | |
| | | 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); |
| | |
| | | Height = Application.GetRealHeight(20), |
| | | TextID = StringId.cancelMusic, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text14, |
| | | }; |
| | | topFra.AddChidren(cancelnBtn); |
| | |
| | | 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, |
| | |
| | | RowLayout addFlieRow = new RowLayout |
| | | { |
| | | Height = Application.GetRealHeight(78), |
| | | LineColor = Color.WhiteColor, |
| | | LineColor = MusicColor.WhiteColor, |
| | | SubViewWidth = Application.GetRealWidth(80),//改变编辑控件宽度多少; |
| | | }; |
| | | verticalScrolViewLayout.AddChidren(addFlieRow); |
| | |
| | | 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, |
| | |
| | | ///编辑控件 |
| | | 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); |
| | |
| | | ///删除控件 |
| | | 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); |
| | |
| | | //主控件 |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | BackgroundColor = Color.PopupBackgroundColor, |
| | | BackgroundColor = MusicColor.PopupBackgroundColor, |
| | | }; |
| | | dialog.Show(); |
| | | //父控件 |
| | |
| | | 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); |
| | |
| | | Height = Application.GetRealHeight(20), |
| | | TextID = StringId.cancelMusic, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text14, |
| | | }; |
| | | topFra.AddChidren(cancelnBtn); |
| | |
| | | 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, |
| | |
| | | Height = Application.GetRealHeight(20), |
| | | TextID = StringId.confirmMusic, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = Color.SelectedColor, |
| | | TextColor = MusicColor.SelectedColor, |
| | | TextSize = TextSize.Text14, |
| | | }; |
| | | topFra.AddChidren(confirmBtn); |
| | |
| | | RowLayout PlayRow = new RowLayout |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | LineColor = Color.WhiteColor, |
| | | LineColor = MusicColor.WhiteColor, |
| | | SubViewWidth = Application.GetRealWidth(80),//改变编辑控件宽度多少; |
| | | }; |
| | | verticalScrolViewLayout.AddChidren(PlayRow); |
| | |
| | | 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), |
| | |
| | | X = Application.GetRealWidth(20), |
| | | Width = Application.GetRealWidth(304), |
| | | Height = 1, |
| | | BackgroundColor = Color.LineColor, |
| | | BackgroundColor = MusicColor.LineColor, |
| | | }; |
| | | PlayRow.AddChidren(lineBtn); |
| | | } |
| | |
| | | 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); |
| | |
| | | Height = Application.GetRealHeight(20), |
| | | TextID = StringId.cancelMusic, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text14, |
| | | }; |
| | | topFra.AddChidren(cancelnBtn); |
| | |
| | | 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, |
| | |
| | | Height = Application.GetRealHeight(20), |
| | | TextID = StringId.confirmMusic, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = Color.SelectedColor, |
| | | TextColor = MusicColor.SelectedColor, |
| | | TextSize = TextSize.Text14, |
| | | }; |
| | | topFra.AddChidren(confirmBtn); |
| | |
| | | RowLayout addFlieRow = new RowLayout |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | LineColor = Color.WhiteColor, |
| | | LineColor = MusicColor.WhiteColor, |
| | | }; |
| | | verticalScrolViewLayout.AddChidren(addFlieRow); |
| | | |
| | |
| | | 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, |
| | |
| | | Y = Application.GetRealHeight(15), |
| | | 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(), |
| | |
| | | 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), |
| | |
| | | X = Application.GetRealWidth(20), |
| | | Width = Application.GetRealWidth(304), |
| | | Height = 1, |
| | | BackgroundColor = Color.LineColor, |
| | | BackgroundColor = MusicColor.LineColor, |
| | | }; |
| | | addFlieRow.AddChidren(lineBtn); |
| | | } |
| | |
| | | //主控件 |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | BackgroundColor = Color.PopupBackgroundColor, |
| | | BackgroundColor = MusicColor.PopupBackgroundColor, |
| | | }; |
| | | dialog.Show(); |
| | | //父控件 |
| | |
| | | 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); |
| | |
| | | Height = Application.GetRealHeight(20), |
| | | TextID = StringId.cancelMusic, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text14, |
| | | }; |
| | | topFra.AddChidren(cancelnBtn); |
| | |
| | | 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, |
| | |
| | | Height = Application.GetRealHeight(20), |
| | | TextID = StringId.confirmMusic, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = Color.SelectedColor, |
| | | TextColor = MusicColor.SelectedColor, |
| | | TextSize = TextSize.Text14, |
| | | }; |
| | | topFra.AddChidren(confirmBtn); |
| | |
| | | RowLayout PlayRow = new RowLayout |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | LineColor = Color.WhiteColor, |
| | | LineColor = MusicColor.WhiteColor, |
| | | SubViewWidth = Application.GetRealWidth(80),//改变编辑控件宽度多少; |
| | | }; |
| | | verticalScrolViewLayout.AddChidren(PlayRow); |
| | |
| | | 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), |
| | |
| | | X = Application.GetRealWidth(20), |
| | | Width = Application.GetRealWidth(304), |
| | | Height = 1, |
| | | BackgroundColor = Color.LineColor, |
| | | BackgroundColor = MusicColor.LineColor, |
| | | }; |
| | | PlayRow.AddChidren(lineBtn); |
| | | } |
| | |
| | | Y = Application.GetRealHeight(397-20), |
| | | Width = Application.GetRealWidth(344), |
| | | Height = Application.GetRealHeight(250+20), |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Radius = (uint)Application.GetRealHeight(12), |
| | | }; |
| | | frame.AddChidren(dialogFra); |
| | |
| | | Height = Application.GetRealHeight(20), |
| | | TextID = StringId.cancelMusic, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text14, |
| | | }; |
| | | topFra.AddChidren(cancelnBtn); |
| | |
| | | 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, |
| | |
| | | Height = Application.GetRealHeight(20), |
| | | TextID = StringId.confirmMusic, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = Color.SelectedColor, |
| | | TextColor = MusicColor.SelectedColor, |
| | | TextSize = TextSize.Text14, |
| | | }; |
| | | topFra.AddChidren(confirmBtn); |
| | |
| | | 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), |
| | |
| | | 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),//进度条的高度 |
| | |
| | | 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() + "%", |
| | |
| | | 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), |
| | |
| | | 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),//进度条的高度 |
| | |
| | | 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 = player.A31PlayStatus.vol + "%", |
| | |
| | | /// </summary> |
| | | public FrameLayout fLayout = new FrameLayout |
| | | { |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Height = Application.GetRealHeight(50), |
| | | Width = Application.GetRealWidth(375), |
| | | }; |
| | |
| | | Y = Application.GetRealHeight(14), |
| | | Width = Application.GetRealWidth(140), |
| | | Height = Application.GetRealHeight(22), |
| | | TextColor = Color.TextColor, |
| | | TextColor = MusicColor.TextColor, |
| | | TextSize = TextSize.Text16, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | |
| | | Width = Application.GetRealWidth(140), |
| | | Height = Application.GetRealHeight(20), |
| | | TextAlignment=TextAlignment.CenterRight, |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text14, |
| | | }; |
| | | |
| | | /// <summary> |
| | | ///下一级菜单图标 |
| | | /// </summary> |
| | | public Button nextLevelBtn = new Button |
| | | public Button nextLevelBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | | Y = Application.GetRealHeight(17), |
| | |
| | | public Button lineBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(375-16-16), |
| | | BackgroundColor = Color.LineColor, |
| | | Width = Application.GetRealWidth(375 - 16 - 16), |
| | | BackgroundColor = MusicColor.LineColor, |
| | | }; |
| | | |
| | | /// <summary> |
| | |
| | | Y = Application.GetRealHeight(12), |
| | | Height = Application.GetRealHeight(139), |
| | | Width = Application.GetRealWidth(375 - 16 * 2), |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Radius= (uint)Application.GetRealHeight(12), |
| | | }; |
| | | /// <summary> |
| | |
| | | Y = Application.GetRealHeight(18), |
| | | Width = Application.GetRealWidth(70), |
| | | Height = Application.GetRealHeight(25), |
| | | BackgroundColor = Color.ViewColor, |
| | | BackgroundColor = MusicColor.ViewColor, |
| | | Radius = (uint)Application.GetRealHeight(12), |
| | | }; |
| | | /// <summary> |
| | |
| | | Y = Application.GetRealHeight(18 + 4), |
| | | Width = Application.GetRealWidth(24+3+5), |
| | | Height = Application.GetRealHeight(17), |
| | | TextColor = Color.TextColor, |
| | | TextColor = MusicColor.TextColor, |
| | | TextSize=TextSize.Text12, |
| | | |
| | | }; |
| | |
| | | Y = Application.GetRealHeight(12), |
| | | Width = Application.GetRealWidth(140), |
| | | Height = Application.GetRealHeight(20), |
| | | TextColor = Color.MusicTxet14Color, |
| | | TextColor = MusicColor.MusicTxet14Color, |
| | | TextSize = TextSize.Text14, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | |
| | | Y = Application.GetRealHeight(36), |
| | | Width = Application.GetRealWidth(120), |
| | | Height = Application.GetRealHeight(14), |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text10, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | |
| | |
| | | Y = Application.GetRealHeight(40),//58 |
| | | Width = Application.GetRealWidth(140), |
| | | Height = Application.GetRealHeight(17), |
| | | TextColor = Color.TextCancelColor, |
| | | TextColor = MusicColor.TextCancelColor, |
| | | TextSize = TextSize.Text12, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | |
| | | Y = Application.GetRealHeight(61),//79 |
| | | Width = Application.GetRealWidth(120), |
| | | Height = Application.GetRealHeight(14), |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text10, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | |
| | |
| | | /// </summary> |
| | | public FrameLayout popFra = new FrameLayout() |
| | | { |
| | | BackgroundColor = UI.Music.Color.PopupBackgroundColor, |
| | | BackgroundColor = UI.Music.MusicColor.PopupBackgroundColor, |
| | | }; |
| | | /// <summary> |
| | | /// 整个白色控件父 |
| | |
| | | Y = Application.GetRealHeight(187), |
| | | Width = Application.GetRealWidth(344), |
| | | Height = Application.GetRealHeight(460), |
| | | BackgroundColor = UI.Music.Color.WhiteColor, |
| | | BackgroundColor = UI.Music.MusicColor.WhiteColor, |
| | | Radius = (uint)Application.GetRealHeight(12), |
| | | }; |
| | | |
| | |
| | | Y = Application.GetRealHeight(14), |
| | | Width = Application.GetRealWidth(120), |
| | | Height = Application.GetRealHeight(22), |
| | | TextColor = UI.Music.Color.TextColor, |
| | | TextColor = UI.Music.MusicColor.TextColor, |
| | | TextSize = UI.Music.TextSize.Text16, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | |
| | | Width = Application.GetRealWidth(28 + 12),//28 |
| | | Height = Application.GetRealHeight(20), |
| | | TextID = StringId.cancelMusic, |
| | | TextColor = UI.Music.Color.MusicNoTxetColor, |
| | | TextColor = UI.Music.MusicColor.MusicNoTxetColor, |
| | | TextSize = UI.Music.TextSize.Text14, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | |
| | | // Y = topFra.Height - 1, |
| | | Width = Application.GetRealWidth(344), |
| | | //Height = UI.Music.H_W.Line, |
| | | BackgroundColor = UI.Music.Color.LineColor, |
| | | BackgroundColor = UI.Music.MusicColor.LineColor, |
| | | }; |
| | | /// <summary> |
| | | ///显示歌曲列表父控件 |
| | |
| | | Y = Application.GetRealHeight(16), |
| | | Width = Application.GetRealWidth(100), |
| | | Height = Application.GetRealHeight(33), |
| | | TextColor = Color.MusicTxet14Color, |
| | | TextColor = MusicColor.MusicTxet14Color, |
| | | TextSize = TextSize.Text24, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = StringId.a31Music, |
| | |
| | | Y = Application.GetRealHeight(53), |
| | | Width = Application.GetRealWidth(100), |
| | | Height = Application.GetRealHeight(17), |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text12, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | |
| | |
| | | { |
| | | Width = Application.GetMinRealAverage(202), |
| | | Height = Application.GetMinRealAverage(202), |
| | | ProgressBarColor = Color.SelectedColor, |
| | | ProgressBarColor = MusicColor.SelectedColor, |
| | | OpenAngle = 0,//开口角度 |
| | | ArcWidth = Application.GetRealWidth(4),//进度宽度 |
| | | ThumbImagePath = "MusicIcon/thumbImage.png",//进度条按钮图标 |
| | |
| | | Y = Application.GetRealHeight(261), |
| | | Width = Application.GetRealWidth(37 + 5), |
| | | Height = Application.GetRealHeight(20), |
| | | TextColor = Color.TextTimeColor, |
| | | TextColor = MusicColor.TextTimeColor, |
| | | TextSize = TextSize.Text14, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | |
| | | Y = Application.GetRealHeight(261), |
| | | Width = Application.GetRealWidth(37 + 5), |
| | | Height = Application.GetRealHeight(20), |
| | | TextColor = Color.TextTimeColor, |
| | | TextColor = MusicColor.TextTimeColor, |
| | | TextSize = TextSize.Text14, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | }; |
| | |
| | | Y = Application.GetRealHeight(290), |
| | | Width = Application.GetRealWidth(203), |
| | | Height = Application.GetRealHeight(30), |
| | | TextColor = Color.TextColor, |
| | | TextColor = MusicColor.TextColor, |
| | | TextSize = TextSize.Text16, |
| | | }; |
| | | |
| | |
| | | Y = Application.GetRealHeight(322), |
| | | Width = Application.GetRealWidth(203), |
| | | Height = Application.GetRealHeight(21), |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text12, |
| | | |
| | | }; |
| | |
| | | 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),//进度条的高度 |
| | |
| | | Width = Application.GetRealWidth(26 + 4), |
| | | Height = Application.GetRealHeight(17), |
| | | Text = "0%", |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text12, |
| | | }; |
| | | /// <summary> |
| | |
| | | public static int Text10 = 10; |
| | | |
| | | } |
| | | public static class Color |
| | | public static class MusicColor |
| | | { |
| | | /// <summary> |
| | | /// 顶部背景颜色 |
| | |
| | | { |
| | | Width = Application.GetRealWidth(375), |
| | | Height = Application.GetRealHeight(44), |
| | | LineColor= Color.WhiteColor, |
| | | LineColor= MusicColor.WhiteColor, |
| | | }; |
| | | |
| | | /// <summary> |
| | |
| | | Y = Application.GetRealHeight(11), |
| | | // Width = wText + Application.GetRealWidth(5), |
| | | Height = Application.GetRealHeight(22), |
| | | TextColor = Color.MusicTxet14Color, |
| | | TextColor = MusicColor.MusicTxet14Color, |
| | | TextSize = TextSize.Text16, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Name = "song", |
| | |
| | | public Button singerBtn = new Button |
| | | { |
| | | Y = Application.GetRealHeight(11), |
| | | //Width = Application.GetRealWidth(220) - wText,//歌名长度小于250才可以显示歌手出来 |
| | | //Width = Application.GetRealWidth(220) - wText,//歌名长度小于220才可以显示歌手出来 |
| | | Height = Application.GetRealHeight(22), |
| | | TextColor = Color.MusicNoTxetColor, |
| | | TextColor = MusicColor.MusicNoTxetColor, |
| | | TextSize = TextSize.Text12, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | //Text =("-" +songs.Artist).Trim(), |
| | |
| | | var wText = songBtn.GetTextWidth() + Application.GetRealWidth(15); |
| | | if (wText > Application.GetRealWidth(220)) |
| | | { |
| | | wText = Application.GetRealWidth(220);//(歌曲+歌手)宽度最大值时260 |
| | | wText = Application.GetRealWidth(220);//(歌曲+歌手)宽度最大值时220 |
| | | } |
| | | songBtn.Width = wText; |
| | | singerBtn.X = songBtn.Right; |
| | | singerBtn.Width = Application.GetRealWidth(220) - wText;//歌名长度小于250才可以显示歌手出来 |
| | | singerBtn.Width = Application.GetRealWidth(220) - wText;//歌名长度小于220才可以显示歌手出来 |
| | | singerBtn.Text = string.IsNullOrEmpty(songs.Artist) ? "-Unkonw" : "-" + songs.Artist.Trim(); |
| | | var music = A31MusicModel.Current.LoveMusicInfoList.Find((m) => m.URL == songs.URL); |
| | | if (music != null) |
| | |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | BackgroundColor = Color.PopupBackgroundColor, |
| | | BackgroundColor = MusicColor.PopupBackgroundColor, |
| | | }; |
| | | |
| | | FrameLayout whiteView = new FrameLayout() |
| | |
| | | Y = Application.GetRealHeight(264), |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealHeight(172), |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | BorderColor = 0x00000000, |
| | | BorderWidth = 0, |
| | | Radius = (uint)Application.GetRealHeight(RradiusFrameLayout), |
| | |
| | | X=Application.GetRealWidth(35), |
| | | Height = Application.GetRealHeight(22), |
| | | Width=Application.GetRealWidth(200), |
| | | TextColor =Color.SelectedColor, |
| | | TextColor =MusicColor.SelectedColor, |
| | | TextSize =TextSize.Text16, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextID = titleId, |
| | |
| | | X=Application.GetRealWidth(24), |
| | | Width = Application.GetRealWidth(222), |
| | | Height = Application.GetRealHeight(40), |
| | | BackgroundColor =Color.ViewColor, |
| | | BackgroundColor =MusicColor.ViewColor, |
| | | BorderColor = 0x00000000, |
| | | BorderWidth = 0, |
| | | Radius = (uint)Application.GetMinRealAverage(radiusEditFrameLayout), |
| | |
| | | Width = Application.GetRealWidth(160), |
| | | Height=Application.GetRealHeight(20), |
| | | Text = tnputEditTxet, |
| | | TextColor = Color.TextColor, |
| | | TextColor = MusicColor.TextColor, |
| | | TextSize = TextSize.Text14, |
| | | TextAlignment=TextAlignment.CenterLeft, |
| | | |
| | |
| | | { |
| | | Y = whiteView.Height-Application.GetRealHeight(44+1), |
| | | Height = Application.GetRealHeight(1), |
| | | BackgroundColor =Color.LineColor, |
| | | BackgroundColor =MusicColor.LineColor, |
| | | }; |
| | | whiteView.AddChidren(btnLine); |
| | | |
| | |
| | | Width = Application.GetRealWidth(135), |
| | | Height = Application.GetRealHeight(44), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = Color.TextCancelColor, |
| | | TextColor = MusicColor.TextCancelColor, |
| | | TextSize = TextSize.Text16, |
| | | TextID = StringId.cancelMusic, |
| | | Gravity = Gravity.BottomLeft, |
| | |
| | | Width = Application.GetRealWidth(135), |
| | | Height = Application.GetRealHeight(44), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = Color.WhiteColor, |
| | | TextColor = MusicColor.WhiteColor, |
| | | IsBold = true, |
| | | TextSize = TextSize.Text16, |
| | | TextID = StringId.confirmMusic, |
| | | BackgroundColor = Color.SelectedColor, |
| | | BackgroundColor = MusicColor.SelectedColor, |
| | | Gravity = Gravity.BottomRight, |
| | | }; |
| | | whiteView.AddChidren(btnConfirm); |
| | |
| | | btnTip.Width = Application.GetRealWidth(222); |
| | | btnTip.Height = Application.GetRealHeight(17); |
| | | btnTip.Text = tipMsgString; |
| | | btnTip.TextColor = Color.RedColor; |
| | | btnTip.TextColor = MusicColor.RedColor; |
| | | btnTip.TextSize = TextSize.Text12; |
| | | btnTip.TextAlignment = TextAlignment.CenterLeft; |
| | | |
| | |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | BackgroundColor = Color.PopupBackgroundColor, |
| | | BackgroundColor = MusicColor.PopupBackgroundColor, |
| | | }; |
| | | |
| | | FrameLayout whiteView = new FrameLayout() |
| | |
| | | Y = Application.GetRealHeight(264), |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealHeight(172), |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | BorderColor = 0x00000000, |
| | | BorderWidth = 0, |
| | | Radius = (uint)Application.GetRealHeight(RradiusFrameLayout), |
| | |
| | | X = Application.GetRealWidth(35), |
| | | Height = Application.GetRealHeight(22), |
| | | Width = Application.GetRealWidth(200), |
| | | TextColor = Color.SelectedColor, |
| | | TextColor = MusicColor.SelectedColor, |
| | | TextSize = TextSize.Text16, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextID = titleId, |
| | |
| | | X = Application.GetRealWidth(24), |
| | | Width = Application.GetRealWidth(222), |
| | | Height = Application.GetRealHeight(40), |
| | | BackgroundColor = Color.ViewColor, |
| | | BackgroundColor = MusicColor.ViewColor, |
| | | BorderColor = 0x00000000, |
| | | BorderWidth = 0, |
| | | Radius = (uint)Application.GetMinRealAverage(radiusEditFrameLayout), |
| | |
| | | Width = Application.GetRealWidth(160), |
| | | Height = Application.GetRealHeight(20), |
| | | Text = tnputEditTxet, |
| | | TextColor = Color.TextColor, |
| | | TextColor = MusicColor.TextColor, |
| | | TextSize = TextSize.Text14, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | |
| | | { |
| | | Y = whiteView.Height - Application.GetRealHeight(44 + 1), |
| | | Height = Application.GetRealHeight(1), |
| | | BackgroundColor = Color.LineColor, |
| | | BackgroundColor = MusicColor.LineColor, |
| | | }; |
| | | whiteView.AddChidren(btnLine); |
| | | |
| | |
| | | Width = Application.GetRealWidth(135), |
| | | Height = Application.GetRealHeight(44), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = Color.TextCancelColor, |
| | | TextColor = MusicColor.TextCancelColor, |
| | | TextSize = TextSize.Text16, |
| | | TextID = StringId.cancelMusic, |
| | | Gravity = Gravity.BottomLeft, |
| | |
| | | Width = Application.GetRealWidth(135), |
| | | Height = Application.GetRealHeight(44), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = Color.WhiteColor, |
| | | TextColor = MusicColor.WhiteColor, |
| | | IsBold = true, |
| | | TextSize = TextSize.Text16, |
| | | TextID = StringId.confirmMusic, |
| | | BackgroundColor = Color.SelectedColor, |
| | | BackgroundColor = MusicColor.SelectedColor, |
| | | Gravity=Gravity.BottomRight, |
| | | }; |
| | | whiteView.AddChidren(btnConfirm); |
| | |
| | | btnTip.Width = Application.GetRealWidth(222); |
| | | btnTip.Height = Application.GetRealHeight(17); |
| | | btnTip.Text = Language.StringByID(errorId_IsNullOrEmpty); |
| | | btnTip.TextColor = Color.RedColor; |
| | | btnTip.TextColor = MusicColor.RedColor; |
| | | btnTip.TextSize = TextSize.Text12; |
| | | btnTip.TextAlignment = TextAlignment.CenterLeft; |
| | | return; |
| | |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | BackgroundColor = Color.PopupBackgroundColor, |
| | | BackgroundColor = MusicColor.PopupBackgroundColor, |
| | | }; |
| | | |
| | | FrameLayout whiteView = new FrameLayout() |
| | |
| | | Y = Application.GetRealHeight(264), |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealHeight(140), |
| | | BackgroundColor = Color.WhiteColor, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | BorderColor = 0x00000000, |
| | | BorderWidth = 0, |
| | | Radius = (uint)Application.GetRealHeight(RradiusFrameLayout), |
| | |
| | | X = Application.GetRealWidth(35), |
| | | Height = Application.GetRealHeight(22), |
| | | Width = Application.GetRealWidth(270 - 35 * 2), |
| | | TextColor = Color.SelectedColor, |
| | | TextColor = MusicColor.SelectedColor, |
| | | TextSize = TextSize.Text16, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextID = titleId, |
| | |
| | | X = Application.GetRealWidth(20), |
| | | Height = Application.GetRealHeight(22), |
| | | Width = Application.GetRealWidth(270 - 20 * 2), |
| | | TextColor = Color.TextCancelColor, |
| | | TextColor = MusicColor.TextCancelColor, |
| | | TextSize = TextSize.Text12, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextID = tipTxet, |
| | |
| | | { |
| | | Y = whiteView.Height - Application.GetRealHeight(44 + 1), |
| | | Height = Application.GetRealHeight(1), |
| | | BackgroundColor = Color.LineColor, |
| | | BackgroundColor = MusicColor.LineColor, |
| | | }; |
| | | whiteView.AddChidren(btnLine); |
| | | |
| | |
| | | Width = Application.GetRealWidth(135), |
| | | Height = Application.GetRealHeight(44), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = Color.TextCancelColor, |
| | | TextColor = MusicColor.TextCancelColor, |
| | | TextSize = TextSize.Text16, |
| | | TextID = StringId.cancelMusic, |
| | | Gravity = Gravity.BottomLeft, |
| | |
| | | Width = Application.GetRealWidth(135), |
| | | Height = Application.GetRealHeight(44), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = Color.WhiteColor, |
| | | TextColor = MusicColor.WhiteColor, |
| | | IsBold = true, |
| | | TextSize = TextSize.Text16, |
| | | TextID = StringId.confirmMusic, |
| | | BackgroundColor = Color.SelectedColor, |
| | | BackgroundColor = MusicColor.SelectedColor, |
| | | Gravity = Gravity.BottomRight, |
| | | }; |
| | | whiteView.AddChidren(btnConfirm); |
| | |
| | | /// </summary> |
| | | public FrameLayout fLayout = new FrameLayout |
| | | { |
| | | BackgroundColor = Color.TopViewColor, |
| | | BackgroundColor = MusicColor.TopViewColor, |
| | | Height = Application.GetRealHeight(64), |
| | | Width=Application.GetRealWidth(375), |
| | | }; |
| | |
| | | public Button topNameBtn = new Button |
| | | { |
| | | TextSize = TextSize.Text18, |
| | | TextColor = Color.Text18Color, |
| | | TextColor = MusicColor.Text18Color, |
| | | Width = Application.GetRealWidth(140), |
| | | Height = Application.GetRealHeight(25), |
| | | Y = Application.GetRealHeight(30), |
| | |
| | | { |
| | | Width = Application.GetRealWidth(375), |
| | | Height = 1, |
| | | BackgroundColor = Color.LineColor, |
| | | BackgroundColor = MusicColor.LineColor, |
| | | |
| | | }; |
| | | /// <summary> |