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