| | |
| | | public Button musicIconBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(63), |
| | | Y = Application.GetRealHeight(86), |
| | | Y = Application.GetRealHeight(72), |
| | | Width = Application.GetMinRealAverage(202), |
| | | Height = Application.GetMinRealAverage(202), |
| | | UnSelectedImagePath = "MusicIcon/musicIcon.png", |
| | |
| | | public Button startTimeBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(22), |
| | | Y = Application.GetRealHeight(271), |
| | | Y = Application.GetRealHeight(261), |
| | | Width = Application.GetRealWidth(37), |
| | | Height = Application.GetRealHeight(20), |
| | | TextColor = Color.TextTimeColor, |
| | |
| | | public Button endTimeBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(269), |
| | | Y = Application.GetRealHeight(271), |
| | | Y = Application.GetRealHeight(261), |
| | | Width = Application.GetRealWidth(37), |
| | | Height = Application.GetRealHeight(20), |
| | | TextColor = Color.TextTimeColor, |
| | |
| | | public TextView songNameTextView = new TextView |
| | | { |
| | | X = Application.GetRealWidth(62), |
| | | Y = Application.GetRealHeight(302), |
| | | Y = Application.GetRealHeight(290), |
| | | Width = Application.GetRealWidth(203), |
| | | Height = Application.GetRealHeight(32), |
| | | Height = Application.GetRealHeight(30), |
| | | TextColor = Color.TextColor, |
| | | TextSize = TextSize.Text20, |
| | | TextSize = TextSize.Text16, |
| | | }; |
| | | |
| | | /// <summary> |
| | |
| | | public Button singerBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(62), |
| | | Y = Application.GetRealHeight(335), |
| | | Y = Application.GetRealHeight(322), |
| | | Width = Application.GetRealWidth(203), |
| | | Height = Application.GetRealHeight(21), |
| | | TextColor = Color.MusicNoTxetColor, |
| | |
| | | |
| | | }; |
| | | /// <summary> |
| | | /// 喜爱 |
| | | /// </summary> |
| | | public Button loveBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(70), |
| | | Y = Application.GetRealHeight(366), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "MusicIcon/love.png", |
| | | SelectedImagePath = "MusicIcon/loveSelected.png", |
| | | }; |
| | | /// <summary> |
| | | /// 播放顺序 |
| | | /// </summary> |
| | | public Button playOrderBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(150), |
| | | Y = Application.GetRealHeight(366), |
| | | X = Application.GetRealWidth(70), |
| | | Y = Application.GetRealHeight(355), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "MusicIcon/list.png", |
| | | }; |
| | | /// <summary> |
| | | /// 喜爱 |
| | | /// </summary> |
| | | public Button loveBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(150), |
| | | Y = Application.GetRealHeight(355), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "MusicIcon/love1.png", |
| | | SelectedImagePath = "MusicIcon/loveSelected1.png", |
| | | }; |
| | | /// <summary> |
| | | /// 播放列表 |
| | |
| | | public Button playlistBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(230), |
| | | Y = Application.GetRealHeight(366), |
| | | Y = Application.GetRealHeight(355), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "MusicIcon/playList.png", |
| | |
| | | public Button volIconBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(24), |
| | | Y = Application.GetRealHeight(410), |
| | | Y = Application.GetRealHeight(414), |
| | | Width = Application.GetMinRealAverage(24), |
| | | Height = Application.GetMinRealAverage(24), |
| | | UnSelectedImagePath = "MusicIcon/vol.png", |
| | |
| | | /// </summary> |
| | | public DiyImageSeekBar volSeekBar = new DiyImageSeekBar |
| | | { |
| | | Y = Application.GetRealHeight(395), |
| | | Y = Application.GetRealHeight(399), |
| | | X = Application.GetRealWidth(58), |
| | | Width = Application.GetRealWidth(215), |
| | | Height = Application.GetRealHeight(54),//进度条父控件背景高度 |
| | |
| | | ThumbImagePath = "MusicIcon/progressIcon.png",//进度条按钮图标 |
| | | ThumbImageHeight = Application.GetMinRealAverage(54),//进度条按钮图标的高度(默认正方形:宽和高一样) |
| | | SeekBarViewHeight = Application.GetMinRealAverage(8),//进度条的高度 |
| | | ProgressChangeDelayTime=300,//0.3秒发送一次 |
| | | }; |
| | | |
| | | /// <summary> |
| | |
| | | public Button volValueBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(279-4), |
| | | Y = Application.GetRealHeight(414), |
| | | Y = Application.GetRealHeight(418), |
| | | Width = Application.GetRealWidth(26+4), |
| | | Height = Application.GetRealHeight(17), |
| | | Text = "0%", |
| | |
| | | public Button prevBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(64), |
| | | Y = Application.GetRealHeight(462), |
| | | Y = Application.GetRealHeight(466), |
| | | Width = Application.GetMinRealAverage(40), |
| | | Height = Application.GetMinRealAverage(40), |
| | | UnSelectedImagePath = "MusicIcon/prve1.png", |
| | |
| | | public Button playBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(144), |
| | | Y = Application.GetRealHeight(462), |
| | | Y = Application.GetRealHeight(466), |
| | | Width = Application.GetMinRealAverage(40), |
| | | Height = Application.GetMinRealAverage(40), |
| | | UnSelectedImagePath = "MusicIcon/pause1.png", |
| | |
| | | public Button nextBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(224), |
| | | Y = Application.GetRealHeight(462), |
| | | Y = Application.GetRealHeight(466), |
| | | Width = Application.GetMinRealAverage(40), |
| | | Height = Application.GetMinRealAverage(40), |
| | | UnSelectedImagePath = "MusicIcon/next1.png", |
| | |
| | | musicBjFl.AddChidren(endTimeBtn); |
| | | musicBjFl.AddChidren(songNameTextView); |
| | | musicBjFl.AddChidren(singerBtn); |
| | | musicBjFl.AddChidren(loveBtn); |
| | | musicBjFl.AddChidren(playOrderBtn); |
| | | musicBjFl.AddChidren(loveBtn); |
| | | musicBjFl.AddChidren(playlistBtn); |
| | | musicBjFl.AddChidren(volIconBtn); |
| | | musicBjFl.AddChidren(volSeekBar); |