From cf24433d4d51e4c8a3f5fcd612641514fc84f053 Mon Sep 17 00:00:00 2001 From: "Daniele Verducci (ZenPenguin)" Date: Sat, 28 Aug 2021 17:28:19 +0200 Subject: [PATCH] List updates when returning from add, fixes in edittexts --- .../activity/main/MainActivity.java | 7 + .../layout/activity_geofavorite_detail.xml | 138 ++++++++++-------- 2 files changed, 81 insertions(+), 64 deletions(-) diff --git a/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java b/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java index f8f8be8..1a87796 100644 --- a/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java +++ b/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/MainActivity.java @@ -169,6 +169,13 @@ public class MainActivity extends AppCompatActivity implements MainView, OnSorti updateGridIcon(gridViewEnabled); mApi = new ApiProvider(getApplicationContext()); + } + + @Override + protected void onStart() { + super.onStart(); + + // Update list presenter.getGeofavorites(); } diff --git a/app/src/main/res/layout/activity_geofavorite_detail.xml b/app/src/main/res/layout/activity_geofavorite_detail.xml index 381e11f..87b2f6b 100644 --- a/app/src/main/res/layout/activity_geofavorite_detail.xml +++ b/app/src/main/res/layout/activity_geofavorite_detail.xml @@ -8,83 +8,93 @@ type="it.danieleverducci.nextcloudmaps.model.Geofavorite"/> - - - + android:layout_height="match_parent" + android:id="@+id/root"> + android:layout_width="match_parent" + android:layout_height="wrap_content"> - + android:layout_height="200dp" + android:padding="50dp" + app:srcCompat="@drawable/ic_app" + android:background="@color/defaultBrand" /> - + android:layout_height="match_parent" + android:orientation="vertical" + android:padding="20dp"> - + - + - + - + -