2021-01-26 19:45:18 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
tools:context=".ChatActivity">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/recycler_chat"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
2021-05-05 20:54:25 +02:00
|
|
|
android:paddingHorizontal="20dp"
|
|
|
|
android:paddingBottom="20dp"
|
2021-01-26 19:45:18 +01:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/bottom_panel"/>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/bottom_panel"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/button_attach"
|
2021-05-08 19:54:10 +02:00
|
|
|
android:layout_width="@dimen/image_button_size"
|
|
|
|
android:layout_height="@dimen/image_button_size"
|
2021-01-26 19:45:18 +01:00
|
|
|
android:src="@drawable/ic_attach_file"
|
2021-05-08 19:54:10 +02:00
|
|
|
style="@style/ImageButton"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-01-26 19:45:18 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-05-08 19:54:10 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-01-26 19:45:18 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/image_trust_level" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/image_trust_level"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_warning"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-05-08 19:54:10 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@id/button_attach"
|
2021-01-26 19:45:18 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/edit_message"/>
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/edit_message"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2021-05-08 19:54:10 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-01-26 19:45:18 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-05-08 19:54:10 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@id/image_trust_level"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/button_send"/>
|
2021-01-26 19:45:18 +01:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/button_send"
|
2021-05-08 19:54:10 +02:00
|
|
|
android:layout_width="@dimen/image_button_size"
|
|
|
|
android:layout_height="@dimen/image_button_size"
|
2021-01-26 19:45:18 +01:00
|
|
|
android:src="@drawable/ic_send"
|
2021-05-08 19:54:10 +02:00
|
|
|
style="@style/ImageButton"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-01-26 19:45:18 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-05-08 19:54:10 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@id/edit_message"
|
2021-01-26 19:45:18 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|