From ae8a2467aa84a90ee90f9f47758d74b58c3f23b2 Mon Sep 17 00:00:00 2001 From: lookshe Date: Sun, 12 Apr 2015 23:37:58 +0200 Subject: changed last message in overview also to EmojiconTextView for displaying smileys correctly --- .../eu/siacs/conversations/ui/adapter/ConversationAdapter.java | 4 +++- src/main/res/layout/conversation_list_row.xml | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java index 86526040..b6f88356 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java @@ -31,6 +31,8 @@ import eu.siacs.conversations.entities.Presences; import eu.siacs.conversations.ui.ConversationActivity; import eu.siacs.conversations.ui.XmppActivity; import eu.siacs.conversations.utils.UIHelper; +import github.ankushsachdeva.emojicon.EmojiconTextView; + import android.content.Context; import android.graphics.Color; import android.graphics.Typeface; @@ -79,7 +81,7 @@ public class ConversationAdapter extends ArrayAdapter { } else { convName.setText(conversation.getJid().toBareJid().toString()); } - TextView mLastMessage = (TextView) view.findViewById(R.id.conversation_lastmsg); + EmojiconTextView mLastMessage = (EmojiconTextView) view.findViewById(R.id.conversation_lastmsg); TextView mTimestamp = (TextView) view.findViewById(R.id.conversation_lastupdate); ImageView imagePreview = (ImageView) view.findViewById(R.id.conversation_lastimage); diff --git a/src/main/res/layout/conversation_list_row.xml b/src/main/res/layout/conversation_list_row.xml index 99f52c5d..e3f8f844 100644 --- a/src/main/res/layout/conversation_list_row.xml +++ b/src/main/res/layout/conversation_list_row.xml @@ -1,4 +1,6 @@ - - + android:textSize="?attr/TextSizeBody" + emojicon:emojiconSize="20sp" />