From b9a1a49246efbddaa6f41256b5ea4dec0aef8e3c Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 7 Dec 2018 18:41:52 +0000 Subject: [PATCH] accounts summary: pad the row, not the table --- app/src/main/java/net/ktnx/mobileledger/AccountSummary.java | 1 + app/src/main/res/layout/content_account_summary.xml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java b/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java index a516722f..85934300 100644 --- a/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java +++ b/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java @@ -204,6 +204,7 @@ public class AccountSummary extends AppCompatActivity { 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; diff --git a/app/src/main/res/layout/content_account_summary.xml b/app/src/main/res/layout/content_account_summary.xml index cde4d6a5..958cf4c9 100644 --- a/app/src/main/res/layout/content_account_summary.xml +++ b/app/src/main/res/layout/content_account_summary.xml @@ -37,8 +37,6 @@ 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"> @@ -53,7 +51,9 @@ + android:background="@color/table_row_even_bg" + android:paddingStart="@dimen/activity_horizontal_margin" + android:paddingEnd="@dimen/activity_horizontal_margin">