Menu opcji nie pojawia się w Androidzie
Mam ten kod, aby utworzyć menu:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.tip_menu, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case MNU_PREV:
animateTextViewsPrev();
break;
case MNU_NEXT:
animateTextViewsNext();
break;
}
return true;
}
I XML:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@+id/prev_tip" android:title="@string/prevTip"></item>
<item android:id="@+id/next_tip" android:title="@string/nextTip"></item>
</menu>
W smartfonie z Androidem 2.1 menu jest widoczne, ale w innym telefonie komórkowym 4.1.1 jest niewidoczny. Ktoś teraz jak to rozwiązać?