When I click on my options menu in my action bar, an image of my app (main view) appears instead of the items in action_menu.xml. I've been struggling to understand why this might be happening. Perhaps it is an Inflater?
public override bool OnCreateOptionsMenu(IMenu menu) { MenuInflater.Inflate(Resource.Menu.action_menu, menu); return base.OnCreateOptionsMenu(menu); }
Here is my Toolbar
` <android.support.v7.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:id="@+id/toolbar"
/>`
action_menu.xml for options menu
`
It is probably difficult to grasp what I am trying to convey here so if you don't understand please ask and I will try better to explain.
Answers
Ok simply restarting visual studios made this issue go away.
Ok nevermind the issue is back again. Weird.