添加应用图标切换初稿
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
<resources>
|
||||
<string name="app_name">Positions</string>
|
||||
<string name="app_laojun_name">Positions</string>
|
||||
<string name="switch_to_main">切换到悟空笔记</string>
|
||||
<string name="switch_to_laojun">切换到老君道說</string>
|
||||
<string name="switch_disabled">切换功能不可用</string>
|
||||
</resources>
|
||||
|
||||
34
positions/src/main/res/xml/shortcuts.xml
Normal file
34
positions/src/main/res/xml/shortcuts.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 切换启动入口的快捷菜单 -->
|
||||
<shortcut
|
||||
android:shortcutId="switch_launcher_main"
|
||||
android:enabled="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:shortcutShortLabel="@string/switch_to_main"
|
||||
android:shortcutLongLabel="@string/switch_to_main"
|
||||
android:shortcutDisabledMessage="@string/switch_disabled">
|
||||
<intent
|
||||
android:action="cc.winboll.studio.positions.MainActivity"
|
||||
android:targetPackage="cc.winboll.studio.positions"
|
||||
android:targetClass="cc.winboll.studio.positions.MainActivity"
|
||||
android:data="switch_launcher" />
|
||||
|
||||
<categories android:name="android.shortcut.conversation" />
|
||||
</shortcut>
|
||||
<shortcut
|
||||
android:shortcutId="switch_launcher_laojun"
|
||||
android:enabled="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:shortcutShortLabel="@string/switch_to_laojun"
|
||||
android:shortcutLongLabel="@string/switch_to_laojun"
|
||||
android:shortcutDisabledMessage="@string/switch_disabled">
|
||||
<intent
|
||||
android:action="cc.winboll.studio.positions.MainActivityLaojun"
|
||||
android:targetPackage="cc.winboll.studio.positions"
|
||||
android:targetClass="cc.winboll.studio.positions.MainActivity"
|
||||
android:data="switch_launcher" />
|
||||
|
||||
<categories android:name="android.shortcut.conversation" />
|
||||
</shortcut>
|
||||
</shortcuts>
|
||||
Reference in New Issue
Block a user