diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBarRecordingView.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBarRecordingView.kt index b1da2ec48a..836e995dfe 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBarRecordingView.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBarRecordingView.kt @@ -34,9 +34,21 @@ class InputBarRecordingView : RelativeLayout { alpha = animator.animatedValue as Float } animation.start() + animateDotView() pulse() } + private fun animateDotView() { + val animation = ValueAnimator.ofObject(FloatEvaluator(), 1.0f, 0.0f) + animation.duration = 500L + animation.addUpdateListener { animator -> + dotView.alpha = animator.animatedValue as Float + } + animation.repeatCount = ValueAnimator.INFINITE + animation.repeatMode = ValueAnimator.REVERSE + animation.start() + } + private fun pulse() { val collapsedSize = toPx(80.0f, resources) val expandedSize = toPx(104.0f, resources) diff --git a/app/src/main/res/layout/view_input_bar_recording.xml b/app/src/main/res/layout/view_input_bar_recording.xml index 1ea62d3371..cab339afbf 100644 --- a/app/src/main/res/layout/view_input_bar_recording.xml +++ b/app/src/main/res/layout/view_input_bar_recording.xml @@ -31,6 +31,7 @@ android:orientation="horizontal">