From 62cc866a6d17018a17044465efc3ab29ad6073a4 Mon Sep 17 00:00:00 2001 From: OliE Date: Fri, 16 Feb 2018 16:22:05 +0100 Subject: [PATCH] fixed hidden last table row and center bottom menu --- .../src/main/java/com/health/openscale/gui/MainActivity.java | 2 +- android_app/app/src/main/res/layout/fragment_table.xml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java b/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java index cfa9a0e4..f0ca3561 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java @@ -508,7 +508,7 @@ public class MainActivity extends AppCompatActivity { BottomNavigationItemView item = (BottomNavigationItemView) menuView.getChildAt(i); //noinspection RestrictedApi item.setShiftingMode(false); - //item.setPadding(0, 15, 0, 0); + item.setPadding(0, 20, 0, 0); // set once again checked value, so view will be updated //noinspection RestrictedApi //item.setChecked(item.getItemData().isChecked()); diff --git a/android_app/app/src/main/res/layout/fragment_table.xml b/android_app/app/src/main/res/layout/fragment_table.xml index 39f9ed3c..8470832a 100644 --- a/android_app/app/src/main/res/layout/fragment_table.xml +++ b/android_app/app/src/main/res/layout/fragment_table.xml @@ -2,8 +2,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical" - android:weightSum="1"> + android:orientation="vertical">