I have added a simple menu but its not showing up.
this is menu.xml file-
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@+id/settings"
android:alphabeticShortcut="@string/settings_shortcut"
android:title="@string/settings_label"></item>
</menu>
this is main.java file-
@Overridek
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu, menu);
return true;
}
I just wanted to keep it simple.
Inflate your menu options in your
.javafile through this –Hope this helps you lot.