mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Adjust aspect ratio to 2:3
For easier migration to Compose
This commit is contained in:
parent
96348dbf7d
commit
1cc8abb599
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ class LibraryItem(
|
||||||
binding.coverThumbnail.adjustViewBounds = false
|
binding.coverThumbnail.adjustViewBounds = false
|
||||||
binding.coverThumbnail.updateLayoutParams<ConstraintLayout.LayoutParams> {
|
binding.coverThumbnail.updateLayoutParams<ConstraintLayout.LayoutParams> {
|
||||||
height = ConstraintLayout.LayoutParams.MATCH_CONSTRAINT
|
height = ConstraintLayout.LayoutParams.MATCH_CONSTRAINT
|
||||||
dimensionRatio = "15:22"
|
dimensionRatio = "2:3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (libraryLayout != LAYOUT_COMFORTABLE_GRID) {
|
if (libraryLayout != LAYOUT_COMFORTABLE_GRID) {
|
||||||
|
|
|
@ -66,7 +66,7 @@ class BrowseSourceItem(
|
||||||
binding.coverThumbnail.adjustViewBounds = false
|
binding.coverThumbnail.adjustViewBounds = false
|
||||||
binding.coverThumbnail.updateLayoutParams<ConstraintLayout.LayoutParams> {
|
binding.coverThumbnail.updateLayoutParams<ConstraintLayout.LayoutParams> {
|
||||||
height = ConstraintLayout.LayoutParams.MATCH_CONSTRAINT
|
height = ConstraintLayout.LayoutParams.MATCH_CONSTRAINT
|
||||||
dimensionRatio = "15:22"
|
dimensionRatio = "2:3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BrowseSourceGridHolder(view, adapter, listType == LibraryItem.LAYOUT_COMPACT_GRID, outlineOnCovers.get())
|
BrowseSourceGridHolder(view, adapter, listType == LibraryItem.LAYOUT_COMPACT_GRID, outlineOnCovers.get())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue