fix footer being too close to next header

This commit is contained in:
sk 2023-06-06 14:23:24 +02:00
parent 24e5bda8d3
commit 68921d0f0b
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{
ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) itemView.getLayoutParams();
params.setMargins(params.leftMargin, params.topMargin, params.rightMargin,
condenseBottom ? V.dp(-8) : 0);
condenseBottom ? V.dp(-5) : 0);
itemView.requestLayout();
}

View File

@ -241,7 +241,7 @@ public class TextStatusDisplayItem extends StatusDisplayItem{
boolean nextIsFooter = item.parentFragment.getDisplayItems().size() > nextPos &&
item.parentFragment.getDisplayItems().get(nextPos) instanceof FooterStatusDisplayItem;
int bottomPadding = (translateVisible && nextIsFooter) ? 0
: nextIsFooter ? V.dp(8)
: nextIsFooter ? V.dp(6)
: V.dp(12);
itemView.setPadding(itemView.getPaddingLeft(), itemView.getPaddingTop(), itemView.getPaddingRight(), bottomPadding);