The problem is that the popup that I ask in the action bar'e doesn’t fit on the screen. Besides, I’m writing not on pure android'e , but on xamarin android , but I don’t think that this is the problem.

So here's the code:

 public override bool OnCreateOptionsMenu(IMenu menu){ Window.SetFlags(WindowManagerFlags.LayoutNoLimits, WindowManagerFlags.LayoutNoLimits); MenuInflater.Inflate(Resource.Menu.popup_menu, menu); return true; } 

I used SetFlags as I found a similar situation here , but it didn’t help me, or I’m doing something wrong. In addition, what I need to do in the action bar'e :

enter image description here
enter image description here

  • And this is only on versions of Android 4.2. At 4.3. and 5.1 and 6.0 works flawlessly. - Ruslan Timkov

0