pull/2268/head
kunfei 2 years ago
parent 0e2f0c8e7d
commit 6307c5dc85
  1. 8
      app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt
  2. 1
      app/src/main/java/io/legado/app/ui/book/read/page/entities/TextLine.kt
  3. 1
      app/src/main/java/io/legado/app/ui/book/read/page/entities/TextPage.kt
  4. 2
      app/src/main/java/io/legado/app/ui/book/read/page/entities/column/BaseColumn.kt
  5. 10
      app/src/main/java/io/legado/app/ui/book/read/page/entities/column/ButtonColumn.kt
  6. 2
      app/src/main/java/io/legado/app/ui/book/read/page/entities/column/ImageColumn.kt
  7. 2
      app/src/main/java/io/legado/app/ui/book/read/page/entities/column/ReviewColumn.kt
  8. 2
      app/src/main/java/io/legado/app/ui/book/read/page/entities/column/TextColumn.kt
  9. 7
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt

@ -15,7 +15,13 @@ import io.legado.app.help.config.AppConfig
import io.legado.app.help.config.ReadBookConfig
import io.legado.app.lib.theme.accentColor
import io.legado.app.model.ReadBook
import io.legado.app.ui.book.read.page.entities.*
import io.legado.app.ui.book.read.page.entities.TextLine
import io.legado.app.ui.book.read.page.entities.TextPage
import io.legado.app.ui.book.read.page.entities.TextPos
import io.legado.app.ui.book.read.page.entities.column.BaseColumn
import io.legado.app.ui.book.read.page.entities.column.ImageColumn
import io.legado.app.ui.book.read.page.entities.column.ReviewColumn
import io.legado.app.ui.book.read.page.entities.column.TextColumn
import io.legado.app.ui.book.read.page.provider.ChapterProvider
import io.legado.app.ui.book.read.page.provider.ImageProvider
import io.legado.app.ui.book.read.page.provider.TextPageFactory

@ -1,6 +1,7 @@
package io.legado.app.ui.book.read.page.entities
import android.text.TextPaint
import io.legado.app.ui.book.read.page.entities.column.BaseColumn
import io.legado.app.ui.book.read.page.provider.ChapterProvider
import io.legado.app.utils.textHeight

@ -5,6 +5,7 @@ import android.text.StaticLayout
import io.legado.app.R
import io.legado.app.help.config.ReadBookConfig
import io.legado.app.model.ReadBook
import io.legado.app.ui.book.read.page.entities.column.TextColumn
import io.legado.app.ui.book.read.page.provider.ChapterProvider
import io.legado.app.utils.textHeight
import splitties.init.appCtx

@ -1,4 +1,4 @@
package io.legado.app.ui.book.read.page.entities
package io.legado.app.ui.book.read.page.entities.column
/**
* 列基类

@ -0,0 +1,10 @@
package io.legado.app.ui.book.read.page.entities.column
/**
* 按钮列
*/
data class ButtonColumn(
override var start: Float,
override var end: Float
) : BaseColumn

@ -1,4 +1,4 @@
package io.legado.app.ui.book.read.page.entities
package io.legado.app.ui.book.read.page.entities.column
/**
* 图片列

@ -1,4 +1,4 @@
package io.legado.app.ui.book.read.page.entities
package io.legado.app.ui.book.read.page.entities.column
import android.graphics.Canvas
import android.graphics.Paint

@ -1,4 +1,4 @@
package io.legado.app.ui.book.read.page.entities
package io.legado.app.ui.book.read.page.entities.column
/**
* 文字列

@ -13,7 +13,12 @@ import io.legado.app.data.entities.BookChapter
import io.legado.app.help.config.AppConfig
import io.legado.app.help.config.ReadBookConfig
import io.legado.app.model.ReadBook
import io.legado.app.ui.book.read.page.entities.*
import io.legado.app.ui.book.read.page.entities.TextChapter
import io.legado.app.ui.book.read.page.entities.TextLine
import io.legado.app.ui.book.read.page.entities.TextPage
import io.legado.app.ui.book.read.page.entities.column.ImageColumn
import io.legado.app.ui.book.read.page.entities.column.ReviewColumn
import io.legado.app.ui.book.read.page.entities.column.TextColumn
import io.legado.app.utils.*
import splitties.init.appCtx
import java.util.*

Loading…
Cancel
Save