Google 现在滑动图标
Google Now Swipe Icon
我正在开发一个替代 Google 的应用程序。
向上滑动时我的应用程序已经启动。
我需要更换戒指的图标吗?
市场上的一些应用程序可以做到这一点,并且 Cyanogenmod 中已经有一个功能。所以这是可能的,但是如何呢?
谢谢
编辑:
重新启动几次后,它可以正常显示图标。我可能需要找到一种方法来强制它。也许我可以重新启动 SystemUI,但如何? :)
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:hardwareAccelerated="true">
<activity
android:name=".contact.ContactActivity"
android:label="@string/title_activity_contact"
android:excludeFromRecents="true"
android:theme="@style/Theme.AppCompat.NoActionBar.Transparent">
<meta-data
android:name="com.android.systemui.action_assist_icon"
android:resource="@drawable/ic_assist"/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.ASSIST"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
</application>
试试这个:
<intent-filter>
<action android:name="android.intent.action.ASSIST"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
<meta-data android:name="com.android.systemui.action_assist_icon" android:resource="@drawable/launch_button" />
我正在开发一个替代 Google 的应用程序。 向上滑动时我的应用程序已经启动。
我需要更换戒指的图标吗? 市场上的一些应用程序可以做到这一点,并且 Cyanogenmod 中已经有一个功能。所以这是可能的,但是如何呢?
谢谢
编辑:
重新启动几次后,它可以正常显示图标。我可能需要找到一种方法来强制它。也许我可以重新启动 SystemUI,但如何? :)
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:hardwareAccelerated="true">
<activity
android:name=".contact.ContactActivity"
android:label="@string/title_activity_contact"
android:excludeFromRecents="true"
android:theme="@style/Theme.AppCompat.NoActionBar.Transparent">
<meta-data
android:name="com.android.systemui.action_assist_icon"
android:resource="@drawable/ic_assist"/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.ASSIST"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
</application>
试试这个:
<intent-filter>
<action android:name="android.intent.action.ASSIST"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
<meta-data android:name="com.android.systemui.action_assist_icon" android:resource="@drawable/launch_button" />