summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/download_log_fragment.xml33
-rw-r--r--app/src/main/res/menu/download_log.xml13
-rw-r--r--app/src/main/res/menu/downloads.xml17
-rw-r--r--app/src/main/res/menu/downloads_completed.xml26
4 files changed, 72 insertions, 17 deletions
diff --git a/app/src/main/res/layout/download_log_fragment.xml b/app/src/main/res/layout/download_log_fragment.xml
new file mode 100644
index 000000000..eb80d3f5f
--- /dev/null
+++ b/app/src/main/res/layout/download_log_fragment.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout
+ 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"
+ android:minHeight="300dp">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="?attr/actionBarSize"
+ android:theme="?attr/actionBarTheme"
+ android:layout_alignParentTop="true"
+ app:title="@string/downloads_log_label" />
+
+ <ListView
+ android:id="@+id/list"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingVertical="@dimen/list_vertical_padding"
+ android:layout_below="@id/toolbar" />
+
+ <ProgressBar
+ android:id="@+id/progLoading"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerInParent="true"
+ android:indeterminateOnly="true"
+ android:visibility="gone" />
+
+</RelativeLayout>
diff --git a/app/src/main/res/menu/download_log.xml b/app/src/main/res/menu/download_log.xml
new file mode 100644
index 000000000..e84bb3ed9
--- /dev/null
+++ b/app/src/main/res/menu/download_log.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
+
+ <item
+ android:id="@+id/clear_logs_item"
+ android:menuCategory="container"
+ android:title="@string/clear_history_label"
+ android:icon="@drawable/ic_delete"
+ app:showAsAction="always" />
+
+</menu>
diff --git a/app/src/main/res/menu/downloads.xml b/app/src/main/res/menu/downloads.xml
deleted file mode 100644
index 54469a101..000000000
--- a/app/src/main/res/menu/downloads.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<menu xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <item
- android:id="@+id/clear_logs_item"
- android:menuCategory="container"
- android:title="@string/clear_history_label"
- android:icon="@drawable/ic_delete"
- android:visible="false"
- app:showAsAction="ifRoom" />
- <item
- android:id="@+id/refresh_item"
- android:title="@string/refresh_label"
- android:menuCategory="container"
- app:showAsAction="ifRoom"
- android:icon="@drawable/ic_refresh"/>
-</menu>
diff --git a/app/src/main/res/menu/downloads_completed.xml b/app/src/main/res/menu/downloads_completed.xml
new file mode 100644
index 000000000..61a0e6578
--- /dev/null
+++ b/app/src/main/res/menu/downloads_completed.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:custom="http://schemas.android.com/apk/res-auto">
+
+ <item
+ android:id="@+id/action_search"
+ android:icon="@drawable/ic_search"
+ android:title="@string/search_label"
+ custom:showAsAction="always" />
+
+ <item
+ android:id="@+id/action_download_logs"
+ android:icon="@drawable/ic_history"
+ android:title="@string/downloads_log_label"
+ custom:showAsAction="always" />
+
+ <item
+ android:id="@+id/refresh_item"
+ android:title="@string/refresh_label"
+ android:menuCategory="container"
+ android:icon="@drawable/ic_refresh"
+ app:showAsAction="always" />
+
+</menu>