mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-26 01:43:59 +02:00
Add some space to the statistics view
This commit is contained in:
@@ -104,6 +104,8 @@ public class StatisticsFragment extends Fragment implements FragmentUpdateListen
|
||||
viewMeasurementsListWeek.add(new WaistMeasurementView(statisticsView.getContext()));
|
||||
viewMeasurementsListWeek.add(new HipMeasurementView(statisticsView.getContext()));
|
||||
|
||||
final int paddingBottom = 10;
|
||||
|
||||
int i=0;
|
||||
|
||||
for (MeasurementView measurement : viewMeasurementsListWeek) {
|
||||
@@ -111,6 +113,7 @@ public class StatisticsFragment extends Fragment implements FragmentUpdateListen
|
||||
measurement.updatePreferences(prefs);
|
||||
|
||||
if (measurement.isVisible()) {
|
||||
measurement.setPadding(-1, -1, -1, paddingBottom);
|
||||
if ((i % 2) == 0) {
|
||||
tableWeekAveragesLayoutColumnA.addView(measurement);
|
||||
} else {
|
||||
@@ -138,6 +141,7 @@ public class StatisticsFragment extends Fragment implements FragmentUpdateListen
|
||||
measurement.updatePreferences(prefs);
|
||||
|
||||
if (measurement.isVisible()) {
|
||||
measurement.setPadding(-1, -1, -1, paddingBottom);
|
||||
if ((i % 2) == 0) {
|
||||
tableMonthAveragesLayoutColumnA.addView(measurement);
|
||||
} else {
|
||||
|
@@ -178,29 +178,28 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_weight="90">
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/tableWeekAveragesLayoutColumnA"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="50"
|
||||
android:stretchColumns="1">
|
||||
</TableLayout>
|
||||
android:stretchColumns="1" />
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/tableWeekAveragesLayoutColumnB"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="50"
|
||||
android:stretchColumns="1">
|
||||
</TableLayout>
|
||||
android:stretchColumns="1" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="10dp"
|
||||
android:text="@string/label_last_month"
|
||||
android:textSize="20dp"
|
||||
android:typeface="monospace" />
|
||||
@@ -213,22 +212,22 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_weight="90">
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/tableMonthAveragesLayoutColumnA"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="50"
|
||||
android:stretchColumns="1">
|
||||
</TableLayout>
|
||||
android:stretchColumns="1" />
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/tableMonthAveragesLayoutColumnB"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="50"
|
||||
android:stretchColumns="1">
|
||||
</TableLayout>
|
||||
android:stretchColumns="1" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
Reference in New Issue
Block a user