summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-21 10:07:27 +0300
committerAndrew Dolgov <[email protected]>2018-12-21 10:07:27 +0300
commitd5346abf9213af274066db0f0cc49cf095020595 (patch)
treee9d610d5b596ef66a748e7166e0a3f49a5507b42 /org.fox.ttrss/src/main/res
parenta759caa2e58d57be07d9e7411a4dd8d16d459549 (diff)
add app launcher shortcuts, with associated icons
Diffstat (limited to 'org.fox.ttrss/src/main/res')
-rw-r--r--org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_coffee.pngbin0 -> 2071 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_folder_open.pngbin0 -> 1908 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_star.pngbin0 -> 2497 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_coffee.pngbin0 -> 1399 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_folder_open.pngbin0 -> 1154 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_star.pngbin0 -> 1456 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_coffee.pngbin0 -> 2741 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_folder_open.pngbin0 -> 2400 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_star.pngbin0 -> 3037 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_coffee.pngbin0 -> 4007 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_folder_open.pngbin0 -> 3902 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_star.pngbin0 -> 4945 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_coffee.pngbin0 -> 5554 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_folder_open.pngbin0 -> 5211 bytes
-rw-r--r--org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_star.pngbin0 -> 6346 bytes
-rwxr-xr-xorg.fox.ttrss/src/main/res/values/strings.xml1
-rw-r--r--org.fox.ttrss/src/main/res/xml/shortcuts.xml43
17 files changed, 44 insertions, 0 deletions
diff --git a/org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_coffee.png b/org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_coffee.png
new file mode 100644
index 00000000..ec0bf525
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_coffee.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_folder_open.png b/org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_folder_open.png
new file mode 100644
index 00000000..8887429a
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_folder_open.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_star.png b/org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_star.png
new file mode 100644
index 00000000..0df481c4
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-hdpi/ic_shortcut_star.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_coffee.png b/org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_coffee.png
new file mode 100644
index 00000000..04e6677f
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_coffee.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_folder_open.png b/org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_folder_open.png
new file mode 100644
index 00000000..7430222a
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_folder_open.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_star.png b/org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_star.png
new file mode 100644
index 00000000..6e36f8a6
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-mdpi/ic_shortcut_star.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_coffee.png b/org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_coffee.png
new file mode 100644
index 00000000..35254abf
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_coffee.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_folder_open.png b/org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_folder_open.png
new file mode 100644
index 00000000..14c40b66
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_folder_open.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_star.png b/org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_star.png
new file mode 100644
index 00000000..345b0e22
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-xhdpi/ic_shortcut_star.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_coffee.png b/org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_coffee.png
new file mode 100644
index 00000000..49be2fd1
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_coffee.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_folder_open.png b/org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_folder_open.png
new file mode 100644
index 00000000..246a8e6d
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_folder_open.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_star.png b/org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_star.png
new file mode 100644
index 00000000..78044bb0
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-xxhdpi/ic_shortcut_star.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_coffee.png b/org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_coffee.png
new file mode 100644
index 00000000..78aac1a8
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_coffee.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_folder_open.png b/org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_folder_open.png
new file mode 100644
index 00000000..df88943d
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_folder_open.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_star.png b/org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_star.png
new file mode 100644
index 00000000..1f4cbd03
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/drawable-xxxhdpi/ic_shortcut_star.png
Binary files differ
diff --git a/org.fox.ttrss/src/main/res/values/strings.xml b/org.fox.ttrss/src/main/res/values/strings.xml
index c7544266..86a0a97e 100755
--- a/org.fox.ttrss/src/main/res/values/strings.xml
+++ b/org.fox.ttrss/src/main/res/values/strings.xml
@@ -205,6 +205,7 @@
<string name="headlines_sort_title">Title</string>
<string name="headlines_sort_articles_title">Sort articles</string>
<string name="fresh_articles">Fresh articles</string>
+ <string name="feed_starred_articles">Starred articles</string>
<string name="feed_all_articles">All articles</string>
<string name="prefs_enable_fab">Enable FAB</string>
<string name="prefs_enable_fab_long">Show floating action button when reading</string>
diff --git a/org.fox.ttrss/src/main/res/xml/shortcuts.xml b/org.fox.ttrss/src/main/res/xml/shortcuts.xml
new file mode 100644
index 00000000..3328b165
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/xml/shortcuts.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
+ <shortcut
+ android:shortcutId="SHORTCUT:OPEN_MARKED"
+ android:enabled="true"
+ android:icon="@drawable/ic_shortcut_star"
+ android:shortcutShortLabel="@string/feed_starred_articles">
+ <intent
+ android:action="android.intent.action.VIEW"
+ android:targetPackage="org.fox.ttrss"
+ android:targetClass="org.fox.ttrss.MasterActivity">
+ <extra android:name="shortcut_mode" android:value="true"/>
+ <extra android:name="feed_id" android:value="-1"/>
+ </intent>
+ </shortcut>
+ <shortcut
+ android:shortcutId="SHORTCUT:OPEN_FRESH"
+ android:enabled="true"
+ android:icon="@drawable/ic_shortcut_coffee"
+ android:shortcutShortLabel="@string/fresh_articles">
+ <intent
+ android:action="android.intent.action.VIEW"
+ android:targetPackage="org.fox.ttrss"
+ android:targetClass="org.fox.ttrss.MasterActivity">
+ <extra android:name="shortcut_mode" android:value="true"/>
+ <extra android:name="feed_id" android:value="-3"/>
+ </intent>
+ </shortcut>
+ <shortcut
+ android:shortcutId="SHORTCUT:OPEN_ALL_ARTICLES"
+ android:enabled="true"
+ android:icon="@drawable/ic_shortcut_folder_open"
+ android:shortcutShortLabel="@string/feed_all_articles">
+ <intent
+ android:action="android.intent.action.VIEW"
+ android:targetPackage="org.fox.ttrss"
+ android:targetClass="org.fox.ttrss.MasterActivity">
+ <extra android:name="shortcut_mode" android:value="true"/>
+ <extra android:name="feed_id" android:value="-4"/>
+ </intent>
+ </shortcut>
+
+</shortcuts> \ No newline at end of file