feat: 新 UI Shortcuts

This commit is contained in:
HuanCheng65 2023-03-11 00:01:53 +08:00
parent 89c2ced6f5
commit 50f444249d
No known key found for this signature in database
GPG Key ID: E9031EF91A805148
2 changed files with 38 additions and 3 deletions

View File

@ -166,7 +166,7 @@
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcut" />
android:resource="@xml/shortcut_new" />
</activity>
<activity-alias
@ -184,7 +184,7 @@
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcut" />
android:resource="@xml/shortcut_new" />
</activity-alias>
<activity-alias
android:name=".MainActivityIconOld"
@ -201,7 +201,7 @@
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcut" />
android:resource="@xml/shortcut_new" />
</activity-alias>
<activity

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="UnusedAttribute">
<shortcut
android:icon="@mipmap/ic_shortcut_oksign"
android:shortcutId="oksign"
android:shortcutLongLabel="@string/shortcut_oksign"
android:shortcutShortLabel="@string/shortcut_oksign">
<intent
android:action="com.huanchengfly.tieba.post.action.OKSIGN"
android:targetClass="com.huanchengfly.tieba.post.activities.OKSignActivity"
android:targetPackage="com.huanchengfly.tieba.post" />
</shortcut>
<shortcut
android:icon="@mipmap/ic_shortcut_my_collect"
android:shortcutId="my_collect"
android:shortcutLongLabel="@string/shortcut_my_collect"
android:shortcutShortLabel="@string/shortcut_my_collect">
<intent
android:action="android.intent.action.VIEW"
android:data="tblite://favorite"
android:targetPackage="com.huanchengfly.tieba.post" />
</shortcut>
<shortcut
android:icon="@mipmap/ic_shortcut_search"
android:shortcutId="search"
android:shortcutLongLabel="@string/shortcut_search"
android:shortcutShortLabel="@string/shortcut_search">
<intent
android:action="android.intent.action.VIEW"
android:targetClass="com.huanchengfly.tieba.post.activities.NewSearchActivity"
android:targetPackage="com.huanchengfly.tieba.post" />
</shortcut>
</shortcuts>