1<?xml version="1.0" encoding="utf-8"?>
  2<layout xmlns:android="http://schemas.android.com/apk/res/android"
  3    xmlns:app="http://schemas.android.com/apk/res-auto">
  4
  5    <RelativeLayout xmlns:tools="http://schemas.android.com/tools"
  6        android:layout_width="match_parent"
  7        android:layout_height="match_parent">
  8
  9        <com.google.android.material.tabs.TabLayout
 10            android:visibility="gone"
 11            android:id="@+id/tab_layout"
 12            android:layout_width="match_parent"
 13            android:layout_height="30dp"
 14            android:elevation="@dimen/toolbar_elevation"
 15            app:tabGravity="fill"
 16            app:tabMode="scrollable" />
 17
 18        <com.cheogram.android.WebviewAwareViewPager
 19            android:id="@+id/conversation_view_pager"
 20            android:layout_below="@id/tab_layout"
 21            android:layout_width="fill_parent"
 22            android:layout_height="fill_parent">
 23
 24            <RelativeLayout
 25                android:layout_width="fill_parent"
 26                android:layout_height="fill_parent">
 27
 28                <ListView
 29                    android:id="@+id/messages_view"
 30                    android:layout_width="fill_parent"
 31                    android:layout_height="wrap_content"
 32                    android:layout_above="@+id/snackbar"
 33                    android:layout_alignParentStart="true"
 34                    android:layout_alignParentTop="true"
 35                    android:divider="@null"
 36                    android:dividerHeight="0dp"
 37                    android:listSelector="@android:color/transparent"
 38                    android:stackFromBottom="true"
 39                    android:transcriptMode="normal"
 40                    tools:listitem="@layout/item_message_sent" />
 41
 42                <LinearLayout
 43                    android:id="@+id/context_preview"
 44                    android:visibility="gone"
 45                    android:layout_alignParentStart="true"
 46                    android:layout_alignParentLeft="true"
 47                    android:layout_above="@+id/textsend"
 48                    android:layout_width="fill_parent"
 49                    android:layout_height="wrap_content"
 50                    android:minHeight="40dp"
 51                    android:paddingTop="8dp"
 52                    android:paddingLeft="8dp"
 53                    android:paddingRight="14dp"
 54                    android:orientation="horizontal"
 55                    android:background="@drawable/textsend">
 56
 57                    <ImageView
 58                        android:src="@drawable/ic_reply_24dp"
 59                        android:layout_width="20dp"
 60                        android:layout_height="20dp"
 61                        android:layout_marginRight="8dp"
 62                        android:contentDescription="Reply to" />
 63
 64                    <TextView
 65                        android:id="@+id/context_preview_text"
 66                        android:layout_weight="1"
 67                        android:layout_width="0dp"
 68                        android:layout_height="wrap_content" />
 69
 70                    <ImageButton
 71                        android:id="@+id/context_preview_cancel"
 72                        android:layout_width="20dp"
 73                        android:layout_height="20dp"
 74                        android:padding="0dp"
 75                        android:layout_gravity="center_vertical"
 76                        android:background="@android:color/transparent"
 77                        android:src="@drawable/ic_cancel_24dp"
 78                        android:contentDescription="Cancel" />
 79                </LinearLayout>
 80
 81                <RelativeLayout
 82                    android:id="@+id/textsend"
 83                    android:layout_width="match_parent"
 84                    android:layout_height="wrap_content"
 85                    android:layout_alignParentStart="true"
 86                    android:layout_alignParentBottom="true"
 87                    android:paddingHorizontal="8dp"
 88                    android:paddingVertical="6dp">
 89
 90                    <LinearLayout
 91                        android:id="@+id/input_layout"
 92                        android:layout_width="wrap_content"
 93                        android:layout_height="wrap_content"
 94                        android:layout_centerVertical="true"
 95                        android:layout_toStartOf="@+id/textSendButton"
 96                        android:layout_toEndOf="@+id/thread_identicon_layout"
 97                        android:background="@drawable/background_message_bubble"
 98                        android:backgroundTint="?colorTertiaryContainer"
 99                        android:orientation="vertical"
