mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 06:43:39 +00:00
Add ripple
This commit is contained in:
parent
61e44dcb59
commit
acc472bbad
@ -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
|
||||
}
|
@ -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" />
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user