feat: 新 UI Shortcuts
This commit is contained in:
parent
89c2ced6f5
commit
50f444249d
|
|
@ -166,7 +166,7 @@
|
||||||
|
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="android.app.shortcuts"
|
android:name="android.app.shortcuts"
|
||||||
android:resource="@xml/shortcut" />
|
android:resource="@xml/shortcut_new" />
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity-alias
|
<activity-alias
|
||||||
|
|
@ -184,7 +184,7 @@
|
||||||
|
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="android.app.shortcuts"
|
android:name="android.app.shortcuts"
|
||||||
android:resource="@xml/shortcut" />
|
android:resource="@xml/shortcut_new" />
|
||||||
</activity-alias>
|
</activity-alias>
|
||||||
<activity-alias
|
<activity-alias
|
||||||
android:name=".MainActivityIconOld"
|
android:name=".MainActivityIconOld"
|
||||||
|
|
@ -201,7 +201,7 @@
|
||||||
|
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="android.app.shortcuts"
|
android:name="android.app.shortcuts"
|
||||||
android:resource="@xml/shortcut" />
|
android:resource="@xml/shortcut_new" />
|
||||||
</activity-alias>
|
</activity-alias>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
Loading…
Reference in New Issue