Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/markzhai/lyricview

Android LyricView that accepts lrc stream as input, A powerful lyric parser is also contained.
https://github.com/markzhai/lyricview

Last synced: 13 days ago
JSON representation

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

Awesome Lists containing this project

README

        

LyricView [![LyricHere App](https://img.shields.io/badge/lyrichere-2.0.0-brightgreen.svg)](https://github.com/markzhai/LyricHere/releases/download/v2.0-beta/lyric-here.apk) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/cn.zhaiyifan/lyricview/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/cn.zhaiyifan/lyricview)
=========
Android LyricView that accepts lrc stream as input, it is used in my project [LyricHere](https://github.com/markzhai/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
-----
```gradle
dependencies {
compile 'cn.zhaiyifan:lyricview:1.0.1'
}
```

```java
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();
```

```xml

```

TODO
----
- Improve drawing performance