Add ripple

This commit is contained in:
Niels Andriesse 2021-06-15 13:01:05 +10:00
parent 61e44dcb59
commit acc472bbad
3 changed files with 11 additions and 0 deletions

View File

@ -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
}

View File

@ -3,6 +3,12 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/accent">
<item
android:id="@android:id/mask">
<shape android:shape="oval">
<solid android:color="@color/white" />
</shape>
</item>
<item>
<shape android:shape="oval">
<solid android:color="@color/input_bar_button_background" />

View File

@ -16,6 +16,7 @@
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/attachmentsButton"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentStart="true"
@ -42,6 +43,7 @@
android:background="@color/red" />
<RelativeLayout
android:id="@+id/microphoneButton"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentEnd="true"