Lisa Anne
Lisa Anne

Reputation: 4595

Android: Why my icon does not appear in the Action Bar?

Please, See my picture.

Why the app icon is not on the top left corner????

Thanks!!

enter image description here

Here is my manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.enma"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />


<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity
        android:name="MainActivity"
        android:label="@string/app_name"
        >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="PickerActivity"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" />
    <activity
        android:name="com.enma.flatdesign3.MainActivity2"
         />
    <activity
        android:name="com.facebook.LoginActivity"
        android:label="@string/app_name"
        android:icon="@drawable/ic_launcher"
         />

    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/app_id"
        android:icon="@drawable/ic_launcher" />
</application>

</manifest>

Here is my icon:

enter image description here

Upvotes: 0

Views: 677

Answers (1)

karllindmark
karllindmark

Reputation: 6071

Simple answer: That's not an ActionBar. :-)

Longer answer: That's not an ActionBar, that's just the titlebar. Use the following attribute on your <application> tag to trigger the ActionBar:

android:theme="@style/Theme.Holo.Light"

Upvotes: 1

Related Questions