summaryrefslogtreecommitdiff
path: root/core/src/main/res
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2022-08-27 11:19:34 +0200
committerGitHub <noreply@github.com>2022-08-27 11:19:34 +0200
commit77104c9038abf579bc5652fc0ec5f941c0f9799f (patch)
tree3e45eaf8f65b222b475e2ec340d0af175c11c23c /core/src/main/res
parentec92722c043cd30bfe9c21171b2a3f62c44884d7 (diff)
downloadAntennaPod-77104c9038abf579bc5652fc0ec5f941c0f9799f.zip
Home Screen (#5864)
Co-authored-by: ueen <ueli.sarnighausen@online.de>
Diffstat (limited to 'core/src/main/res')
-rw-r--r--core/src/main/res/drawable/bg_circle.xml6
-rw-r--r--core/src/main/res/drawable/bg_pill.xml7
-rw-r--r--core/src/main/res/drawable/ic_curved_arrow.xml9
-rw-r--r--core/src/main/res/drawable/ic_home.xml9
-rw-r--r--core/src/main/res/drawable/ic_shuffle.xml9
-rw-r--r--core/src/main/res/values/arrays.xml19
6 files changed, 59 insertions, 0 deletions
diff --git a/core/src/main/res/drawable/bg_circle.xml b/core/src/main/res/drawable/bg_circle.xml
new file mode 100644
index 000000000..0957db5e4
--- /dev/null
+++ b/core/src/main/res/drawable/bg_circle.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+ <solid android:color="?attr/colorPrimary" />
+ <corners android:radius="30dp" />
+ <size android:width="60dp" android:height="60dp"/>
+</shape>
diff --git a/core/src/main/res/drawable/bg_pill.xml b/core/src/main/res/drawable/bg_pill.xml
new file mode 100644
index 000000000..f5865ccff
--- /dev/null
+++ b/core/src/main/res/drawable/bg_pill.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+ <stroke
+ android:width="1dp"
+ android:color="?attr/colorPrimary" />
+ <corners android:radius="20dp" />
+</shape> \ No newline at end of file
diff --git a/core/src/main/res/drawable/ic_curved_arrow.xml b/core/src/main/res/drawable/ic_curved_arrow.xml
new file mode 100644
index 000000000..e0baab50a
--- /dev/null
+++ b/core/src/main/res/drawable/ic_curved_arrow.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="24dp"
+ android:width="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24"
+ android:autoMirrored="true">
+ <path android:strokeColor="?attr/action_icon_color" android:strokeAlpha="0.4" android:strokeWidth="0.4" android:pathData="M 24.563 19.667 C 20.794 22.382 13.26 21.82 11.04 17.74 C 8.82 13.66 16.36 4.77 20.17 8.59 C 23.98 12.4 16.78 16.34 11.93 15.72 C 7.08 15.1 4.792 10.756 2.54 4.87"/>
+ <path android:fillColor="?attr/action_icon_color" android:fillAlpha="0.4" android:pathData="M 0.608 5.581 L 4.568 4.368 L 1.183 0.599" />
+</vector>
diff --git a/core/src/main/res/drawable/ic_home.xml b/core/src/main/res/drawable/ic_home.xml
new file mode 100644
index 000000000..dc5a8dd52
--- /dev/null
+++ b/core/src/main/res/drawable/ic_home.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/action_icon_color"
+ android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z"/>
+</vector>
diff --git a/core/src/main/res/drawable/ic_shuffle.xml b/core/src/main/res/drawable/ic_shuffle.xml
new file mode 100644
index 000000000..085397444
--- /dev/null
+++ b/core/src/main/res/drawable/ic_shuffle.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/action_icon_color"
+ android:pathData="M10.59,9.17L5.41,4 4,5.41l5.17,5.17 1.42,-1.41zM14.5,4l2.04,2.04L4,18.59 5.41,20 17.96,7.46 20,9.5L20,4h-5.5zM14.83,13.41l-1.41,1.41 3.13,3.13L14.5,20L20,20v-5.5l-2.04,2.04 -3.13,-3.13z"/>
+</vector>
diff --git a/core/src/main/res/values/arrays.xml b/core/src/main/res/values/arrays.xml
index e5b4a5e3b..4a32eb760 100644
--- a/core/src/main/res/values/arrays.xml
+++ b/core/src/main/res/values/arrays.xml
@@ -150,6 +150,7 @@
</string-array>
<string-array name="nav_drawer_titles">
+ <item>@string/home_label</item>
<item>@string/queue_label</item>
<item>@string/inbox_label</item>
<item>@string/episodes_label</item>
@@ -188,6 +189,22 @@
<item>3</item>
</string-array>
+ <string-array name="home_section_titles">
+ <item>@string/home_continue_title</item>
+ <item>@string/home_new_title</item>
+ <item>@string/home_surprise_title</item>
+ <item>@string/home_classics_title</item>
+ <item>@string/home_downloads_title</item>
+ </string-array>
+
+ <string-array name="home_section_tags">
+ <item>QueueSection</item>
+ <item>InboxSection</item>
+ <item>EpisodesSurpriseSection</item>
+ <item>SubscriptionsSection</item>
+ <item>DownloadsSection</item>
+ </string-array>
+
<string-array name="media_player_options">
<item>@string/media_player_exoplayer_recommended</item>
<item>@string/media_player_builtin</item>
@@ -265,6 +282,7 @@
</string-array>
<string-array name="back_button_go_to_pages">
+ <item>@string/home_label</item>
<item>@string/queue_label</item>
<item>@string/inbox_label</item>
<item>@string/episodes_label</item>
@@ -272,6 +290,7 @@
</string-array>
<string-array name="back_button_go_to_pages_tags">
+ <item>HomeFragment</item>
<item>QueueFragment</item>
<item>InboxFragment</item>
<item>EpisodesFragment</item>