mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
add bottom margin for cover only grid
like compact's
This commit is contained in:
parent
c3275e63c4
commit
6a14859046
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ class LibraryItem(
|
||||||
}
|
}
|
||||||
} else if (libraryLayout >= LAYOUT_COMFORTABLE_GRID) {
|
} else if (libraryLayout >= LAYOUT_COMFORTABLE_GRID) {
|
||||||
binding.textLayout.isVisible = libraryLayout == LAYOUT_COMFORTABLE_GRID
|
binding.textLayout.isVisible = libraryLayout == LAYOUT_COMFORTABLE_GRID
|
||||||
|
if (libraryLayout >= LAYOUT_COVER_ONLY_GRID) {
|
||||||
|
binding.card.updateLayoutParams<ConstraintLayout.LayoutParams> {
|
||||||
|
bottomMargin = 6.dpToPx
|
||||||
|
}
|
||||||
|
}
|
||||||
binding.constraintLayout.background = context.contextCompatDrawable(
|
binding.constraintLayout.background = context.contextCompatDrawable(
|
||||||
R.drawable.library_comfortable_grid_selector
|
R.drawable.library_comfortable_grid_selector
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue