csd
csd
What kind of issue is this? - [ ] Question. This issue tracker is not the place for questions. If you want to ask how to do something, or to...
ManyLyricsView 这个类业务总结为两部分:一是从LyricsReader 拿到动感歌词数据,并根据歌词数据格式计算出Canvas 画法,;第二就是怎么实现画法了。这第二部分很多地方其实可以进行抽象的,比如画当前行、画当前行以上和画当前行以下这三部分进行抽象的话,用户可以自定义很多东西。比如画当前行时,用户可以将当前行字体画大一点、颜色改一下等等。
目前本版不支持当前行歌词非高亮部分字体自定义颜色,使用的是默认字体颜色,需要从copy ManyLyricsView 源码修改drawDownLyrics 方法 else if (i == curLyricsLineNum) 分支才行,代码如下: else if (i == curLyricsLineNum) { //画当前行(动感)歌词 float lineLyricsHLWidth = LyricsUtils.getLineLyricsHLWidth(lyricsReader.getLyricsType(), mCurLineFontPaint, splitLyricsLineInfos.get(i), splitLyricsWordIndex, lyricsWordHLTime); final int[] curLineColors = mCurLineFontColors...
## Look at here - → Did you read the doc carefully - → Did you add annotation above target activity - → Did you add annotation processor dependence -...