feat: 新增 Shortcut 自适应图标及搜索
|
|
@ -0,0 +1,16 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportWidth="108"
|
||||||
|
android:viewportHeight="108"
|
||||||
|
android:tint="#FFFFFF">
|
||||||
|
<group
|
||||||
|
android:scaleX="2.0770106"
|
||||||
|
android:scaleY="2.0770106"
|
||||||
|
android:translateX="30.229769"
|
||||||
|
android:translateY="29.075874">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M13,3c-4.97,0 -9,4.03 -9,9L1,12l3.89,3.89 0.07,0.14L9,12L6,12c0,-3.87 3.13,-7 7,-7s7,3.13 7,7 -3.13,7 -7,7c-1.93,0 -3.68,-0.79 -4.94,-2.06l-1.42,1.42C8.27,19.99 10.51,21 13,21c4.97,0 9,-4.03 9,-9s-4.03,-9 -9,-9zM12,8v5l4.28,2.54 0.72,-1.21 -3.5,-2.08L13.5,8L12,8z" />
|
||||||
|
</group>
|
||||||
|
</vector>
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportWidth="108"
|
||||||
|
android:viewportHeight="108"
|
||||||
|
android:tint="#FFFFFF">
|
||||||
|
<group
|
||||||
|
android:scaleX="1.566"
|
||||||
|
android:scaleY="1.566"
|
||||||
|
android:translateX="35.208"
|
||||||
|
android:translateY="35.904">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M22,9.24l-7.19,-0.62L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21 12,17.27 18.18,21l-1.63,-7.03L22,9.24zM12,15.4l-3.76,2.27 1,-4.28 -3.32,-2.88 4.38,-0.38L12,6.1l1.71,4.04 4.38,0.38 -3.32,2.88 1,4.28L12,15.4z" />
|
||||||
|
</group>
|
||||||
|
</vector>
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportWidth="108"
|
||||||
|
android:viewportHeight="108"
|
||||||
|
android:tint="#FFFFFF">
|
||||||
|
<group
|
||||||
|
android:scaleX="1.6015909"
|
||||||
|
android:scaleY="1.6015909"
|
||||||
|
android:translateX="34.78091"
|
||||||
|
android:translateY="34.425">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.9,2 2,2zM18,16v-5c0,-3.07 -1.63,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.64,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2zM16,17L8,17v-6c0,-2.48 1.51,-4.5 4,-4.5s4,2.02 4,4.5v6z" />
|
||||||
|
</group>
|
||||||
|
</vector>
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportWidth="108"
|
||||||
|
android:viewportHeight="108"
|
||||||
|
android:tint="#FFFFFF">
|
||||||
|
<group
|
||||||
|
android:scaleX="1.3422858"
|
||||||
|
android:scaleY="1.3422858"
|
||||||
|
android:translateX="37.743427"
|
||||||
|
android:translateY="37.445145">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M18,7l-1.41,-1.41 -6.34,6.34 1.41,1.41L18,7zM22.24,5.59L11.66,16.17 7.48,12l-1.41,1.41L11.66,19l12,-12 -1.42,-1.41zM0.41,13.41L6,19l1.41,-1.41L1.83,12 0.41,13.41z" />
|
||||||
|
</group>
|
||||||
|
</vector>
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportWidth="108"
|
||||||
|
android:viewportHeight="108"
|
||||||
|
android:tint="#FFFFFF">
|
||||||
|
<group
|
||||||
|
android:scaleX="1.7840506"
|
||||||
|
android:scaleY="1.7840506"
|
||||||
|
android:translateX="33.186077"
|
||||||
|
android:translateY="33.186077">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z" />
|
||||||
|
</group>
|
||||||
|
</vector>
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background" />
|
||||||
|
<foreground android:drawable="@drawable/ic_shortcut_my_collect_foreground" />
|
||||||
|
</adaptive-icon>
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background" />
|
||||||
|
<foreground android:drawable="@drawable/ic_shortcut_my_message_foreground" />
|
||||||
|
</adaptive-icon>
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background" />
|
||||||
|
<foreground android:drawable="@drawable/ic_shortcut_oksign_foreground" />
|
||||||
|
</adaptive-icon>
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background" />
|
||||||
|
<foreground android:drawable="@drawable/ic_shortcut_search_foreground" />
|
||||||
|
</adaptive-icon>
|
||||||
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
|
@ -13,6 +13,7 @@
|
||||||
<string name="shortcut_oksign">一键签到</string>
|
<string name="shortcut_oksign">一键签到</string>
|
||||||
<string name="shortcut_my_collect">我的收藏</string>
|
<string name="shortcut_my_collect">我的收藏</string>
|
||||||
<string name="shortcut_my_message">我的消息</string>
|
<string name="shortcut_my_message">我的消息</string>
|
||||||
|
<string name="shortcut_search">搜索</string>
|
||||||
<string name="forum_list_title">关注</string>
|
<string name="forum_list_title">关注</string>
|
||||||
<string name="title_login">登录</string>
|
<string name="title_login">登录</string>
|
||||||
<string name="title_refresh">刷新</string>
|
<string name="title_refresh">刷新</string>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
tools:ignore="UnusedAttribute">
|
tools:ignore="UnusedAttribute">
|
||||||
<shortcut
|
<shortcut
|
||||||
android:icon="@drawable/ic_shortcut_oksign"
|
android:icon="@mipmap/ic_shortcut_oksign"
|
||||||
android:shortcutId="oksign"
|
android:shortcutId="oksign"
|
||||||
android:shortcutLongLabel="@string/shortcut_oksign"
|
android:shortcutLongLabel="@string/shortcut_oksign"
|
||||||
android:shortcutShortLabel="@string/shortcut_oksign">
|
android:shortcutShortLabel="@string/shortcut_oksign">
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
android:targetPackage="com.huanchengfly.tieba.post" />
|
android:targetPackage="com.huanchengfly.tieba.post" />
|
||||||
</shortcut>
|
</shortcut>
|
||||||
<shortcut
|
<shortcut
|
||||||
android:icon="@drawable/ic_shortcut_collect"
|
android:icon="@mipmap/ic_shortcut_my_collect"
|
||||||
android:shortcutId="my_collect"
|
android:shortcutId="my_collect"
|
||||||
android:shortcutLongLabel="@string/shortcut_my_collect"
|
android:shortcutLongLabel="@string/shortcut_my_collect"
|
||||||
android:shortcutShortLabel="@string/shortcut_my_collect">
|
android:shortcutShortLabel="@string/shortcut_my_collect">
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
android:targetPackage="com.huanchengfly.tieba.post" />
|
android:targetPackage="com.huanchengfly.tieba.post" />
|
||||||
</shortcut>
|
</shortcut>
|
||||||
<shortcut
|
<shortcut
|
||||||
android:icon="@drawable/ic_shortcut_message"
|
android:icon="@mipmap/ic_shortcut_my_message"
|
||||||
android:shortcutId="my_message"
|
android:shortcutId="my_message"
|
||||||
android:shortcutLongLabel="@string/shortcut_my_message"
|
android:shortcutLongLabel="@string/shortcut_my_message"
|
||||||
android:shortcutShortLabel="@string/shortcut_my_message">
|
android:shortcutShortLabel="@string/shortcut_my_message">
|
||||||
|
|
@ -32,4 +32,14 @@
|
||||||
android:targetClass="com.huanchengfly.tieba.post.activities.MessageActivity"
|
android:targetClass="com.huanchengfly.tieba.post.activities.MessageActivity"
|
||||||
android:targetPackage="com.huanchengfly.tieba.post" />
|
android:targetPackage="com.huanchengfly.tieba.post" />
|
||||||
</shortcut>
|
</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>
|
</shortcuts>
|
||||||