Add paddings and improved margins

This commit is contained in:
Daniel Panero 2024-11-15 22:17:07 +01:00 committed by Mis012
parent 13ed9d76bb
commit fb6565e535
10 changed files with 169 additions and 55 deletions

View file

@ -562,7 +562,7 @@ public class TableLayout extends LinearLayout {
totalWidth += width;
}
int size = MeasureSpec.getSize(widthMeasureSpec) /*- mPaddingLeft - mPaddingRight*/;
int size = MeasureSpec.getSize(widthMeasureSpec) - paddingLeft - paddingRight;
if ((totalWidth > size) && (mShrinkAllColumns || mShrinkableColumns.size() > 0)) {
// oops, the largest columns are wider than the row itself