100                        android:paddingHorizontal="16dp"
101                        android:paddingVertical="8dp">
102
103                        <TextView
104                            android:id="@+id/text_input_hint"
105                            android:layout_width="wrap_content"
106                            android:layout_height="wrap_content"
107                            android:layout_marginBottom="8sp"
108                            android:maxLines="1"
109                            android:textAppearance="?textAppearanceBodySmall"
110                            android:textColor="?colorOnTertiaryContainer"
111                            android:visibility="visible"
112                            tools:text="@string/private_message_to" />
113
114                        <androidx.recyclerview.widget.RecyclerView
115                            android:id="@+id/media_preview"
116                            android:layout_width="wrap_content"
117                            android:layout_height="wrap_content"
118                            android:orientation="horizontal"
119                            android:requiresFadingEdge="horizontal"
120                            android:visibility="gone"
121                            app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
122                            tools:listitem="@layout/item_media_preview">
123
124                        </androidx.recyclerview.widget.RecyclerView>
125
126                        <eu.siacs.conversations.ui.widget.EditMessage
127                            android:id="@+id/textinput_subject"
128                            android:layout_width="match_parent"
129                            android:layout_height="wrap_content"
130                            android:hint="Subject"
131                            android:textColor="?colorOnTertiaryContainer"
132                            android:textColorHint="@color/hint_on_tertiary_container"
133                            android:textCursorDrawable="@drawable/cursor_on_tertiary_container"
134                            android:maxLines="1"
135                            android:padding="8dp"
136                            android:imeOptions="flagNoExtractUi"
137                            android:inputType="textShortMessage|textMultiLine|textCapSentences"
138                            android:visibility="gone" />
139
140                        <eu.siacs.conversations.ui.widget.EditMessage
141                            android:id="@+id/textinput"
142                            android:layout_width="match_parent"
143                            android:layout_height="wrap_content"
144                            android:background="@android:color/transparent"
145                            android:ems="10"
146                            android:imeOptions="flagNoExtractUi|actionSend"
147                            android:inputType="textShortMessage|textMultiLine|textCapSentences"
148                            android:maxLines="8"
149                            android:minHeight="32dp"
150                            android:textColor="?colorOnTertiaryContainer"
151                            android:textColorHint="@color/hint_on_tertiary_container"
152                            android:textCursorDrawable="@drawable/cursor_on_tertiary_container"
153                            android:minLines="1">
154
155                            <requestFocus />
156                        </eu.siacs.conversations.ui.widget.EditMessage>
157
158                    </LinearLayout>
159
160                    <RelativeLayout
161                        android:id="@+id/thread_identicon_layout"
162                        android:layout_width="30dp"
163                        android:layout_height="30dp"
164                        android:layout_alignParentStart="true"
165                        android:layout_alignParentLeft="true"
166                        android:layout_centerVertical="true"
167                        android:layout_marginEnd="8dp"
168                        android:background="@drawable/thread_hint">
169
170                        <com.lelloman.identicon.view.GithubIdenticonView
171                            android:id="@+id/thread_identicon"
172                            android:alpha="0"
173                            android:layout_width="18dp"
174                            android:layout_height="18dp"
175                            android:layout_centerVertical="true"
176                            android:contentDescription="Thread Marker" />
177                        <ImageView
178                            android:id="@+id/thread_identicon_lock"
179                            android:layout_width="10dp"
180                            android:layout_height="10dp"
181                            android:layout_alignParentTop="true"
182                            android:layout_alignParentEnd="true"
183                            android:layout_alignParentRight="true"
184                            android:visibility="gone"
185                            android:src="@drawable/ic_lock_24dp"
186                            android:contentDescription="Thread Locked" />
187
188                    </RelativeLayout>
189
190                    <com.google.android.material.button.MaterialButton
191                        android:id="@+id/textSendButton"
192                        style="?attr/materialIconButtonFilledTonalStyle"
193                        android:layout_width="wrap_content"
194                        android:layout_height="wrap_content"
195                        android:layout_alignParentEnd="true"
196                        android:layout_centerVertical="true"
197                        android:layout_marginStart="2dp"
198                        android:backgroundTint="?colorSurfaceContainerHigh"
199                        android:contentDescription="@string/send_message"
200                        app:icon="@drawable/ic_send_24dp"
201                        app:iconSize="32dp" />
202
203                    <com.google.android.material.button.MaterialButton
204                        style="?attr/materialIconButtonFilledTonalStyle"
205                        android:id="@+id/request_voice"
206                        android:visibility="gone"
207                        android:layout_width="wrap_content"
208                        android:layout_height="48dp"
209                        android:layout_marginRight="8dp"
210                        android:layout_alignParentEnd="true"
211                        android:layout_alignParentRight="true"
212                        android:layout_centerVertical="true"
213                        android:text="Request to Speak" />
214                </RelativeLayout>
215
216                <com.google.android.material.floatingactionbutton.FloatingActionButton
217                    android:id="@+id/scroll_to_bottom_button"
218                    style="?attr/floatingActionButtonSmallSurfaceStyle"
219                    android:layout_width="wrap_content"
220                    android:layout_height="wrap_content"
221                    android:layout_alignBottom="@+id/messages_view"
222                    android:layout_alignParentEnd="true"
223                    android:src="@drawable/ic_keyboard_double_arrow_down_24dp"
224                    android:visibility="visible"
225                    app:useCompatPadding="true" />
226
227                <eu.siacs.conversations.ui.widget.UnreadCountCustomView
228                    android:id="@+id/unread_count_custom_view"
229                    android:layout_width="18sp"
230                    android:layout_height="18sp"
231                    android:layout_alignTop="@+id/scroll_to_bottom_button"
232                    android:layout_alignEnd="@+id/scroll_to_bottom_button"
233                    android:layout_marginTop="16dp"
234                    android:layout_marginEnd="8dp"
235                    android:elevation="8dp"
236                    android:visibility="gone"
237                    app:backgroundColor="?colorTertiaryContainer"
238                    app:textColor="?colorOnTertiaryContainer"
239                    tools:ignore="RtlCompat" />
240
241                <RelativeLayout
242                    android:id="@+id/snackbar"
243                    android:layout_width="fill_parent"
244                    android:layout_height="wrap_content"
245                    android:layout_above="@+id/context_preview"
246                    android:layout_marginLeft="8dp"
247                    android:layout_marginRight="8dp"
248                    android:layout_marginBottom="4dp"
249                    android:background="@drawable/snackbar"
250                    android:minHeight="48dp"
251                    android:visibility="visible">
252
253                    <TextView
254                        android:id="@+id/snackbar_message"
255                        android:layout_width="wrap_content"
256                        android:layout_height="wrap_content"
257                        android:layout_alignParentStart="true"
258                        android:layout_centerVertical="true"
259                        android:layout_marginStart="24dp"
260                        android:layout_toStartOf="@+id/snackbar_action"
261                        android:textColor="?colorOnSurfaceInverse"
262                        tools:text="@string/conference_kicked" />
263
264                    <TextView
265                        android:id="@+id/snackbar_action"
266                        android:layout_width="wrap_content"
267                        android:layout_height="wrap_content"
268                        android:layout_alignParentEnd="true"
269                        android:layout_centerVertical="true"
270                        android:paddingLeft="24dp"
271                        android:paddingTop="16dp"
272                        android:paddingRight="24dp"
273                        android:paddingBottom="16dp"
274                        android:textAllCaps="true"
275                        android:textColor="?colorOnSurfaceInverse"
276                        android:textStyle="bold"
277                        tools:text="@string/leave" />
278                </RelativeLayout>
279
280		        </RelativeLayout>
281
282            <RelativeLayout
283                android:layout_width="fill_parent"
284                android:layout_height="fill_parent">
285
286                <ListView
287                    android:id="@+id/commands_view"
288                    android:layout_width="fill_parent"
289                    android:layout_height="wrap_content"
290                    android:layout_alignParentStart="true"
291                    android:layout_alignParentLeft="true"
292                    android:layout_alignParentTop="true"
293                    android:divider="@android:color/transparent"
294                    android:dividerHeight="0dp"></ListView>
295
296                <TextView
297                    android:id="@+id/commands_note"
298                    android:layout_width="match_parent"
299                    android:layout_height="wrap_content"
300                    android:layout_below="@+id/commands_view"
301                    android:visibility="gone"
302                    android:text="If you have made payment via Bitcoin, eTransfer, or mail, hold tight for your notification. Otherwise you can pick up where you left off by tapping Register with Backend above (you may be asked a few of the same questions but it will generally not ask you to pay again if you already did, etc)."
303                    android:gravity="center"
304                    android:minHeight="?android:attr/listPreferredItemHeightSmall"
305                    android:paddingLeft="8dp"
306                    android:paddingRight="8dp"
307                    android:textAppearance="?textAppearanceBodyMedium" />
308
309                <ProgressBar
310                    android:id="@+id/commands_view_progressbar"
311                    android:layout_width="match_parent"
312                    android:layout_height="130dp"
313                    android:paddingLeft="8dp"
314                    android:paddingRight="8dp"
315                    android:paddingBottom="16dp" />
316
317            </RelativeLayout>
318
319        </com.cheogram.android.WebviewAwareViewPager>
320
321    </RelativeLayout>
322</layout>