I have a ActionBar setup in my AppCompatActivity and I would very much like to be ablt to get the position of the menu items and the overflow menu, so that I can have a tool tip pointing to any item in the ActionBar. I have tried many ways now, and I do have a way to get hold on the ActionBar and the Toolbar, but it seems that any views in there always has a left of zero and so on. I have created a tool tip component that is a PopupWindow, and I can position this over the ActionBar no problem, but I can not figure out how to get the correct position of the menu items. Is there a way to this?
Thank you
Søren
Copyright Notice:Content Author:「Neigaard」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/41020078/can-i-get-the-position-of-the-overflow-menu-and-any-other-menu-in-the-action-bar