From 8d0c94834a11500cec501b890ce8bc1db93bcfb4 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Wed, 8 Jan 2025 17:20:40 +0100 Subject: [PATCH] add animation to "unread mentions" button + change design Signed-off-by: Marcel Hibbe --- .../ConversationsListActivity.kt | 3 +++ app/src/main/res/anim/popup_animation.xml | 21 +++++++++++++++++++ .../res/layout/activity_conversations.xml | 4 ++-- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/anim/popup_animation.xml diff --git a/app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt b/app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt index 373dc5afe..8bebb0719 100644 --- a/app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt @@ -33,6 +33,7 @@ import android.view.Menu import android.view.MenuItem import android.view.MotionEvent import android.view.View +import android.view.animation.AnimationUtils import android.view.inputmethod.EditorInfo import android.view.inputmethod.InputMethodManager import android.widget.Toast @@ -1071,6 +1072,8 @@ class ConversationsListActivity : nextUnreadConversationScrollPosition = position if (!binding.newMentionPopupBubble.isShown) { binding.newMentionPopupBubble.visibility = View.VISIBLE + val popupAnimation = AnimationUtils.loadAnimation(this, R.anim.popup_animation) + binding.newMentionPopupBubble.startAnimation(popupAnimation) } return@subscribe } diff --git a/app/src/main/res/anim/popup_animation.xml b/app/src/main/res/anim/popup_animation.xml new file mode 100644 index 000000000..246ce1b11 --- /dev/null +++ b/app/src/main/res/anim/popup_animation.xml @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_conversations.xml b/app/src/main/res/layout/activity_conversations.xml index 4e7f1f077..42206fbc3 100644 --- a/app/src/main/res/layout/activity_conversations.xml +++ b/app/src/main/res/layout/activity_conversations.xml @@ -253,9 +253,8 @@