aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-04-23 14:46:56 -0700
committerScott Jackson <daneren2005@gmail.com>2016-04-23 14:46:56 -0700
commitf03fe63ecd8603575b5e0ab8f9f8b6f6b3821f5b (patch)
tree438810772fbc0364e3709ae1dfc5c12a9f2d0bb8 /app/src/main/res
parentb531ec43824232005743c4a0e4da4d8a29cd669e (diff)
downloaddsub-f03fe63ecd8603575b5e0ab8f9f8b6f6b3821f5b.tar.gz
dsub-f03fe63ecd8603575b5e0ab8f9f8b6f6b3821f5b.tar.bz2
dsub-f03fe63ecd8603575b5e0ab8f9f8b6f6b3821f5b.zip
#170 Add Variable Playback Speed
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/drawable-hdpi/ic_action_playback_speed_dark.pngbin0 -> 1008 bytes
-rw-r--r--app/src/main/res/drawable-hdpi/ic_action_playback_speed_light.pngbin0 -> 1229 bytes
-rw-r--r--app/src/main/res/drawable-mdpi/ic_action_playback_speed_dark.pngbin0 -> 625 bytes
-rw-r--r--app/src/main/res/drawable-mdpi/ic_action_playback_speed_light.pngbin0 -> 739 bytes
-rw-r--r--app/src/main/res/drawable-xhdpi/ic_action_playback_speed_dark.pngbin0 -> 1429 bytes
-rw-r--r--app/src/main/res/drawable-xhdpi/ic_action_playback_speed_light.pngbin0 -> 1689 bytes
-rw-r--r--app/src/main/res/drawable-xxhdpi/ic_action_playback_speed_dark.pngbin0 -> 2377 bytes
-rw-r--r--app/src/main/res/drawable-xxhdpi/ic_action_playback_speed_light.pngbin0 -> 2793 bytes
-rw-r--r--app/src/main/res/drawable-xxxhdpi/ic_action_playback_speed_dark.pngbin0 -> 3618 bytes
-rw-r--r--app/src/main/res/drawable-xxxhdpi/ic_action_playback_speed_light.pngbin0 -> 4334 bytes
-rw-r--r--app/src/main/res/layout-land/download.xml5
-rw-r--r--app/src/main/res/layout-large-land/download.xml5
-rw-r--r--app/src/main/res/layout-port/download.xml5
-rw-r--r--app/src/main/res/menu/playback_speed_options.xml22
-rw-r--r--app/src/main/res/values/attrs.xml1
-rw-r--r--app/src/main/res/values/strings.xml5
-rw-r--r--app/src/main/res/values/themes.xml2
17 files changed, 45 insertions, 0 deletions
diff --git a/app/src/main/res/drawable-hdpi/ic_action_playback_speed_dark.png b/app/src/main/res/drawable-hdpi/ic_action_playback_speed_dark.png
new file mode 100644
index 00000000..5f4d890a
--- /dev/null
+++ b/app/src/main/res/drawable-hdpi/ic_action_playback_speed_dark.png
Binary files differ
diff --git a/app/src/main/res/drawable-hdpi/ic_action_playback_speed_light.png b/app/src/main/res/drawable-hdpi/ic_action_playback_speed_light.png
new file mode 100644
index 00000000..4b481822
--- /dev/null
+++ b/app/src/main/res/drawable-hdpi/ic_action_playback_speed_light.png
Binary files differ
diff --git a/app/src/main/res/drawable-mdpi/ic_action_playback_speed_dark.png b/app/src/main/res/drawable-mdpi/ic_action_playback_speed_dark.png
new file mode 100644
index 00000000..b05ecefd
--- /dev/null
+++ b/app/src/main/res/drawable-mdpi/ic_action_playback_speed_dark.png
Binary files differ
diff --git a/app/src/main/res/drawable-mdpi/ic_action_playback_speed_light.png b/app/src/main/res/drawable-mdpi/ic_action_playback_speed_light.png
new file mode 100644
index 00000000..392d2b4d
--- /dev/null
+++ b/app/src/main/res/drawable-mdpi/ic_action_playback_speed_light.png
Binary files differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_action_playback_speed_dark.png b/app/src/main/res/drawable-xhdpi/ic_action_playback_speed_dark.png
new file mode 100644
index 00000000..2aeadf7e
--- /dev/null
+++ b/app/src/main/res/drawable-xhdpi/ic_action_playback_speed_dark.png
Binary files differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_action_playback_speed_light.png b/app/src/main/res/drawable-xhdpi/ic_action_playback_speed_light.png
new file mode 100644
index 00000000..ce3f561c
--- /dev/null
+++ b/app/src/main/res/drawable-xhdpi/ic_action_playback_speed_light.png
Binary files differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_playback_speed_dark.png b/app/src/main/res/drawable-xxhdpi/ic_action_playback_speed_dark.png
new file mode 100644
index 00000000..a9acc5e6
--- /dev/null
+++ b/app/src/main/res/drawable-xxhdpi/ic_action_playback_speed_dark.png
Binary files differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_playback_speed_light.png b/app/src/main/res/drawable-xxhdpi/ic_action_playback_speed_light.png
new file mode 100644
index 00000000..dcd6fea8
--- /dev/null
+++ b/app/src/main/res/drawable-xxhdpi/ic_action_playback_speed_light.png
Binary files differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_playback_speed_dark.png b/app/src/main/res/drawable-xxxhdpi/ic_action_playback_speed_dark.png
new file mode 100644
index 00000000..c1e92342
--- /dev/null
+++ b/app/src/main/res/drawable-xxxhdpi/ic_action_playback_speed_dark.png
Binary files differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_playback_speed_light.png b/app/src/main/res/drawable-xxxhdpi/ic_action_playback_speed_light.png
new file mode 100644
index 00000000..3dc5f32a
--- /dev/null
+++ b/app/src/main/res/drawable-xxxhdpi/ic_action_playback_speed_light.png
Binary files differ
diff --git a/app/src/main/res/layout-land/download.xml b/app/src/main/res/layout-land/download.xml
index 9451a587..1bae4ae2 100644
--- a/app/src/main/res/layout-land/download.xml
+++ b/app/src/main/res/layout-land/download.xml
@@ -65,6 +65,11 @@
android:src="@android:drawable/star_big_off"/>
<ImageButton
+ android:id="@+id/download_playback_speed"
+ style="@style/DownloadActionImageButton"
+ android:src="?attr/playback_speed"/>
+
+ <ImageButton
android:id="@+id/download_bookmark"
style="@style/DownloadActionImageButton"
android:src="?attr/bookmark"/>
diff --git a/app/src/main/res/layout-large-land/download.xml b/app/src/main/res/layout-large-land/download.xml
index 0b48384f..339a02a9 100644
--- a/app/src/main/res/layout-large-land/download.xml
+++ b/app/src/main/res/layout-large-land/download.xml
@@ -62,6 +62,11 @@
android:src="@android:drawable/star_big_off"/>
<ImageButton
+ android:id="@+id/download_playback_speed"
+ style="@style/DownloadActionImageButton"
+ android:src="?attr/playback_speed"/>
+
+ <ImageButton
android:id="@+id/download_bookmark"
style="@style/DownloadActionImageButton"
android:src="?attr/bookmark"/>
diff --git a/app/src/main/res/layout-port/download.xml b/app/src/main/res/layout-port/download.xml
index f7c4f6e8..81f4e8dc 100644
--- a/app/src/main/res/layout-port/download.xml
+++ b/app/src/main/res/layout-port/download.xml
@@ -60,6 +60,11 @@
android:src="@drawable/ic_toggle_star_outline_dark"/>
<ImageButton
+ android:id="@+id/download_playback_speed"
+ style="@style/DownloadActionImageButton"
+ android:src="@drawable/ic_action_playback_speed_dark"/>
+
+ <ImageButton
android:id="@+id/download_bookmark"
style="@style/DownloadActionImageButton"
android:src="@drawable/ic_menu_bookmark_dark"/>
diff --git a/app/src/main/res/menu/playback_speed_options.xml b/app/src/main/res/menu/playback_speed_options.xml
new file mode 100644
index 00000000..e64ecd04
--- /dev/null
+++ b/app/src/main/res/menu/playback_speed_options.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:id="@+id/playback_speed_half"
+ android:title="@string/download.playback_speed_half"/>
+
+ <item
+ android:id="@+id/playback_speed_normal"
+ android:title="@string/download.playback_speed_normal"/>
+
+ <item
+ android:id="@+id/playback_speed_one_half"
+ android:title="@string/download.playback_speed_one_half"/>
+
+ <item
+ android:id="@+id/playback_speed_double"
+ android:title="@string/download.playback_speed_double"/>
+
+ <item
+ android:id="@+id/playback_speed_tripple"
+ android:title="@string/download.playback_speed_tripple"/>
+</menu> \ No newline at end of file
diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml
index 2d3794d6..7cd447f0 100644
--- a/app/src/main/res/values/attrs.xml
+++ b/app/src/main/res/values/attrs.xml
@@ -42,6 +42,7 @@
<attr name="radio" format="reference"/>
<attr name="star_outline" format="reference"/>
<attr name="download" format="reference"/>
+ <attr name="playback_speed" format="reference"/>
<attr name="drawerItemsIcons" format="reference"/>
<attr name="drawerHome" format="reference"/>
<attr name="drawerLibrary" format="reference"/>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 4b3dc1c9..896f3dac 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -220,6 +220,11 @@
<string name="download.thumbs_up">Thumbs Up</string>
<string name="download.thumbs_down">Thumbs Down</string>
<string name="download.batch_mode">Batch Mode</string>
+ <string name="download.playback_speed_half">0.5x</string>
+ <string name="download.playback_speed_normal">1.0x</string>
+ <string name="download.playback_speed_one_half">1.5x</string>
+ <string name="download.playback_speed_double">2.0x</string>
+ <string name="download.playback_speed_tripple">3.0x</string>
<string name="sync.new_podcasts">New podcasts available</string>
<string name="sync.new_playlists">New songs in playlists</string>
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index e86084b0..9e95fe9d 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -43,6 +43,7 @@
<item name="radio">@drawable/ic_menu_radio_dark</item>
<item name="star_outline">@drawable/ic_toggle_star_outline_light</item>
<item name="download">@drawable/ic_menu_download_dark</item>
+ <item name="playback_speed">@drawable/ic_action_playback_speed_light</item>
<item name="drawerHome">@drawable/main_offline_light</item>
<item name="drawerLibrary">@drawable/ic_menu_library_light</item>
<item name="drawerPlaylists">@drawable/ic_menu_playlist_light</item>
@@ -113,6 +114,7 @@
<item name="radio">@drawable/ic_menu_radio_dark</item>
<item name="star_outline">@drawable/ic_toggle_star_outline_dark</item>
<item name="download">@drawable/ic_menu_download_dark</item>
+ <item name="playback_speed">@drawable/ic_action_playback_speed_dark</item>
<item name="drawerHome">@drawable/main_offline_dark</item>
<item name="drawerLibrary">@drawable/ic_menu_library_dark</item>
<item name="drawerPlaylists">@drawable/ic_menu_playlist_dark</item>