|
@@ -0,0 +1,118 @@
|
|
|
+<!--
|
|
|
+ ownCloud Android client application
|
|
|
+
|
|
|
+ Copyright (C) 2012 Bartek Przybylski
|
|
|
+ Copyright (C) 2015 ownCloud Inc.
|
|
|
+
|
|
|
+ This program is free software: you can redistribute it and/or modify
|
|
|
+ it under the terms of the GNU General Public License version 2,
|
|
|
+ as published by the Free Software Foundation.
|
|
|
+
|
|
|
+ This program is distributed in the hope that it will be useful,
|
|
|
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+ GNU General Public License for more details.
|
|
|
+
|
|
|
+ You should have received a copy of the GNU General Public License
|
|
|
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
+ -->
|
|
|
+<LinearLayout 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"
|
|
|
+ android:id="@+id/upload_files_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <include layout="@layout/toolbar_standard" />
|
|
|
+
|
|
|
+ <androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
|
+ android:id="@+id/list_fragment_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1">
|
|
|
+
|
|
|
+ <com.google.android.material.appbar.AppBarLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/bg_default"
|
|
|
+ app:elevation="0dp">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_scrollFlags="scroll|enterAlways|snap">
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/sort_button"
|
|
|
+ style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:contentDescription="@string/actionbar_sort"
|
|
|
+ android:minWidth="0dp"
|
|
|
+ android:text="@string/menu_item_sort_by_date_newest_first"
|
|
|
+ android:textAlignment="textStart"
|
|
|
+ android:textAllCaps="false"
|
|
|
+ android:textColor="@color/fontAppbar"
|
|
|
+ android:textSize="14sp"
|
|
|
+ app:icon="@drawable/ic_keyboard_arrow_down"
|
|
|
+ app:iconGravity="textEnd"
|
|
|
+ app:iconSize="16dp"
|
|
|
+ app:iconTint="@color/fontAppbar"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ </com.google.android.material.appbar.AppBarLayout>
|
|
|
+
|
|
|
+ <ListView
|
|
|
+ android:id="@android:id/list"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:divider="@color/transparent"
|
|
|
+ android:dividerHeight="0dip"
|
|
|
+ android:nestedScrollingEnabled="true"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
|
+ tools:ignore="UnusedAttribute" />
|
|
|
+
|
|
|
+ <include layout="@layout/empty_list" />
|
|
|
+
|
|
|
+ </androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/list_divider_background" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="@dimen/standard_padding">
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/uploader_cancel"
|
|
|
+ style="@style/OutlinedButton"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="@dimen/standard_half_margin"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/common_cancel"
|
|
|
+ app:cornerRadius="@dimen/button_corner_radius" />
|
|
|
+
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/uploader_choose_folder"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/standard_half_margin"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/uploader_btn_upload_text"
|
|
|
+ android:theme="@style/Button.Primary"
|
|
|
+ app:cornerRadius="@dimen/button_corner_radius" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|