From bd3ca1740a12c8be15700ee3f6c3c2ef627ffa18 Mon Sep 17 00:00:00 2001 From: Daniele Date: Tue, 7 Sep 2021 19:48:31 +0200 Subject: [PATCH] Layout fixes --- .idea/misc.xml | 7 +++++++ .../nextcloudmaps/activity/main/MainActivity.java | 5 ----- app/src/main/res/layout/item_geofav.xml | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 4bc4fc6..0256570 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,12 @@ + + + \ No newline at end of file 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 0b96ead..b57e9c8 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 @@ -51,7 +51,6 @@ import it.danieleverducci.nextcloudmaps.activity.detail.GeofavoriteDetailActivit import it.danieleverducci.nextcloudmaps.activity.login.LoginActivity; import it.danieleverducci.nextcloudmaps.activity.main.NavigationAdapter.NavigationItem; import it.danieleverducci.nextcloudmaps.activity.main.SortingOrderDialogFragment.OnSortingOrderListener; -import it.danieleverducci.nextcloudmaps.api.ApiProvider; import it.danieleverducci.nextcloudmaps.model.Geofavorite; import static android.view.View.GONE; @@ -86,8 +85,6 @@ public class MainActivity extends AppCompatActivity implements MainView, OnSorti NavigationAdapter navigationCommonAdapter; - private ApiProvider mApi; - @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -184,8 +181,6 @@ public class MainActivity extends AppCompatActivity implements MainView, OnSorti updateSortingIcon(sortRule); updateGridIcon(gridViewEnabled); - - mApi = new ApiProvider(getApplicationContext()); } @Override diff --git a/app/src/main/res/layout/item_geofav.xml b/app/src/main/res/layout/item_geofav.xml index fe17e22..aa03030 100644 --- a/app/src/main/res/layout/item_geofav.xml +++ b/app/src/main/res/layout/item_geofav.xml @@ -21,7 +21,8 @@ xmlns:tools="http://schemas.android.com/tools" android:orientation="horizontal" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="90dp" + android:gravity="center_vertical" android:padding="12dp" android:clickable="true" android:focusable="true"> @@ -59,7 +60,7 @@ android:layout_marginTop="5dp" android:textSize="@dimen/note_font_size_item_content" android:maxLines="2" - android:lines="2" + android:gravity="center_vertical" tools:text="@tools:sample/lorem/random">