1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 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<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/layout_root" 22 android:orientation="vertical" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent"> 25 26 <com.google.android.material.appbar.AppBarLayout 27 android:id="@+id/appbar" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content"> 30 31 <androidx.appcompat.widget.Toolbar 32 android:id="@+id/app_toolbar" 33 android:layout_width="match_parent" 34 android:layout_height="?attr/actionBarSize"/> 35 </com.google.android.material.appbar.AppBarLayout> 36 37 <LinearLayout 38 android:id="@+id/container" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:orientation="vertical" 42 android:layout_margin="18dp" 43 android:padding="2dp" 44 android:background="@drawable/container_background"> 45 46 <LinearLayout 47 android:id="@+id/attachments" 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 android:orientation="horizontal"> 51 52 <androidx.recyclerview.widget.RecyclerView 53 android:id="@+id/attachments_recycler_view" 54 android:layout_width="match_parent" 55 android:layout_height="match_parent" 56 android:layout_marginHorizontal="6dp" 57 android:orientation="horizontal" 58 app:layoutManager="LinearLayoutManager" /> 59 </LinearLayout> 60 61 <EditText 62 android:id="@+id/text_input" 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content" 65 android:layout_marginHorizontal="8dp" 66 android:layout_marginVertical="2dp" 67 android:gravity="bottom" 68 android:text="@string/text_input_default_text" /> 69 </LinearLayout> 70</LinearLayout> 71