parent
472ba92fe6
commit
02896679fe
@ -0,0 +1,113 @@
|
|||||||
|
package eu.kanade.tachiyomi.ui.reader
|
||||||
|
|
||||||
|
import android.content.res.ColorStateList
|
||||||
|
import android.text.format.DateUtils
|
||||||
|
import android.view.View
|
||||||
|
import android.widget.FrameLayout
|
||||||
|
import android.widget.ImageView
|
||||||
|
import android.widget.TextView
|
||||||
|
import androidx.core.content.ContextCompat
|
||||||
|
import com.mikepenz.fastadapter.FastAdapter
|
||||||
|
import com.mikepenz.fastadapter.items.AbstractItem
|
||||||
|
import eu.kanade.tachiyomi.R
|
||||||
|
import eu.kanade.tachiyomi.data.database.models.Chapter
|
||||||
|
import eu.kanade.tachiyomi.data.database.models.Manga
|
||||||
|
import eu.kanade.tachiyomi.util.system.getResourceColor
|
||||||
|
import kotlinx.android.synthetic.main.chapters_item.*
|
||||||
|
import java.text.DecimalFormat
|
||||||
|
import java.text.DecimalFormatSymbols
|
||||||
|
import java.util.Date
|
||||||
|
|
||||||
|
class ReaderChapterItem(val chapter: Chapter, val manga: Manga, val isCurrent: Boolean) :
|
||||||
|
AbstractItem<ReaderChapterItem.ViewHolder>
|
||||||
|
() {
|
||||||
|
|
||||||
|
var name: String? = null
|
||||||
|
var description: String? = null
|
||||||
|
val decimalFormat =
|
||||||
|
DecimalFormat("#.###", DecimalFormatSymbols().apply { decimalSeparator = '.' })
|
||||||
|
|
||||||
|
/** defines the type defining this item. must be unique. preferably an id */
|
||||||
|
override val type: Int
|
||||||
|
get() = R.id.reader_chapter_layout
|
||||||
|
|
||||||
|
/** defines the layout which will be used for this item in the list */
|
||||||
|
override val layoutRes: Int
|
||||||
|
get() = R.layout.reader_chapter_item
|
||||||
|
|
||||||
|
override var identifier: Long
|
||||||
|
get() = chapter.id!!
|
||||||
|
set(value) {}
|
||||||
|
|
||||||
|
override fun getViewHolder(v: View): ViewHolder {
|
||||||
|
return ViewHolder(v)
|
||||||
|
}
|
||||||
|
|
||||||
|
class ViewHolder(view: View) : FastAdapter.ViewHolder<ReaderChapterItem>(view) {
|
||||||
|
var chapterTitle: TextView = view.findViewById(R.id.chapter_title)
|
||||||
|
var chapterSubtitle: TextView = view.findViewById(R.id.chapter_scanlator)
|
||||||
|
var bookmarkButton: FrameLayout = view.findViewById(R.id.bookmark_layout)
|
||||||
|
var bookmarkImage: ImageView = view.findViewById(R.id.bookmark_image)
|
||||||
|
|
||||||
|
private var readColor = view.context.getResourceColor(android.R.attr.textColorHint)
|
||||||
|
private var unreadColor = view.context.getResourceColor(android.R.attr.textColorPrimary)
|
||||||
|
private var activeColor = view.context.getResourceColor(android.R.attr.colorAccent)
|
||||||
|
|
||||||
|
private var unbookmark = ContextCompat.getDrawable(view.context, R.drawable
|
||||||
|
.ic_bookmark_border_24dp)
|
||||||
|
private var bookmark = ContextCompat.getDrawable(view.context, R.drawable
|
||||||
|
.ic_bookmark_24dp)
|
||||||
|
|
||||||
|
override fun bindView(item: ReaderChapterItem, payloads: List<Any>) {
|
||||||
|
val chapter = item.chapter
|
||||||
|
val manga = item.manga
|
||||||
|
chapterTitle.text = when (manga.displayMode) {
|
||||||
|
Manga.DISPLAY_NUMBER -> {
|
||||||
|
val number = item.decimalFormat.format(chapter.chapter_number.toDouble())
|
||||||
|
itemView.context.getString(R.string.chapter_, number)
|
||||||
|
}
|
||||||
|
else -> chapter.name
|
||||||
|
}
|
||||||
|
val statuses = mutableListOf<String>()
|
||||||
|
if (chapter.date_upload > 0) {
|
||||||
|
statuses.add(
|
||||||
|
DateUtils.getRelativeTimeSpanString(
|
||||||
|
chapter.date_upload, Date().time, DateUtils.HOUR_IN_MILLIS
|
||||||
|
).toString()
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!chapter.scanlator.isNullOrBlank()) {
|
||||||
|
statuses.add(chapter.scanlator!!)
|
||||||
|
}
|
||||||
|
|
||||||
|
chapterTitle.setTextColor(
|
||||||
|
when {
|
||||||
|
item.isCurrent -> activeColor
|
||||||
|
chapter.read -> readColor
|
||||||
|
else -> unreadColor
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
chapterSubtitle.setTextColor(
|
||||||
|
when {
|
||||||
|
item.isCurrent -> activeColor
|
||||||
|
chapter.read -> readColor
|
||||||
|
else -> unreadColor
|
||||||
|
}
|
||||||
|
)
|
||||||
|
bookmarkImage.setImageDrawable(if (chapter.bookmark)
|
||||||
|
bookmark
|
||||||
|
else unbookmark)
|
||||||
|
bookmarkImage.imageTintList = ColorStateList.valueOf(if (chapter.bookmark)
|
||||||
|
activeColor
|
||||||
|
else readColor)
|
||||||
|
chapterSubtitle.text = statuses.joinToString(" • ")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun unbindView(item: ReaderChapterItem) {
|
||||||
|
chapterTitle.text = null
|
||||||
|
chapterSubtitle.text = null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,149 @@
|
|||||||
|
package eu.kanade.tachiyomi.ui.reader
|
||||||
|
|
||||||
|
import android.content.Context
|
||||||
|
import android.content.res.ColorStateList
|
||||||
|
import android.graphics.Color
|
||||||
|
import android.os.Build
|
||||||
|
import android.util.AttributeSet
|
||||||
|
import android.view.View
|
||||||
|
import android.view.ViewGroup
|
||||||
|
import android.widget.LinearLayout
|
||||||
|
import androidx.core.content.ContextCompat
|
||||||
|
import androidx.core.graphics.ColorUtils
|
||||||
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
||||||
|
import com.mikepenz.fastadapter.FastAdapter
|
||||||
|
import com.mikepenz.fastadapter.adapters.ItemAdapter
|
||||||
|
import com.mikepenz.fastadapter.listeners.ClickEventHook
|
||||||
|
import eu.kanade.tachiyomi.R
|
||||||
|
import eu.kanade.tachiyomi.util.system.dpToPx
|
||||||
|
import eu.kanade.tachiyomi.util.system.getResourceColor
|
||||||
|
import eu.kanade.tachiyomi.util.system.launchUI
|
||||||
|
import eu.kanade.tachiyomi.util.view.doOnApplyWindowInsets
|
||||||
|
import eu.kanade.tachiyomi.util.view.updateLayoutParams
|
||||||
|
import eu.kanade.tachiyomi.util.view.updatePaddingRelative
|
||||||
|
import kotlinx.android.synthetic.main.reader_chapters_sheet.view.*
|
||||||
|
import kotlin.math.max
|
||||||
|
import kotlin.math.min
|
||||||
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
|
class ReaderChapterSheet @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
|
||||||
|
LinearLayout(context, attrs) {
|
||||||
|
|
||||||
|
var sheetBehavior: BottomSheetBehavior<View>? = null
|
||||||
|
lateinit var presenter: ReaderPresenter
|
||||||
|
var adapter: FastAdapter<ReaderChapterItem>? = null
|
||||||
|
private val itemAdapter = ItemAdapter<ReaderChapterItem>()
|
||||||
|
var shouldCollaspe = true
|
||||||
|
var selectedChapterId = -1L
|
||||||
|
|
||||||
|
fun setup(activity: ReaderActivity) {
|
||||||
|
presenter = activity.presenter
|
||||||
|
val primary = activity.getResourceColor(R.attr.colorPrimary)
|
||||||
|
val fullPrimary = ContextCompat.getColor(activity, R.color.darkPrimaryColor)
|
||||||
|
sheetBehavior = BottomSheetBehavior.from(this)
|
||||||
|
chapters_button.setOnClickListener {
|
||||||
|
if (sheetBehavior?.state == BottomSheetBehavior.STATE_EXPANDED) sheetBehavior?.state =
|
||||||
|
BottomSheetBehavior.STATE_COLLAPSED
|
||||||
|
else sheetBehavior?.state = BottomSheetBehavior.STATE_EXPANDED
|
||||||
|
}
|
||||||
|
val peek = sheetBehavior?.peekHeight ?: 30.dpToPx
|
||||||
|
post {
|
||||||
|
chapter_recycler.alpha =
|
||||||
|
if (sheetBehavior?.state == BottomSheetBehavior.STATE_EXPANDED) 1f else 0f
|
||||||
|
}
|
||||||
|
|
||||||
|
chapters_bottom_sheet.doOnApplyWindowInsets { _, insets, _ ->
|
||||||
|
sheetBehavior?.peekHeight =
|
||||||
|
peek + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) insets.mandatorySystemGestureInsets.bottom
|
||||||
|
else insets.systemWindowInsetBottom
|
||||||
|
chapters_bottom_sheet.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
||||||
|
height = 280.dpToPx + insets.systemWindowInsetBottom
|
||||||
|
}
|
||||||
|
chapter_recycler.updatePaddingRelative(bottom = insets.systemWindowInsetBottom)
|
||||||
|
}
|
||||||
|
sheetBehavior?.addBottomSheetCallback(object : BottomSheetBehavior.BottomSheetCallback() {
|
||||||
|
override fun onSlide(bottomSheet: View, progress: Float) {
|
||||||
|
val trueProgress = max(progress, 0f)
|
||||||
|
backgroundTintList = ColorStateList.valueOf(lerpColor(primary, fullPrimary, trueProgress))
|
||||||
|
chapter_recycler.alpha = trueProgress
|
||||||
|
if (activity.sheetManageNavColor) activity.window.navigationBarColor =
|
||||||
|
lerpColor(ColorUtils.setAlphaComponent(primary, 0), primary, trueProgress)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onStateChanged(p0: View, state: Int) {
|
||||||
|
if (state == BottomSheetBehavior.STATE_COLLAPSED) {
|
||||||
|
shouldCollaspe = true
|
||||||
|
sheetBehavior?.isHideable = false
|
||||||
|
(chapter_recycler.layoutManager as LinearLayoutManager).scrollToPositionWithOffset(
|
||||||
|
adapter?.getPosition(presenter.getCurrentChapter()?.chapter?.id ?: 0L) ?: 0,
|
||||||
|
chapter_recycler.height / 2 - 30.dpToPx
|
||||||
|
)
|
||||||
|
}
|
||||||
|
if (state == BottomSheetBehavior.STATE_EXPANDED) {
|
||||||
|
chapter_recycler.alpha = 1f
|
||||||
|
if (activity.sheetManageNavColor) activity.window.navigationBarColor = primary
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
adapter = FastAdapter.with(itemAdapter)
|
||||||
|
chapter_recycler.adapter = adapter
|
||||||
|
adapter?.onClickListener = { _, _, item, _ ->
|
||||||
|
if (item.chapter.id != presenter.getCurrentChapter()?.chapter?.id) {
|
||||||
|
shouldCollaspe = false
|
||||||
|
presenter.loadChapter(item.chapter)
|
||||||
|
}
|
||||||
|
true
|
||||||
|
}
|
||||||
|
adapter?.addEventHook(object : ClickEventHook<ReaderChapterItem>() {
|
||||||
|
override fun onBind(viewHolder: RecyclerView.ViewHolder): View? {
|
||||||
|
return if (viewHolder is ReaderChapterItem.ViewHolder) {
|
||||||
|
viewHolder.bookmarkButton
|
||||||
|
} else {
|
||||||
|
null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onClick(v: View, position: Int, fastAdapter: FastAdapter<ReaderChapterItem>, item: ReaderChapterItem) {
|
||||||
|
presenter.toggleBookmark(item.chapter)
|
||||||
|
refreshList()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
chapter_recycler.layoutManager = LinearLayoutManager(context)
|
||||||
|
refreshList()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun refreshList() {
|
||||||
|
launchUI {
|
||||||
|
val chapters = presenter.getChapters()
|
||||||
|
|
||||||
|
selectedChapterId = chapters.find { it.isCurrent }?.chapter?.id ?: -1L
|
||||||
|
itemAdapter.clear()
|
||||||
|
itemAdapter.add(chapters)
|
||||||
|
|
||||||
|
(chapter_recycler.layoutManager as LinearLayoutManager).scrollToPositionWithOffset(
|
||||||
|
adapter?.getPosition(presenter.getCurrentChapter()?.chapter?.id ?: 0L) ?: 0,
|
||||||
|
chapter_recycler.height / 2 - 30.dpToPx
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun lerpColor(colorStart: Int, colorEnd: Int, percent: Float): Int {
|
||||||
|
val perc = (percent * 100).roundToInt()
|
||||||
|
return Color.argb(
|
||||||
|
lerpColorCalc(Color.alpha(colorStart), Color.alpha(colorEnd), perc),
|
||||||
|
lerpColorCalc(Color.red(colorStart), Color.red(colorEnd), perc),
|
||||||
|
lerpColorCalc(Color.green(colorStart), Color.green(colorEnd), perc),
|
||||||
|
lerpColorCalc(Color.blue(colorStart), Color.blue(colorEnd), perc)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun lerpColorCalc(colorStart: Int, colorEnd: Int, percent: Int): Int {
|
||||||
|
return (min(colorStart, colorEnd) * (100 - percent) + max(
|
||||||
|
colorStart, colorEnd
|
||||||
|
) * percent) / 100
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
<corners
|
||||||
|
android:topLeftRadius="14dp"
|
||||||
|
android:topRightRadius="14dp" />
|
||||||
|
<solid android:color="@android:color/black" />
|
||||||
|
</shape>
|
@ -0,0 +1,5 @@
|
|||||||
|
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||||
|
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||||
|
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="#FF000000" android:pathData="M17,3L7,3c-1.1,0 -1.99,0.9 -1.99,2L5,21l7,-3 7,3L19,5c0,-1.1 -0.9,-2 -2,-2zM17,18l-5,-2.18L7,18L7,5h10v13z"/>
|
||||||
|
</vector>
|
@ -0,0 +1,5 @@
|
|||||||
|
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||||
|
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||||
|
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="#FF000000" android:pathData="M2,17h2v0.5L3,17.5v1h1v0.5L2,19v1h3v-4L2,16v1zM3,8h1L4,4L2,4v1h1v3zM2,11h1.8L2,13.1v0.9h3v-1L3.2,13L5,10.9L5,10L2,10v1zM7,5v2h14L21,5L7,5zM7,19h14v-2L7,17v2zM7,13h14v-2L7,11v2z"/>
|
||||||
|
</vector>
|
@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:color="@color/colorAccent">
|
||||||
|
<item android:id="@android:id/mask">
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<solid android:color="@color/colorAccent" />
|
||||||
|
<corners android:radius="30dp" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<selector>
|
||||||
|
<item android:state_activated="false">
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<corners android:radius="16dp" />
|
||||||
|
<size
|
||||||
|
android:width="32dp"
|
||||||
|
android:height="32dp" />
|
||||||
|
<solid android:color="@android:color/transparent" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
<item android:state_activated="true">
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<corners android:radius="16dp" />
|
||||||
|
<size
|
||||||
|
android:width="32dp"
|
||||||
|
android:height="32dp" />
|
||||||
|
<solid android:color="@color/colorAccent" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</selector>
|
||||||
|
</item>
|
||||||
|
</ripple>
|
@ -0,0 +1,64 @@
|
|||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:id="@+id/reader_chapter_layout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="60dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
android:background="?attr/selectable_list_drawable"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/chapter_title"
|
||||||
|
style="@style/TextAppearance.MaterialComponents.Body2"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
android:layout_marginTop="12dp"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxLines="1"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/chapter_scanlator"
|
||||||
|
app:layout_constraintEnd_toStartOf="@id/bookmark_layout"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
tools:text="Chapter 123 - The Real One" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/chapter_scanlator"
|
||||||
|
style="@style/TextAppearance.MaterialComponents.Caption"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
android:layout_marginBottom="12dp"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxLines="1"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toStartOf="@id/bookmark_layout"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/chapter_title"
|
||||||
|
tools:text="3 days ago • On page 45 • Scanlator" />
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/bookmark_layout"
|
||||||
|
android:layout_width="50dp"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:layout_marginEnd="12dp"
|
||||||
|
android:background="@drawable/rounded_ripple"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:src="@drawable/ic_bookmark_24dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/bookmark_image"
|
||||||
|
android:layout_width="30dp"
|
||||||
|
android:layout_height="30dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:src="@drawable/ic_bookmark_border_24dp"
|
||||||
|
android:tint="?android:attr/textColorHint"/>
|
||||||
|
</FrameLayout>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -0,0 +1,61 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<eu.kanade.tachiyomi.ui.reader.ReaderChapterSheet xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:id="@+id/chapters_bottom_sheet"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="300dp"
|
||||||
|
android:background="@drawable/bg_bottom_sheet_black"
|
||||||
|
android:backgroundTint="@color/darkPrimaryTranslucent"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:behavior_peekHeight="?attr/actionBarSize"
|
||||||
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/title_layout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="?attr/actionBarSize"
|
||||||
|
android:layout_gravity="top"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/chapters_button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:tint="?actionBarTintColor"
|
||||||
|
android:tooltipText="@string/view_chapters"
|
||||||
|
android:background="?selectableItemBackgroundBorderless"
|
||||||
|
android:contentDescription="@string/next"
|
||||||
|
android:padding="@dimen/material_layout_keylines_screen_edge_margin"
|
||||||
|
app:srcCompat="@drawable/ic_format_list_numbered_24dp" />
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Wonky way of setting height due to issues with horizontally centering the thumb in Android 5.
|
||||||
|
See https://stackoverflow.com/questions/15701767/android-thumb-is-not-centered-in-seekbar
|
||||||
|
-->
|
||||||
|
<eu.kanade.tachiyomi.ui.reader.ReaderSeekBar
|
||||||
|
android:id="@+id/page_seekbar"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/page_text"
|
||||||
|
android:layout_width="100dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:tint="?actionBarTintColor"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textSize="15sp"
|
||||||
|
tools:text="100 / 105" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/chapter_recycler"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="?android:attr/colorBackground"
|
||||||
|
android:alpha="0"
|
||||||
|
android:clipToPadding="false"
|
||||||
|
tools:listitem="@layout/reader_chapter_item"/>
|
||||||
|
</eu.kanade.tachiyomi.ui.reader.ReaderChapterSheet>
|
Loading…
Reference in new issue