58 lines
2.1 KiB
XML
58 lines
2.1 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">
|
||
|
|
||
|
<TextView
|
||
|
android:textSize="16dp"
|
||
|
android:id="@+id/unit_error"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:text="@string/loading_units" />
|
||
|
|
||
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
android:id="@+id/unit_list"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:visibility="gone" />
|
||
|
|
||
|
</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>
|