All Projects → asr-pub → LyricViewDemo

asr-pub / LyricViewDemo

Licence: other
LyricView is a powerful and flexible custom view to display lyrics within music player under Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to LyricViewDemo

Lyricviewdemo
LyricView is a powerful and flexible custom view to display lyrics within music player under Android
Stars: ✭ 647 (-1.07%)
Mutual labels:  lyrics, musicplayer
Refresh-Music-Player
A beautifully designed music player app for android.
Stars: ✭ 22 (-96.64%)
Mutual labels:  lyrics, musicplayer
animec
A module to get data about anime characters, news, info, lyrics and more.
Stars: ✭ 31 (-95.26%)
Mutual labels:  lyrics
Qt5-MusicPlayer
基于Qt5开发的一个小巧精美的本地音乐播放器。代码注释详细,适合作为一个用于入门的Qt5实战项目。
Stars: ✭ 136 (-79.2%)
Mutual labels:  musicplayer
JiosaavnAPI
Unofficial JioSaavn API Written in Javascript
Stars: ✭ 68 (-89.6%)
Mutual labels:  lyrics
lyrics-finder
🎤 | Search the lyrics to your music with Lyrics Finder
Stars: ✭ 20 (-96.94%)
Mutual labels:  lyrics
limnoria-plugins
Limnoria plugins I wrote or forked.
Stars: ✭ 35 (-94.65%)
Mutual labels:  lyrics
python-blobopera
Toolkit to convert MusicXML files into Blob Opera scores with real lyrics.
Stars: ✭ 24 (-96.33%)
Mutual labels:  lyrics
amplyfm
A free and open-source web app for streaming music.
Stars: ✭ 46 (-92.97%)
Mutual labels:  lyrics
Lyrics-to-Audio-Alignment
Aligns text (lyrics) with monophonic singing voice (audio). The algorithm uses structural segmentation to segment the audio into structures and then uses hidden markov models to obtain alignment within segments. The final alignment is concatenation of time stamps of lyrics within the segments for each song.
Stars: ✭ 57 (-91.28%)
Mutual labels:  lyrics
SpotiSharp
Cross-platform music assistant
Stars: ✭ 22 (-96.64%)
Mutual labels:  lyrics
musicplayer
musicplayer 音乐播放器框架 简单易懂易扩展 已写了播放器demo和列表播放的demo兼容七牛等第三方Mediaplayer
Stars: ✭ 14 (-97.86%)
Mutual labels:  musicplayer
muCLIar
YouTube automator bringing you your music right on your CLI.
Stars: ✭ 119 (-81.8%)
Mutual labels:  musicplayer
py-simple-lyric-generator
A simple Markov chains lyric generator written in Python.
Stars: ✭ 17 (-97.4%)
Mutual labels:  lyrics
generate-thai-lyrics
Generate Thai Songs' lyrics using Deep Learning
Stars: ✭ 33 (-94.95%)
Mutual labels:  lyrics
Cider
A new cross-platform Apple Music experience based on Electron and Vue.js written from scratch with performance in mind. 🚀
Stars: ✭ 3,146 (+381.04%)
Mutual labels:  lyrics
LyricsPyRobot
A Telegram bot for searching lyrics.
Stars: ✭ 29 (-95.57%)
Mutual labels:  lyrics
lyricsmaster
LyricsMaster is a library for downloading lyrics from multiple lyrics providers.
Stars: ✭ 18 (-97.25%)
Mutual labels:  lyrics
tidal-lyrics
Get the lyrics of what you're listening on Tidal
Stars: ✭ 39 (-94.04%)
Mutual labels:  lyrics
givemelyrics
See the lyrics of the song that is playing, from any application.
Stars: ✭ 52 (-92.05%)
Mutual labels:  lyrics

LyricView

LyricView is a powerful and flexible custom view to display lyrics within music player under Android

Screenshot

LyricViewDemo.apk YouTube

Usage

Gradle dependency

step 1 Add the JitPack repository to your build file
allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

step 2 Add the dependency
dependencies {
        compile 'com.github.zhengken:LyricViewDemo:v1.2'
}

XML code

//step 1
<me.zhengken.lyricview.LyricView
        android:id="@+id/custom_lyric_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

Java code

//step 2
LyricView mLyricView = (LyricView)findViewById(R.id.custom_lyric_view);

//step 3
mLyricView.setLyricFile(lyricFile);

//step 4, update LyricView every interval
mLyricView.setCurrentTimeMillis(progress);

//step 5, implement the interface when user drag lyrics and click the play icon
mLyricView.setOnPlayerClickListener(new LyricView.OnPlayerClickListener() {
        @Override
        public void onPlayerClicked(long progress, String content) {
            
        }
    });

XML attributes

Attributes Format Default Description
fadeInFadeOut boolean false Enable lyrics fadeInFadeOut or not
hint string No Lyrics Display when not exist lyric file
hintColor color #FFFFFF The color of hint text
textSize dimension 16sp The text size of lyrics
textColor color #8D8D8D The color of lyrics
highlightColor color #FFFFFF The color of current lyric that playing
textAlign enum CENTER The alignment of lyrics
maxLength dimension 300dp Line feed when lyric'width beyond maxLength
lineSpace dimension 25dp Line space

Java API

Methods Description
setOnPlayerClickListener(OnPlayerClickListener listener) Callback when click the play icon
setAlignment(@Alignment int alignment) Set the alignment of the lyrics
setCurrentTimeMillis(long current) Scroll lyrics to the specify TimeMillis
setLyricFile(File file) Set the lyric file, and auto set the charset by juniversalchardet-1.0.3
setLyricFile(File file, String charset) Set the lyric file with the specified charset
setTypeface(Typeface typeface) Set the typeface of lyrics
reset() Reset the LyricView

Thanks

@码农小阿飞

License

Copyright 2016 zhengken

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].