反正有没有获得android菜单项的位置?

时间:2014-02-10 06:52:44

标签: android android-activity window android-actionbar

点击操作栏中的图标后,我需要加载Android对话框活动窗口,如下图所示: enter image description here

我知道如何使用以下代码加载窗口。

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

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

我需要知道的是,如果有任何方法可以在操作栏中找到图标的位置,而不使用任何代码。

0 个答案:

没有答案