pull/84/head
kunfei 5 years ago
parent 88482d25d7
commit 12f49e3df3
  1. 2
      app/src/main/java/io/legado/app/ui/widget/image/CoverImageView.kt

@ -4,6 +4,7 @@ import android.annotation.SuppressLint
import android.content.Context import android.content.Context
import android.graphics.Canvas import android.graphics.Canvas
import android.graphics.Path import android.graphics.Path
import android.graphics.Typeface
import android.graphics.drawable.Drawable import android.graphics.drawable.Drawable
import android.text.TextPaint import android.text.TextPaint
import android.util.AttributeSet import android.util.AttributeSet
@ -46,6 +47,7 @@ class CoverImageView : androidx.appcompat.widget.AppCompatImageView {
width = getWidth().toFloat() width = getWidth().toFloat()
height = getHeight().toFloat() height = getHeight().toFloat()
textPaint.textSize = width / 9 textPaint.textSize = width / 9
textPaint.typeface = Typeface.DEFAULT_BOLD
} }
override fun onDraw(canvas: Canvas) { override fun onDraw(canvas: Canvas) {

Loading…
Cancel
Save