1 <?xml version="1.0" encoding="utf-8"?>
3 This file is part of the LibreOffice project.
5 This Source Code Form is subject to the terms of the Mozilla Public
6 License, v. 2.0. If a copy of the MPL was not distributed with this
7 file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
10 xmlns:app="http://schemas.android.com/apk/res-auto"
11 xmlns:tools="http://schemas.android.com/tools"
12 android:layout_width="match_parent"
13 android:layout_height="match_parent"
14 android:orientation="vertical">
17 <com.google.android.material.appbar.MaterialToolbar
18 android:id="@+id/toolbar"
19 android:layout_width="0dp"
20 android:layout_height="wrap_content"
21 android:elevation="3dp"
22 app:theme="@style/LibreOfficeTheme.Toolbar"
23 tools:theme="@style/LibreOfficeTheme.Toolbar"
24 app:popupTheme="@style/LibreOfficeTheme"
25 tools:layout_constraintTop_creator="1"
26 tools:layout_constraintRight_creator="1"
27 app:layout_constraintRight_toRightOf="parent"
28 tools:layout_constraintLeft_creator="1"
29 app:layout_constraintLeft_toLeftOf="parent"
30 app:layout_constraintTop_toTopOf="parent">
32 </com.google.android.material.appbar.MaterialToolbar>
35 <androidx.drawerlayout.widget.DrawerLayout
36 android:id="@+id/drawer_layout"
37 android:layout_width="0dp"
38 android:layout_height="0dp"
39 tools:layout_constraintTop_creator="1"
40 tools:layout_constraintRight_creator="1"
41 tools:layout_constraintBottom_creator="1"
42 app:layout_constraintBottom_toBottomOf="parent"
43 app:layout_constraintRight_toRightOf="parent"
44 app:layout_constraintTop_toBottomOf="@+id/toolbar"
45 tools:layout_constraintLeft_creator="1"
46 app:layout_constraintLeft_toLeftOf="parent">
49 <androidx.core.widget.NestedScrollView
50 android:layout_width="match_parent"
51 android:layout_height="match_parent">
54 android:layout_width="match_parent"
55 android:layout_height="wrap_content"
56 android:orientation="vertical"
57 android:divider="@color/doorhanger_divider_light"
58 android:showDividers="middle">
61 android:id="@+id/header_browser"
62 android:layout_width="match_parent"
63 android:layout_height="wrap_content"
64 android:gravity="center_vertical"
65 android:padding="16dp"
66 android:text="@string/title_browser"
67 android:textSize="14sp"
68 android:textStyle="bold" />
71 android:id="@+id/open_file_button"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 android:layout_weight="1"
75 android:gravity="center_vertical"
76 android:text="@string/select_file_to_open"
77 android:textSize="14dp"
78 app:drawableLeftCompat="@drawable/ic_folder_48dp" />
81 android:layout_width="match_parent"
82 android:layout_height="wrap_content"
83 android:id="@+id/header_recents"
84 android:text="@string/title_recents"
85 android:gravity="center_vertical"
86 android:textSize="14sp"
87 android:padding="16dp"
88 android:textStyle="bold" />
91 <androidx.recyclerview.widget.RecyclerView
92 android:id="@+id/list_recent"
93 android:layout_width="match_parent"
94 android:layout_height="wrap_content"
95 android:layout_marginTop="8dp"
96 android:layout_marginBottom="8dp" />
100 </androidx.core.widget.NestedScrollView>
102 <!-- The navigation drawer -->
104 </androidx.drawerlayout.widget.DrawerLayout>
106 <com.google.android.material.floatingactionbutton.FloatingActionButton
107 android:id="@+id/editFAB"
108 android:contentDescription="@string/create_file"
109 android:layout_width="wrap_content"
110 android:layout_height="wrap_content"
111 android:clickable="true"
112 app:backgroundTint="@color/background_floating"
114 app:layout_constraintBottom_toBottomOf="parent"
115 app:layout_constraintRight_toRightOf="parent"
116 app:srcCompat="@drawable/ic_add_24dp"
117 app:useCompatPadding="true" />
120 android:id="@+id/writerLayout"
121 android:layout_width="wrap_content"
122 android:layout_height="wrap_content"
123 android:gravity="center_vertical"
124 android:orientation="horizontal"
125 android:visibility="invisible"
126 app:layout_constraintBottom_toTopOf="@id/editFAB"
127 app:layout_constraintRight_toRightOf="@id/editFAB"
128 tools:visibility="visible">
131 android:id="@+id/newWriterTextView"
132 style="@style/NewDocumentTextView"
133 android:layout_marginBottom="@dimen/new_doc_fab_tweak_bottom"
134 android:layout_marginTop="@dimen/new_doc_fab_tweak_top"
135 android:text="@string/new_textdocument" />
137 <com.google.android.material.floatingactionbutton.FloatingActionButton
138 android:id="@+id/newWriterFAB"
139 android:layout_width="wrap_content"
140 android:layout_height="wrap_content"
141 android:layout_marginBottom="@dimen/new_doc_fab_tweak_bottom"
142 android:layout_marginTop="@dimen/new_doc_fab_tweak_top"
143 android:clickable="true"
144 app:backgroundTint="@color/background_floating"
146 app:srcCompat="@drawable/writer"
147 app:useCompatPadding="true" />
152 android:id="@+id/impressLayout"
153 android:layout_width="wrap_content"
154 android:layout_height="wrap_content"
155 android:gravity="center_vertical"
156 android:orientation="horizontal"
157 android:visibility="invisible"
158 app:layout_constraintBottom_toTopOf="@+id/writerLayout"
159 app:layout_constraintRight_toRightOf="@id/editFAB"
160 tools:visibility="visible">
163 android:id="@+id/newImpressTextView"
164 style="@style/NewDocumentTextView"
165 android:layout_marginBottom="@dimen/new_doc_fab_tweak_bottom"
166 android:layout_marginTop="@dimen/new_doc_fab_tweak_top"
167 android:text="@string/new_presentation" />
169 <com.google.android.material.floatingactionbutton.FloatingActionButton
170 android:id="@+id/newImpressFAB"
171 android:layout_width="wrap_content"
172 android:layout_height="wrap_content"
173 android:layout_marginBottom="@dimen/new_doc_fab_tweak_bottom"
174 android:layout_marginTop="@dimen/new_doc_fab_tweak_top"
175 android:clickable="true"
176 app:backgroundTint="@color/background_floating"
178 app:srcCompat="@drawable/impress"
179 app:useCompatPadding="true" />
184 android:id="@+id/calcLayout"
185 android:layout_width="wrap_content"
186 android:layout_height="wrap_content"
187 android:gravity="center_vertical"
188 android:orientation="horizontal"
189 android:visibility="invisible"
190 tools:visibility="visible"
191 app:layout_constraintBottom_toTopOf="@+id/impressLayout"
192 app:layout_constraintRight_toRightOf="@id/editFAB">
195 android:id="@+id/newCalcTextView"
196 style="@style/NewDocumentTextView"
197 android:layout_marginBottom="@dimen/new_doc_fab_tweak_bottom"
198 android:layout_marginTop="@dimen/new_doc_fab_tweak_top"
199 android:text="@string/new_spreadsheet" />
201 <com.google.android.material.floatingactionbutton.FloatingActionButton
202 android:id="@+id/newCalcFAB"
203 android:layout_width="wrap_content"
204 android:layout_height="wrap_content"
205 android:layout_marginBottom="@dimen/new_doc_fab_tweak_bottom"
206 android:layout_marginTop="@dimen/new_doc_fab_tweak_top"
207 android:clickable="true"
208 app:backgroundTint="@color/background_floating"
210 app:srcCompat="@drawable/calc"
211 app:useCompatPadding="true" />
216 android:id="@+id/drawLayout"
217 android:layout_width="wrap_content"
218 android:layout_height="wrap_content"
219 android:gravity="center_vertical"
220 android:orientation="horizontal"
221 android:visibility="invisible"
222 tools:visibility="visible"
223 app:layout_constraintBottom_toTopOf="@+id/calcLayout"
224 app:layout_constraintRight_toRightOf="@id/editFAB">
227 android:id="@+id/newDrawTextView"
228 style="@style/NewDocumentTextView"
229 android:layout_marginBottom="@dimen/new_doc_fab_tweak_bottom"
230 android:layout_marginTop="@dimen/new_doc_fab_tweak_top"
231 android:text="@string/new_drawing" />
233 <com.google.android.material.floatingactionbutton.FloatingActionButton
234 android:id="@+id/newDrawFAB"
235 android:layout_width="wrap_content"
236 android:layout_height="wrap_content"
237 android:layout_marginBottom="@dimen/new_doc_fab_tweak_bottom"
238 android:layout_marginTop="@dimen/new_doc_fab_tweak_top"
239 android:clickable="true"
240 app:backgroundTint="@color/background_floating"
242 app:srcCompat="@drawable/draw"
243 app:useCompatPadding="true" />
247 </androidx.constraintlayout.widget.ConstraintLayout>