Simple Notepad Application for Android OS
Revision | 6d8999ff25fd289b27292a88d9048e3db5f97ee7 (tree) |
---|---|
Time | 2018-11-04 02:01:02 |
Author | Masahiko, SAWAI <say@user...> |
Commiter | Masahiko, SAWAI |
Add app shortcut
@@ -51,6 +51,7 @@ | ||
51 | 51 | </intent-filter> |
52 | 52 | |
53 | 53 | <meta-data android:name="android.app.searchable" android:resource="@xml/note_searchable"/> |
54 | + <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" /> | |
54 | 55 | </activity> |
55 | 56 | |
56 | 57 | <activity |
@@ -86,4 +86,7 @@ | ||
86 | 86 | <string name="shortcut_name">ショートカット名</string> |
87 | 87 | <string name="no_search_query_message">検索クエリーを入力してください。</string> |
88 | 88 | <string name="no_shortcut_name_message">ショートカット名を入力してください。</string> |
89 | + | |
90 | + <!-- app shortcut --> | |
91 | + <string name="new_note_shortcut_disabled">新規ノート作成ショートカットを無効にしました。</string> | |
89 | 92 | </resources> |
@@ -88,4 +88,7 @@ | ||
88 | 88 | <string name="shortcut_name">Shortcut Name</string> |
89 | 89 | <string name="no_search_query_message">Please input a search query.</string> |
90 | 90 | <string name="no_shortcut_name_message">Please input a shortcut name.</string> |
91 | + | |
92 | + <!-- app shortcut --> | |
93 | + <string name="new_note_shortcut_disabled">Disable New Note Shortcut</string> | |
91 | 94 | </resources> |
@@ -0,0 +1,19 @@ | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> | |
3 | + | |
4 | + <!-- Add New Note Shortcut --> | |
5 | + <shortcut | |
6 | + android:shortcutId="addNewNoteShortcut" | |
7 | + android:enabled="true" | |
8 | + android:icon="@drawable/ic_shortcut_add" | |
9 | + android:shortcutShortLabel="@string/new_note" | |
10 | + android:shortcutLongLabel="@string/add_new_note_title" | |
11 | + android:shortcutDisabledMessage="@string/new_note_shortcut_disabled"> | |
12 | + | |
13 | + <intent | |
14 | + android:action="android.intent.action.INSERT" | |
15 | + android:targetPackage="org.routine_work.notepad" | |
16 | + android:targetClass="org.routine_work.notepad.AddNewNoteActivity" /> | |
17 | + </shortcut> | |
18 | + | |
19 | +</shortcuts> |