TableLayout t = new TableLayout(this);
TableRow r = new TableRow(this);
r.setLayoutParams(new TableRow.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
+ r.setPadding(getResources().getDimensionPixelSize(R.dimen.activity_horizontal_margin), dp2px(4), getResources().getDimensionPixelSize(R.dimen.activity_horizontal_margin), dp2px(4));
if (even)
r.setBackgroundColor(getResources().getColor(R.color.table_row_even_bg, getTheme()));
even = !even;
android:id="@+id/account_root_scroller"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:paddingStart="@dimen/activity_horizontal_margin"
- android:paddingEnd="@dimen/activity_horizontal_margin"
app:layout_constraintBottom_toTopOf="@+id/textProgress"
app:layout_constraintTop_toTopOf="parent">
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/table_row_even_bg">
+ android:background="@color/table_row_even_bg"
+ android:paddingStart="@dimen/activity_horizontal_margin"
+ android:paddingEnd="@dimen/activity_horizontal_margin">
<TextView
android:id="@+id/textView"