android - Getting screen coordinate of action bar menu item for creating introduction screen -


i wondering, there possible of getting screen coordinate position of action bar menu item? create introduction screen, draw arrow pointing desire action bar menu item, user knows start.

enter image description here

here's how did it:

@override public boolean onoptionsitemselected(menuitem item) {     if(item.getitemid().equals(r.id.my_menu_item)) {         view menuview = findviewbyid(r.id.menu_item_search);         int[] location = new int[2];         view.getlocationonscreen(location);         int locationx = location[0];         int locationy = location[1];     } } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -