fix footer being too close to next header
This commit is contained in:
parent
24e5bda8d3
commit
68921d0f0b
|
@ -144,7 +144,7 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{
|
||||||
|
|
||||||
ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) itemView.getLayoutParams();
|
ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) itemView.getLayoutParams();
|
||||||
params.setMargins(params.leftMargin, params.topMargin, params.rightMargin,
|
params.setMargins(params.leftMargin, params.topMargin, params.rightMargin,
|
||||||
condenseBottom ? V.dp(-8) : 0);
|
condenseBottom ? V.dp(-5) : 0);
|
||||||
|
|
||||||
itemView.requestLayout();
|
itemView.requestLayout();
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,7 +241,7 @@ public class TextStatusDisplayItem extends StatusDisplayItem{
|
||||||
boolean nextIsFooter = item.parentFragment.getDisplayItems().size() > nextPos &&
|
boolean nextIsFooter = item.parentFragment.getDisplayItems().size() > nextPos &&
|
||||||
item.parentFragment.getDisplayItems().get(nextPos) instanceof FooterStatusDisplayItem;
|
item.parentFragment.getDisplayItems().get(nextPos) instanceof FooterStatusDisplayItem;
|
||||||
int bottomPadding = (translateVisible && nextIsFooter) ? 0
|
int bottomPadding = (translateVisible && nextIsFooter) ? 0
|
||||||
: nextIsFooter ? V.dp(8)
|
: nextIsFooter ? V.dp(6)
|
||||||
: V.dp(12);
|
: V.dp(12);
|
||||||
itemView.setPadding(itemView.getPaddingLeft(), itemView.getPaddingTop(), itemView.getPaddingRight(), bottomPadding);
|
itemView.setPadding(itemView.getPaddingLeft(), itemView.getPaddingTop(), itemView.getPaddingRight(), bottomPadding);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue