From d9c61f652e7e89e5a239f1d7e322e651aa8500d1 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 28 Apr 2018 18:15:19 +0200 Subject: [PATCH] It is possible to enlarge conversation messages images. --- .../adapters/ConversationMessageAdapter.java | 6 +- .../ui/views/EnlargeableWebImageView.java | 92 +++++++++++++++++++ .../comunic/client/ui/views/WebImageView.java | 56 +++++++---- app/src/main/res/layout/dialog_image.xml | 6 ++ .../fragment_conversation_message_item.xml | 2 +- 5 files changed, 139 insertions(+), 23 deletions(-) create mode 100644 app/src/main/java/org/communiquons/android/comunic/client/ui/views/EnlargeableWebImageView.java create mode 100644 app/src/main/res/layout/dialog_image.xml diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java index 86d9c44..7077eac 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java @@ -18,6 +18,7 @@ import org.communiquons.android.comunic.client.data.helpers.ImageLoadHelper; import org.communiquons.android.comunic.client.data.models.UserInfo; import org.communiquons.android.comunic.client.data.models.ConversationMessage; import org.communiquons.android.comunic.client.ui.utils.UiUtils; +import org.communiquons.android.comunic.client.ui.views.WebImageView; import org.communiquons.android.comunic.client.ui.views.WebUserAccountImage; import java.util.ArrayList; @@ -96,7 +97,7 @@ public class ConversationMessageAdapter extends ArrayAdapter + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_conversation_message_item.xml b/app/src/main/res/layout/fragment_conversation_message_item.xml index 5d0820d..07b1a0a 100644 --- a/app/src/main/res/layout/fragment_conversation_message_item.xml +++ b/app/src/main/res/layout/fragment_conversation_message_item.xml @@ -42,7 +42,7 @@ android:textColor="@color/conversation_otheruser_messages_textColor" tools:text="A message"/> -