添加应用图标切换初稿

This commit is contained in:
ZhanGSKen
2025-11-10 11:43:26 +08:00
parent 55d72c3f82
commit 17d2422690
8 changed files with 373 additions and 52 deletions

View File

@@ -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>

View 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>