0

Hi i want to change my application logo on drag from navigation bar like google now. This is my application manifest:

    <application
    android:theme="@android:style/Theme.Holo.Light"
    android:icon="@drawable/ic_launcher"
    android:logo="@drawable/ic_launcher"
    android:screenOrientation="portrait"
    android:debuggable="false"
    android:label="@string/app_name" >

Exmaple

adneal
  • 30,484
  • 10
  • 122
  • 151
Rosenpin
  • 862
  • 2
  • 11
  • 40
  • 1
    Possible duplicate of [Replace Google Now gesture](http://stackoverflow.com/questions/14233330/replace-google-now-gesture) – CrandellWS Feb 07 '16 at 03:55

1 Answers1

7

In your AndroidManifest, add this intent-filter and meta-data to the Activity you would like to launch when you swipe up.

        <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="@android:drawable/sym_def_app_icon" />

The first time you swipe up, the generic search icon will be shown. After you choose to "always" use your app as the default assist action, the icon your specify in your AndroidManifest will appear. Also, bear in mind this isn't official. Typically you can't modify the SystemUI, but this is a special case.

Example

adneal
  • 30,484
  • 10
  • 122
  • 151