pull/1333/head
gedoor 3 years ago
parent 5d39f5ff07
commit 25de1e213e
  1. 9
      app/src/main/java/io/legado/app/ui/widget/image/ArcView.kt
  2. 2
      app/src/main/res/layout-land/activity_book_info.xml
  3. 2
      app/src/main/res/layout/activity_book_info.xml

@ -1,4 +1,4 @@
package io.legado.app.ui.widget
package io.legado.app.ui.widget.image
import android.content.Context
import android.graphics.*
@ -6,6 +6,9 @@ import android.util.AttributeSet
import android.view.View
import io.legado.app.R
/**
* 弧形View
*/
class ArcView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null
@ -18,7 +21,9 @@ class ArcView @JvmOverloads constructor(
//背景颜色
private var mBgColor: Int
private val mPaint: Paint = Paint()
private val mPaint: Paint = Paint().apply {
isAntiAlias = true
}
private val mDirectionTop: Boolean
val rect = Rect()
val path = Path()

@ -44,7 +44,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="68dp">
<io.legado.app.ui.widget.ArcView
<io.legado.app.ui.widget.image.ArcView
android:id="@+id/arc_view"
android:layout_width="match_parent"
android:layout_height="78dp"

@ -34,7 +34,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="8dp">
<io.legado.app.ui.widget.ArcView
<io.legado.app.ui.widget.image.ArcView
android:id="@+id/arc_view"
android:layout_marginTop="90dp"
android:layout_width="match_parent"

Loading…
Cancel
Save