Application launcher icon being displayed on actio

2019-07-05 02:44发布

On my action bar application icon is being displayed, I don't want it to appear on action bar. I have modified the androidmanifest.xml and removed android:icon from activity element, even then the icon is being displayed?

<application
    android:allowBackup="true"
    android:icon="@drawable/ic"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.storelocator.StoreLocatorActivity"
        android:label="@string/app_name" 
        android:configChanges="orientation|screenSize">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application> 

1条回答
何必那么认真
2楼-- · 2019-07-05 03:23

Call setDisplayShowHomeEnabled(false) in your activity. That will hide the icon.

查看更多
登录 后发表回答