<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Nextcloud - Android Client
  ~
  ~ SPDX-FileCopyrightText: 2021 Andy Scherzinger <info@andy-scherzinger>
  ~ SPDX-FileCopyrightText: 2016 Nextcloud
  ~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools">

    <com.google.android.material.navigation.NavigationView
        android:id="@+id/nav_view"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:layout_weight="1"
        android:background="@color/appbar"
        android:fitsSystemWindows="true"
        android:theme="@style/NavigationView_ItemTextAppearance"
        app:headerLayout="@layout/drawer_header"
        app:itemTextColor="@color/drawer_text_color"
        app:menu="@menu/partial_drawer_entries">

        <LinearLayout
            android:id="@+id/drawer_quota"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:clickable="false"
            android:orientation="vertical"
            android:background="@color/appbar"
            android:paddingLeft="@dimen/drawer_content_horizontal_padding"
            android:paddingTop="@dimen/standard_half_padding"
            android:paddingRight="@dimen/drawer_content_horizontal_padding"
            android:paddingBottom="@dimen/standard_padding"
            android:visibility="gone"
            tools:visibility="visible">

            <TextView
                android:id="@+id/drawer_quota_link"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:drawablePadding="@dimen/alternate_half_padding" />

            <com.google.android.material.progressindicator.LinearProgressIndicator
                android:id="@+id/drawer_quota_ProgressBar"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:indeterminate="false"
                android:indeterminateOnly="false"
                android:text="@string/drawer_quota"
                app:trackCornerRadius="5dp"
                app:trackThickness="5dp"
                tools:progress="50" />

            <com.google.android.material.textview.MaterialTextView
                android:id="@+id/drawer_quota_percentage"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:drawablePadding="@dimen/alternate_half_padding"
                android:fontFamily="sans-serif-medium"
                android:text="@string/drawer_quota"
                android:textColor="@color/drawer_text_color" />

        </LinearLayout>

    </com.google.android.material.navigation.NavigationView>

</merge>
