From acc472bbad3007e81a842fa34d955228acb7f1fe Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 15 Jun 2021 13:01:05 +1000 Subject: [PATCH] Add ripple --- .../securesms/conversation/v2/input_bar/InputBar.kt | 3 +++ app/src/main/res/drawable/input_bar_button_background.xml | 6 ++++++ app/src/main/res/layout/view_input_bar.xml | 2 ++ 3 files changed, 11 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt index 6967d0b523..bcc095ad2d 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt @@ -4,6 +4,7 @@ import android.content.Context import android.util.AttributeSet import android.view.LayoutInflater import android.widget.LinearLayout +import kotlinx.android.synthetic.main.view_input_bar.view.* import network.loki.messenger.R class InputBar : LinearLayout { @@ -23,6 +24,8 @@ class InputBar : LinearLayout { private fun setUpViewHierarchy() { LayoutInflater.from(context).inflate(R.layout.view_input_bar, this) + attachmentsButton.setOnClickListener { } + microphoneButton.setOnClickListener { } } // endregion } \ No newline at end of file diff --git a/app/src/main/res/drawable/input_bar_button_background.xml b/app/src/main/res/drawable/input_bar_button_background.xml index 62e7fe7662..68f8684bc1 100644 --- a/app/src/main/res/drawable/input_bar_button_background.xml +++ b/app/src/main/res/drawable/input_bar_button_background.xml @@ -3,6 +3,12 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:color="@color/accent"> + + + + + diff --git a/app/src/main/res/layout/view_input_bar.xml b/app/src/main/res/layout/view_input_bar.xml index 4523219e4b..4250c3c8be 100644 --- a/app/src/main/res/layout/view_input_bar.xml +++ b/app/src/main/res/layout/view_input_bar.xml @@ -16,6 +16,7 @@ android:layout_height="match_parent">