2020-07-01 17:08:28 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-11-04 14:58:06 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-08-06 16:48:52 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-09-26 09:14:06 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-07-01 17:08:28 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-08-17 13:49:51 +00:00
|
|
|
android:orientation="vertical">
|
2020-08-06 16:48:52 +00:00
|
|
|
|
2020-07-01 17:08:28 +00:00
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/swipeRefreshLayout"
|
|
|
|
android:layout_width="match_parent"
|
2020-08-15 21:25:57 +00:00
|
|
|
android:layout_height="0dp"
|
2020-11-04 14:58:06 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/comment_container"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2020-07-01 17:08:28 +00:00
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2020-08-17 13:49:51 +00:00
|
|
|
android:id="@+id/messageList"
|
2020-07-01 17:08:28 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-08-29 08:01:42 +00:00
|
|
|
android:layout_height="match_parent"
|
2020-09-26 09:14:06 +00:00
|
|
|
tools:listitem="@layout/layout_dm_base" />
|
2020-07-01 17:08:28 +00:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
2020-08-06 16:48:52 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
2020-11-04 14:58:06 +00:00
|
|
|
android:id="@+id/comment_container"
|
2020-08-06 16:48:52 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-11-04 14:58:06 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/swipeRefreshLayout">
|
2020-08-06 16:48:52 +00:00
|
|
|
|
2020-08-18 20:47:43 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/image"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:padding="4dp"
|
|
|
|
app:srcCompat="@drawable/ic_image_24" />
|
|
|
|
|
2020-08-06 16:48:52 +00:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/commentText"
|
2020-08-15 21:25:57 +00:00
|
|
|
android:layout_width="0dp"
|
2020-08-06 16:48:52 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-17 13:49:51 +00:00
|
|
|
android:layout_weight="1"
|
2020-08-06 16:48:52 +00:00
|
|
|
android:gravity="bottom"
|
|
|
|
android:hint="@string/dm_hint"
|
2020-08-15 21:25:57 +00:00
|
|
|
android:importantForAutofill="no"
|
2020-08-06 16:48:52 +00:00
|
|
|
android:inputType="textMultiLine"
|
|
|
|
android:maxLength="2200"
|
|
|
|
android:maxLines="10"
|
2020-08-15 21:25:57 +00:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingEnd="4dp"
|
2020-08-17 13:49:51 +00:00
|
|
|
android:scrollHorizontally="false" />
|
2020-08-15 21:25:57 +00:00
|
|
|
|
2020-08-06 16:48:52 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/commentSend"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-15 21:25:57 +00:00
|
|
|
android:layout_gravity="center"
|
2020-08-06 16:48:52 +00:00
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:clickable="true"
|
2020-08-15 21:25:57 +00:00
|
|
|
android:focusable="true"
|
|
|
|
android:paddingStart="4dp"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:paddingBottom="4dp"
|
|
|
|
app:srcCompat="@drawable/ic_send_24" />
|
2020-08-06 16:48:52 +00:00
|
|
|
</LinearLayout>
|
2020-11-04 14:58:06 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|