blob: 655d88c2f5ec882a782dadbdc732b3a60caa0515 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
<?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:background="?attr/selectableItemBackground"
android:orientation="vertical"
android:padding="@dimen/spacer_2x">
<LinearLayout
android:id="@+id/parentContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="54dp"
android:layout_marginBottom="@dimen/spacer_1x"
android:orientation="horizontal"
android:visibility="gone"
tools:visibility="visible">
<View
android:id="@+id/parentBorder"
android:layout_width="2dp"
android:layout_height="match_parent"
android:background="?attr/colorSecondary" />
<TextView
android:id="@+id/parent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="@integer/comment_parent_max_lines"
android:paddingVertical="@dimen/spacer_1hx"
android:paddingStart="@dimen/spacer_1x"
android:paddingEnd="@null"
android:textColor="?attr/colorOnSurfaceVariant"
tools:text="@tools:sample/lorem/random" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:orientation="horizontal">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/spacer_1x">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/avatar"
android:layout_width="@dimen/avatar_size"
android:layout_height="@dimen/avatar_size"
android:layout_gravity="center"
android:layout_margin="@dimen/spacer_1x"
android:contentDescription="@null"
app:srcCompat="@drawable/ic_person_24dp"
tools:srcCompat="@tools:sample/avatars" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/not_synced_yet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:visibility="gone"
app:srcCompat="@drawable/ic_sync_18dp"
app:tint="?attr/colorPrimary"
tools:visibility="visible" />
</FrameLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/actorDisplayName"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textAppearance="?attr/textAppearanceListItem"
android:textColor="?attr/colorOnSurface"
tools:text="@tools:sample/full_names" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/creationDateTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textAppearance="?attr/textAppearanceListItemSecondary"
android:textColor="?attr/colorOnSurface"
android:textColorHighlight="?attr/colorOnSurfaceVariant"
tools:text="@tools:sample/date/day_of_week" />
</LinearLayout>
<it.niedermann.android.markdown.MarkdownViewerImpl
android:id="@+id/message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:autofillHints="@null"
android:textAppearance="?attr/textAppearanceListItem"
android:textColor="?attr/colorOnSurface"
tools:maxLength="200"
tools:text="@tools:sample/lorem/random" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
|