]> git.ktnx.net Git - mobile-ledger.git/commitdiff
accounts summary: pad the row, not the table
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 7 Dec 2018 18:41:52 +0000 (18:41 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 7 Dec 2018 18:41:52 +0000 (18:41 +0000)
app/src/main/java/net/ktnx/mobileledger/AccountSummary.java
app/src/main/res/layout/content_account_summary.xml

index a516722fde74061b790a5070d5bfa2a24ad8456b..8593430010bca00f3e51ae3c01cc5a244a6c8f3f 100644 (file)
@@ -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;
index cde4d6a547362be03f22fbfd7bc4fa29d80e189e..958cf4c9c3537a2857a0dbbe13333c1f839af1a1 100644 (file)
@@ -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 @@
                 <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"