Add minimum height to simple categories items
This commit is contained in:
parent
21b620ee86
commit
d096740cda
@ -4,6 +4,7 @@ import android.view.View
|
||||
import androidx.core.view.isVisible
|
||||
import eu.davidea.viewholders.FlexibleViewHolder
|
||||
import eu.kanade.tachiyomi.databinding.CategoriesItemBinding
|
||||
import eu.kanade.tachiyomi.util.system.dpToPx
|
||||
import kotlin.time.ExperimentalTime
|
||||
|
||||
/**
|
||||
@ -23,6 +24,8 @@ class BiometricTimesHolder(view: View, val adapter: BiometricTimesAdapter) : Fle
|
||||
*/
|
||||
@OptIn(ExperimentalTime::class)
|
||||
fun bind(timeRange: TimeRange) {
|
||||
binding.innerContainer.minimumHeight = 48.dpToPx
|
||||
|
||||
// Set capitalized title.
|
||||
binding.title.text = timeRange.getFormattedString(itemView.context)
|
||||
binding.reorder.isVisible = false
|
||||
|
@ -4,6 +4,7 @@ import android.view.View
|
||||
import androidx.core.view.isVisible
|
||||
import eu.davidea.viewholders.FlexibleViewHolder
|
||||
import eu.kanade.tachiyomi.databinding.CategoriesItemBinding
|
||||
import eu.kanade.tachiyomi.util.system.dpToPx
|
||||
|
||||
/**
|
||||
* Holder used to display repo items.
|
||||
@ -21,6 +22,8 @@ class RepoHolder(view: View, val adapter: RepoAdapter) : FlexibleViewHolder(view
|
||||
* @param category The category to bind.
|
||||
*/
|
||||
fun bind(category: String) {
|
||||
binding.innerContainer.minimumHeight = 48.dpToPx
|
||||
|
||||
// Set capitalized title.
|
||||
binding.title.text = category
|
||||
binding.reorder.isVisible = false
|
||||
|
@ -4,6 +4,7 @@ import android.view.View
|
||||
import androidx.core.view.isVisible
|
||||
import eu.davidea.viewholders.FlexibleViewHolder
|
||||
import eu.kanade.tachiyomi.databinding.CategoriesItemBinding
|
||||
import eu.kanade.tachiyomi.util.system.dpToPx
|
||||
|
||||
/**
|
||||
* Holder used to display category items.
|
||||
@ -21,6 +22,8 @@ class SourceCategoryHolder(view: View, val adapter: SourceCategoryAdapter) : Fle
|
||||
* @param category The category to bind.
|
||||
*/
|
||||
fun bind(category: String) {
|
||||
binding.innerContainer.minimumHeight = 48.dpToPx
|
||||
|
||||
// Set capitalized title.
|
||||
binding.title.text = category
|
||||
binding.reorder.isVisible = false
|
||||
|
@ -10,6 +10,7 @@
|
||||
app:cardForegroundColor="@color/draggable_card_foreground">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/inner_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user