blob: 7786127e94e2742c4f6146801140e3830b708d08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/standard_padding">
<LinearLayout
android:id="@+id/addCommentLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/standard_margin"
android:layout_marginBottom="@dimen/standard_margin"
android:orientation="horizontal">
<ImageView
android:layout_width="@dimen/icon_size_details"
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/standard_margin"
android:layout_marginRight="@dimen/standard_margin"
android:contentDescription="@null"
android:tint="@color/grey600"
app:srcCompat="@drawable/ic_comment_white_24dp" />
<EditText
android:id="@+id/message"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="@dimen/standard_margin"
android:layout_marginLeft="@dimen/standard_margin"
android:layout_weight="1"
android:autofillHints="@null"
android:hint="@string/simple_comment"
android:imeOptions="actionSend"
android:inputType="text"
android:maxLength="@integer/comment_max_length"
android:paddingEnd="@dimen/standard_half_padding"
android:paddingRight="@dimen/standard_half_padding"
tools:ignore="RtlSymmetry" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:contentDescription="@string/add_comment"
android:tint="@android:color/white"
app:fabSize="mini"
app:srcCompat="@drawable/ic_send_white_24dp" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/comments"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/standard_margin"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/item_comment" />
</LinearLayout>
|