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 -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -