blob: c39a00fc5df17caf871e33e21c0b47994653d4cf (
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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:fillViewport="true">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/spacer_2x">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/labelsWrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/label_labels"
app:layout_constraintBottom_toTopOf="@id/labelsGroup"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:startIconDrawable="@drawable/ic_label_grey600_24dp">
<it.niedermann.nextcloud.deck.ui.view.ToggleAutoCompleteTextView
android:id="@+id/labels"
style="@style/Widget.Material3.AutoCompleteTextView.OutlinedBox.Dense"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:completionThreshold="1"
android:inputType="text" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.chip.ChipGroup
android:id="@+id/labelsGroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
app:layout_constraintBottom_toTopOf="@id/peopleWrapper"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/labelsWrapper" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/peopleWrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacer_2x"
android:hint="@string/hint_assign_people"
app:layout_constraintBottom_toTopOf="@id/assignees"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/labelsGroup"
app:startIconDrawable="@drawable/ic_person_grey600_24dp">
<it.niedermann.nextcloud.deck.ui.view.ToggleAutoCompleteTextView
android:id="@+id/people"
style="@style/Widget.Material3.AutoCompleteTextView.OutlinedBox.Dense"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:completionThreshold="1"
android:inputType="text" />
</com.google.android.material.textfield.TextInputLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/assignees"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacer_1x"
android:layout_marginBottom="@dimen/spacer_1hx"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:layout_constraintBottom_toTopOf="@id/cardDueDateView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/peopleWrapper"
tools:listitem="@tools:sample/avatars" />
<it.niedermann.nextcloud.deck.ui.card.details.CardDueDateView
android:id="@+id/cardDueDateView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacer_2x"
app:layout_constraintBottom_toTopOf="@id/descriptionWrapper"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/assignees" />
<RelativeLayout
android:id="@+id/descriptionWrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacer_1x"
app:layout_constraintBottom_toTopOf="@id/projectsTitle"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cardDueDateView">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/descriptionEditorWrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacer_1x"
android:hint="@string/label_description">
<it.niedermann.android.markdown.MarkdownEditorImpl
android:id="@+id/descriptionEditor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/spacer_2x"
android:textColor="?attr/colorAccent"
android:textSize="@dimen/font_size_description" />
</com.google.android.material.textfield.TextInputLayout>
<it.niedermann.android.markdown.MarkdownViewerImpl
android:id="@+id/descriptionViewer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:padding="@dimen/spacer_2x"
android:textColor="?attr/colorAccent"
android:textIsSelectable="true"
android:textSize="@dimen/font_size_description"
android:translationY="1dp"
android:visibility="gone" />
<ImageButton
android:id="@+id/descriptionToggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_gravity="bottom"
android:layout_marginEnd="6dp"
android:background="?android:windowBackground"
android:contentDescription="@string/edit_description"
android:paddingStart="@dimen/spacer_1hx"
android:paddingTop="@dimen/spacer_1x"
android:paddingEnd="@dimen/spacer_1hx"
android:paddingBottom="@dimen/spacer_1hx"
android:translationY="-7dp"
android:visibility="invisible"
app:srcCompat="@drawable/ic_baseline_eye_24"
tools:visibility="visible" />
</RelativeLayout>
<TextView
android:id="@+id/projectsTitle"
style="?attr/textAppearanceOverline"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/spacer_4x"
android:paddingEnd="@null"
android:text="@string/projects_title"
app:layout_constraintBottom_toTopOf="@id/projects"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/descriptionWrapper" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/projects"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/projectsTitle"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/projectsTitle"
tools:listitem="@layout/item_project" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
|