Is there anyway to get the position of android menubar item?

白昼怎懂夜的黑 提交于 2021-01-28 10:27:22

问题


I need to load Android dialog activity window once clicked on the icon in the action bar as displayed in the following image: enter image description here

I know how to load the window using the following code.

resolver=getContentResolver();
layoutParams=getWindow().getAttributes();

layoutParams.x=400;
layoutParams.height=600;
layoutParams.width=1000;
layoutParams.y= 30;
this.getWindow().setAttributes(layoutParams);

What I need to know is if there is any way to find out the position of the icon in action bar, without using any code.

来源:https://stackoverflow.com/questions/21670760/is-there-anyway-to-get-the-position-of-android-menubar-item

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!