Search in sources :

Example 1 with LrcView

use of com.wm.remusic.lrc.LrcView in project remusic by aa112901.

the class PlayingActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_playing);
    mPlaylistsManager = PlaylistsManager.getInstance(this);
    toolbar = (Toolbar) findViewById(R.id.toolbar);
    if (toolbar != null) {
        setSupportActionBar(toolbar);
        ab = getSupportActionBar();
        ab.setDisplayHomeAsUpEnabled(true);
        ab.setHomeAsUpIndicator(R.drawable.actionbar_back);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
    }
    mAlbumLayout = (FrameLayout) findViewById(R.id.headerView);
    mLrcViewContainer = (RelativeLayout) findViewById(R.id.lrcviewContainer);
    mLrcView = (LrcView) findViewById(R.id.lrcview);
    mTryGetLrc = (TextView) findViewById(R.id.tragetlrc);
    mMusicTool = (LinearLayout) findViewById(R.id.music_tool);
    mBackAlbum = (ImageView) findViewById(R.id.albumArt);
    mPlayingmode = (ImageView) findViewById(R.id.playing_mode);
    mControl = (ImageView) findViewById(R.id.playing_play);
    mNext = (ImageView) findViewById(R.id.playing_next);
    mPre = (ImageView) findViewById(R.id.playing_pre);
    mPlaylist = (ImageView) findViewById(R.id.playing_playlist);
    mMore = (ImageView) findViewById(R.id.playing_more);
    mCmt = (ImageView) findViewById(R.id.playing_cmt);
    mFav = (ImageView) findViewById(R.id.playing_fav);
    mDown = (ImageView) findViewById(R.id.playing_down);
    mTimePlayed = (TextView) findViewById(R.id.music_duration_played);
    mDuration = (TextView) findViewById(R.id.music_duration);
    mProgress = (PlayerSeekBar) findViewById(R.id.play_seek);
    mNeedle = (ImageView) findViewById(R.id.needle);
    mViewPager = (AlbumViewPager) findViewById(R.id.view_pager);
    mNeedleAnim = ObjectAnimator.ofFloat(mNeedle, "rotation", -25, 0);
    mNeedleAnim.setDuration(200);
    mNeedleAnim.setRepeatMode(0);
    mNeedleAnim.setInterpolator(new LinearInterpolator());
    mVolumeSeek = (SeekBar) findViewById(R.id.volume_seek);
    mProgress.setIndeterminate(false);
    mProgress.setProgress(1);
    mProgress.setMax(1000);
    loadOther();
    setViewPager();
    initLrcView();
    mHandler = HandlerUtil.getInstance(this);
    mHandler.postDelayed(mUpAlbumRunnable, 0);
    mPlayThread = new PlayMusic();
    mPlayThread.start();
}
Also used : LinearInterpolator(android.view.animation.LinearInterpolator) ImageView(android.widget.ImageView) View(android.view.View) TextView(android.widget.TextView) LrcView(com.wm.remusic.lrc.LrcView)

Aggregations

View (android.view.View)1 LinearInterpolator (android.view.animation.LinearInterpolator)1 ImageView (android.widget.ImageView)1 TextView (android.widget.TextView)1 LrcView (com.wm.remusic.lrc.LrcView)1