Code refactor
This commit is contained in:
parent
543893adba
commit
cee4565c34
35 changed files with 107 additions and 43 deletions
|
@ -35,6 +35,8 @@ import android.view.View;
|
|||
import android.view.animation.LinearInterpolator;
|
||||
import android.widget.Scroller;
|
||||
|
||||
import androidx.core.content.res.ResourcesCompat;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
@ -510,6 +512,7 @@ public class LrcView extends View {
|
|||
if (i > 0) {
|
||||
y += ((mLrcEntryList.get(i - 1).getHeight() + mLrcEntryList.get(i).getHeight()) >> 1) + mDividerHeight;
|
||||
}
|
||||
mLrcPaint.setTypeface(ResourcesCompat.getFont(getContext(), R.font.sans));
|
||||
if (i == mCurrentLine) {
|
||||
mLrcPaint.setTextSize(mCurrentTextSize);
|
||||
mLrcPaint.setColor(mCurrentTextColor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue