The ActionBar does not display the menu item. How to display it?
In the markup file for the menu, I wrote this:
<?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context="test.prog1.MainActivity"> <item android:title="@string/action_liked" android:id="@+id/action_liked" android:icon="@android:drawable/btn_star_big_off" android:showAsAction="always" /> <item android:id="@+id/action_about" android:orderInCategory="100" android:title="@string/action_about" app:showAsAction="never" /> </menu> action_liked - needs to be displayed. It only appears in the dropdown menu.