From f7409ff5f3fad8d1d2d8a16975381f3a45329b04 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 17 Apr 2019 18:32:02 +0200 Subject: [PATCH] Small layout improvement --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 1 - app/src/main/res/layout/fragment_compose.xml | 1 + app/src/main/res/layout/spinner_item2.xml | 3 +-- app/src/main/res/layout/spinner_item2_dropdown.xml | 3 +-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 2581ca0c6e..d4b7ad5f5e 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -1950,7 +1950,6 @@ public class FragmentCompose extends FragmentBase { // Show identities IdentityAdapter adapter = new IdentityAdapter(getContext(), identities); - adapter.setDropDownViewResource(R.layout.spinner_item1_dropdown); spIdentity.setAdapter(adapter); // Select identity diff --git a/app/src/main/res/layout/fragment_compose.xml b/app/src/main/res/layout/fragment_compose.xml index a94eb3065b..db364a98af 100644 --- a/app/src/main/res/layout/fragment_compose.xml +++ b/app/src/main/res/layout/fragment_compose.xml @@ -19,6 +19,7 @@ android:id="@+id/spIdentity" android:layout_width="0dp" android:layout_height="wrap_content" + android:layout_marginStart="6dp" android:layout_marginTop="6dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/app/src/main/res/layout/spinner_item2.xml b/app/src/main/res/layout/spinner_item2.xml index 27021d5163..44f9e05e69 100644 --- a/app/src/main/res/layout/spinner_item2.xml +++ b/app/src/main/res/layout/spinner_item2.xml @@ -3,7 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" - android:padding="12dp"> + android:padding="6dp"> + android:padding="6dp">