Skip to content

Instantly share code, notes, and snippets.

@ikew0ng
Last active August 29, 2015 14:08
Show Gist options
  • Save ikew0ng/0b5de9a140b8cab2c6ac to your computer and use it in GitHub Desktop.
Save ikew0ng/0b5de9a140b8cab2c6ac to your computer and use it in GitHub Desktop.
Replace Google Search Action on Navication Bar
<!-- 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>
<?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