Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/markzhai/lyricview
- Owner: markzhai
- License: apache-2.0
- Created: 2015-07-21T01:48:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-20T12:40:17.000Z (over 9 years ago)
- Last Synced: 2024-12-10T07:10:57.170Z (22 days ago)
- Language: Java
- Homepage:
- Size: 250 KB
- Stars: 268
- Watchers: 11
- Forks: 48
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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