| | |
| | | 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.FrameLayoutView(fL1, false); |
| | | areaText.nextLevelBtn.X = Application.GetRealWidth(339); |
| | | areaText.nextLevelBtn.Y = Application.GetRealHeight(17); |
| | | areaText.nextLevelBtn.Width = Application.GetMinRealAverage(16); |
| | | areaText.nextLevelBtn.Height = Application.GetMinRealAverage(16); |
| | | areaText.nextLevelBtn.Width = Application.GetRealWidth(16); |
| | | areaText.nextLevelBtn.Height = Application.GetRealWidth(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; |
| | |
| | | }); |
| | | }); |
| | | }; |
| | | |
| | | ///QQ音乐事件 |
| | | qqMusicSourceView.clickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | string str = "com.tencent.qqmusic"; |
| | | if (Application.DeviceType == Device.Ios) |
| | | //string str = "com.tencent.qqmusic"; |
| | | //if (Application.DeviceType == Device.Ios) |
| | | //{ |
| | | // str = "qqmusic:"; |
| | | //} |
| | | //CommonClass.OpenApp(str); |
| | | |
| | | bool bol = false; |
| | | string url = ""; |
| | | try |
| | | { |
| | | str = "qqmusic:"; |
| | | #if __IOS__ |
| | | bol = HDLUtils.OpenApp("qqmusic://"); |
| | | url = "https://apps.apple.com/cn/app/qq%E9%9F%B3%E4%B9%90-%E8%AE%A9%E7%94%9F%E6%B4%BB%E5%85%85%E6%BB%A1%E9%9F%B3%E4%B9%90/id414603431"; |
| | | |
| | | #else |
| | | bol = HDLUtils.OpenAppWithPackageName("com.tencent.qqmusic"); |
| | | //url = "http://music.qq.com/"; |
| | | url = "market://details?id=com.tencent.qqmusic"; |
| | | #endif |
| | | if (!bol) |
| | | { |
| | | new View.TipView().TipBox1(StringId.tip, StringId.qqMsuicTip, () => |
| | | { |
| | | HDLUtils.OpenUrl(url); |
| | | }); |
| | | } |
| | | } |
| | | CommonClass.OpenApp(str); |
| | | catch { } |
| | | }; |
| | | |
| | | ///蓝牙事件 |
| | | bluetoothSourceView.clickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |