From 5da41b3e538b1eee80f8fbb4e50ee8aadece7608 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 27 Oct 2019 16:52:40 +0100 Subject: [PATCH] Simplified image item view --- .../main/java/eu/faircode/email/AdapterImage.java | 3 --- app/src/main/res/layout/item_image.xml | 13 +------------ 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterImage.java b/app/src/main/java/eu/faircode/email/AdapterImage.java index 02230bdd5b..21c2cc922b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterImage.java +++ b/app/src/main/java/eu/faircode/email/AdapterImage.java @@ -64,7 +64,6 @@ public class AdapterImage extends RecyclerView.Adapter private View view; private ImageView ivImage; private TextView tvCaption; - private TextView tvType; ViewHolder(View itemView) { super(itemView); @@ -72,7 +71,6 @@ public class AdapterImage extends RecyclerView.Adapter view = itemView.findViewById(R.id.clItem); ivImage = itemView.findViewById(R.id.ivImage); tvCaption = itemView.findViewById(R.id.tvCaption); - tvType = itemView.findViewById(R.id.tvType); } private void wire() { @@ -98,7 +96,6 @@ public class AdapterImage extends RecyclerView.Adapter tvCaption.setVisibility(TextUtils.isEmpty(attachment.name) ? View.GONE : View.VISIBLE); tvCaption.setText(attachment.name); - tvType.setText(attachment.type); } @Override diff --git a/app/src/main/res/layout/item_image.xml b/app/src/main/res/layout/item_image.xml index bd8acfc638..994760dfea 100644 --- a/app/src/main/res/layout/item_image.xml +++ b/app/src/main/res/layout/item_image.xml @@ -29,21 +29,10 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" - android:text="Launcher icon" + android:text="@string/app_name" android:textAppearance="@style/TextAppearance.AppCompat.Small" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/ivImage" /> - - \ No newline at end of file