Question

I have a menu in the action bar that is visible if in the telephone is setted the english language(default), but for the italian (for which i have created only the folder values-it for the strings) the app doesn't show the action bar and the menu.. i initialize the menu with the classic way :

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
}

where am i wrong? do i have to do another folder for the menu besides the standard folder "menu" in which i put all the menu (as "main" in my example)? thank you..

Was it helpful?

Solution

I resolved this issues removing : android:theme="@style/AppTheme" from the manifest in the tag "application"

     <application android:allowBackup="true" 
                  android:icon="@drawable/ic_launcher" 
                  android:label="@string/app_name" 
                  android:theme="@style/AppTheme">

I had a theme assigned and it was in conflict with my minSdkVersion=8

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top