How to show a popupMenu on top of a view, Lollipops style?

425 views Asked by At

On Lollipop, the guidelines are to show popupMenus on top of views, and not below/above them (taken from here):

enter image description here

Thing is, according to what I've noticed, they have an anchor, which puts their location near the selected view, but not on top of it.

Even using "MenuPopupHelper" of the support libary (which is an internal class) has failed for me.

How do I achieve the material-design behavior, even on pre-Lollipop versions of Android?

0

There are 0 answers