private void initViews() {
mPlayingMatrix = (ImageView) findViewById(R.id.iv_now_playing_matrix);
AnimationDrawable animationDrawable = (AnimationDrawable) mPlayingMatrix.getBackground();
animationDrawable.start();
mSongName = (TextView) findViewById(R.id.tv_now_playing_song_name);
mArtist = (TextView) findViewById(R.id.tv_now_playing_singer);
mCurrentPosition = (TextView) findViewById(R.id.tv_now_playing_time);
mAudioSkb = (SeekBar) findViewById(R.id.sb_audio);
mPlayModeBtn = (Button) findViewById(R.id.btn_audio_playmode);
mPreBtn = (Button) findViewById(R.id.btn_audio_previous);
mPlayPauseBtn = (Button) findViewById(R.id.btn_audio_playing_pause);
mNextBtn = (Button) findViewById(R.id.btn_audio_next);
mLyricBtn = (Button) findViewById(R.id.btn_audio_lyrc);
mPlayModeBtn.setOnClickListener(mClickListener);
mPreBtn.setOnClickListener(mClickListener);
mPlayPauseBtn.setOnClickListener(mClickListener);
mNextBtn.setOnClickListener(mClickListener);
mLyricBtn.setOnClickListener(mClickListener);
mLyricShowView = (LyricShowView) findViewById(R.id.lyric_view);
mAudioSkb.setOnSeekBarChangeListener(new AudioSeekChangeListener());
}
AudioPlayerActivity.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:MobileMedia
作者:
评论列表
文章目录