Can I get the position of the overflow menu and any other menu in the Action Bar
NickName:Neigaard Ask DateTime:2016-12-07T22:31:16

Can I get the position of the overflow menu and any other menu in the Action Bar

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

More about “Can I get the position of the overflow menu and any other menu in the Action Bar” related questions

Can I get the position of the overflow menu and any other menu in the Action Bar

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 ite...

Show Detail

How to change display position of action bar overflow menu in android

Can anybody tell me how to change the display position of the action bar overflow menu in android? In my application there is an image button. If the user clicks the image button I want to display ...

Show Detail

Action bar overflow menu vs hardware permanent menu button

I'd tested my app on a Nexus 10 (Android 4.2.1), and the overflow menu on the action bar worked fine. So I was dumbfounded when the overflow menu didn't appear on a Galaxy note 2. After reading A...

Show Detail

Need to click Overflow Menu Item twice when other menu item in Action bar is selected

I am using Action bar and having menu items implemented using Action Provider. Clicking on menu item shows Popup Spinner. Now when any Menu item is clicked and Popup screen is ON and that time - If

Show Detail

Action bar not showing overflow menu

UPDATE: The problem is only in the xml view. On running the app it works just fine. Some error with the rendering in android studio i think. Im watching a video tutorial in which the action bar sh...

Show Detail

Android: How can show overflow menu exactly on the upper Action bar

I have an overflow menu in my action bar , it shown in some devices on the upper action bar and in other devices shown in the below action bar, I want to show my overflow menu on the upper action b...

Show Detail

Android action bar menu items getting forced to overflow

I have looked at the following stack overflow articles to figure out why my action bar items are getting forced into overflow. Can't find the ActionBar resource icon Action Items not showing in

Show Detail

How to change background color of overflow menu (popup Menu) for action bar

I am using android compact library for building the action bar for both older and newer versions of android. so my requirement includes that i need to show action bar in blue color. now i have chan...

Show Detail

Show icons in Overflow Menu in Contextual Action Bar

I know how to show icons in the overflow menu of the ActionBar. This is what I use, @Override public boolean onMenuOpened(int featureId, Menu menu) { if (featureId == Window.

Show Detail

How to show overflow menu in action bar

I want to display an overflow menu in the action bar , I tried to use a menu in my activity but I'm only getting a popup menu when I click on the menu button on my phone. Is there any way to force ...

Show Detail