Skip to content

Android LyricView that accepts lrc stream as input, A powerful lyric parser is also contained.

License

Notifications You must be signed in to change notification settings

markzhai/LyricView

Repository files navigation

LyricView LyricHere App Maven Central

Android LyricView that accepts lrc stream as input, it is used in my project LyricHere.

This library offers a simple view that accepts lrc stream as input, shows lyric and automatically move according the timestamp of each sentence in lyric. It also supports scroll gesture.

Usage

dependencies {
    compile 'cn.zhaiyifan:lyricview:1.0.1'
}
mLyricView = (LyricView) findViewById(R.id.lyricView);
// You can call setLyric anytime to change the lyric to another
mLyricView.setLyric(LyricUtils.parseLyric(getResources().openRawResource(R.raw.testfile), "UTF-8"));
mLyricView.setLyricIndex(0);
mLyricView.play();

// When you want to stop playing lyric, just call
mLyricView.stop();
<cn.zhaiyifan.lyricview.widget.LyricView
    android:id="@+id/lyricView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

TODO

  • Improve drawing performance

About

Android LyricView that accepts lrc stream as input, A powerful lyric parser is also contained.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages