zhengken / Lyricviewdemo
LyricView is a powerful and flexible custom view to display lyrics within music player under Android
Stars: ✭ 647
Programming Languages
java
68154 projects - #9 most used programming language
Labels
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: ✭ 654 (+1.08%)
Mutual labels: lyrics, musicplayer
Refresh-Music-Player
A beautifully designed music player app for android.
Stars: ✭ 22 (-96.6%)
Mutual labels: lyrics, musicplayer
billboard
🎤 Lyrics/associated NLP data for Billboard's Top 100, 1950-2015.
Stars: ✭ 53 (-91.81%)
Mutual labels: lyrics
React Music Player
🎵 Maybe the best beautiful HTML5 responsive player component for react :)
Stars: ✭ 321 (-50.39%)
Mutual labels: lyrics
Musicmood
A machine learning approach to classify songs by mood.
Stars: ✭ 388 (-40.03%)
Mutual labels: lyrics
BeatSinger
Beat Saber plugin for displaying floating lyrics while playing the game.
Stars: ✭ 40 (-93.82%)
Mutual labels: lyrics
Lyricfier
a Spotify Lyrics alternative app | New updates at https://github.com/emilioastarita/lyricfier2 (a faster version in golang)
Stars: ✭ 598 (-7.57%)
Mutual labels: lyrics
Lyricsgenius
Download song lyrics and metadata from Genius.com 🎶🎤
Stars: ✭ 529 (-18.24%)
Mutual labels: lyrics
spotify-lyrics-cli
Migrated to Gitlab, this Github repo will not receive updates.
Stars: ✭ 57 (-91.19%)
Mutual labels: lyrics
Musicplayer
Implemented using Clean Arch, MVVM, LiveData, Room, Koin, Coil, Service, Notification and ExoPlayer
Stars: ✭ 413 (-36.17%)
Mutual labels: musicplayer
Lyrics King React Native
Lyrics King is React Native song lyrics search app, built with Expo. Designed with Adobe XD.
Stars: ✭ 261 (-59.66%)
Mutual labels: lyrics
Jetpack Musicplayer
即使不用云音乐听曲儿,也请务必收藏好该库!🔥 一行代码即可接入,音乐播放控制组件 - Even if you don't listen to the music by Spotify, be sure to collect this library, please! 🔥 This music player component can be accessed by only one line of code. Supporting by LiveData & AndroidX.
Stars: ✭ 577 (-10.82%)
Mutual labels: musicplayer
LyricView
LyricView is a powerful and flexible custom view to display lyrics within music player under Android
Screenshot
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].