64 lines
2.3 KiB
XML
64 lines
2.3 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent">
|
||
|
|
||
|
|
||
|
<com.google.android.material.appbar.AppBarLayout
|
||
|
android:id="@+id/app_bar"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="?attr/actionBarSize"
|
||
|
android:fitsSystemWindows="true"
|
||
|
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
|
||
|
|
||
|
<androidx.appcompat.widget.Toolbar
|
||
|
android:id="@+id/toolbar"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="?attr/actionBarSize"
|
||
|
app:layout_collapseMode="pin"
|
||
|
app:layout_scrollFlags="scroll|enterAlways"
|
||
|
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
|
||
|
|
||
|
</com.google.android.material.appbar.AppBarLayout>
|
||
|
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:gravity="center"
|
||
|
android:orientation="vertical"
|
||
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
|
||
|
|
||
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
android:id="@+id/file_list"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:visibility="gone" />
|
||
|
|
||
|
<ProgressBar
|
||
|
android:id="@+id/progressBar"
|
||
|
style="?android:attr/progressBarStyle"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/file_error"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:text="@string/loading_files" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||
|
android:id="@+id/fab"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="bottom|end"
|
||
|
android:layout_margin="16dp"
|
||
|
android:src="@mipmap/ui_add" />
|
||
|
|
||
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|