Last active
August 29, 2015 14:08
-
-
Save ikew0ng/0b5de9a140b8cab2c6ac to your computer and use it in GitHub Desktop.
Replace Google Search Action on Navication Bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- target activity --> | |
<activity android:name="..."> | |
<meta-data | |
android:name="com.android.systemui.action_assist_icon" | |
android:resource="@drawable/ic_assist"/> | |
<intent-filter> | |
<action android:name="android.intent.action.ASSIST"/> | |
<category android:name="android.intent.category.DEFAULT"/> | |
</intent-filter> | |
</activity> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android" | |
android:enterFadeDuration="@integer/config_miniAnimTime" | |
android:exitFadeDuration="@integer/config_miniAnimTime"> | |
<item android:state_active="true" android:drawable="@drawable/ic_assist_active"/> | |
<item android:drawable="@drawable/ic_assist_normal"/> | |
</selector> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment