1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright 2021 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~     http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<androidx.constraintlayout.widget.ConstraintLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    xmlns:tools="http://schemas.android.com/tools"
22    android:id="@+id/layout_root"
23    android:layout_width="match_parent"
24    android:layout_height="match_parent"
25    tools:context=".MainActivity">
26
27    <com.google.android.material.appbar.AppBarLayout
28        android:id="@+id/appbar"
29        android:layout_width="match_parent"
30        android:layout_height="wrap_content"
31        app:layout_constraintStart_toStartOf="parent"
32        app:layout_constraintTop_toTopOf="parent">
33
34        <androidx.appcompat.widget.Toolbar
35            android:id="@+id/app_toolbar"
36            android:layout_width="match_parent"
37            android:layout_height="?attr/actionBarSize"/>
38    </com.google.android.material.appbar.AppBarLayout>
39
40    <androidx.appcompat.widget.LinearLayoutCompat
41        android:id="@+id/container"
42        android:layout_width="match_parent"
43        android:layout_height="wrap_content"
44        android:orientation="vertical"
45        android:layout_margin="18dp"
46        android:padding="2dp"
47        app:layout_constraintEnd_toEndOf="parent"
48        app:layout_constraintStart_toStartOf="parent"
49        app:layout_constraintTop_toBottomOf="@id/appbar"
50        android:background="@drawable/container_background">
51
52        <androidx.appcompat.widget.LinearLayoutCompat
53            android:id="@+id/attachments"
54            android:layout_width="match_parent"
55            android:layout_height="wrap_content"
56            android:orientation="horizontal">
57
58            <androidx.recyclerview.widget.RecyclerView
59                android:id="@+id/attachments_recycler_view"
60                android:layout_width="match_parent"
61                android:layout_height="match_parent"
62                android:layout_marginHorizontal="6dp"
63                android:orientation="horizontal"
64                app:layoutManager="LinearLayoutManager" />
65
66        </androidx.appcompat.widget.LinearLayoutCompat>
67
68        <androidx.appcompat.widget.AppCompatEditText
69            android:id="@+id/text_input"
70            android:layout_width="match_parent"
71            android:layout_height="wrap_content"
72            android:layout_marginHorizontal="8dp"
73            android:layout_marginVertical="2dp"
74            android:gravity="bottom"
75            android:text="@string/text_input_default_text" />
76    </androidx.appcompat.widget.LinearLayoutCompat>
77</androidx.constraintlayout.widget.ConstraintLayout>
78