Closed maxakash closed 3 years ago
Layout:
<com.dirror.lyricviewx.LyricViewX
android:id="@+id/lyricViewX"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:lrcPadding="16dp">
</com.dirror.lyricviewx.LyricViewX>
In the Activity:
val file = File("...") // lrc file path
lyricViewX.loadLyric(file)
There are many ways to get the lyrics to a song, you can get the text of the lyrics in other ways and pass it to LyricViewX.
Ok got it, I used an input stream to convert the file to string. It works perfectly but throws an excpetion which I have mentioned in another issue.
There is no documentation to add lyric view in layout. Please help me with that.