As I understand it - NO.
When you open the options menu, a new Window created - specifically to display the menu. And from activity (and this window) there is no way to get some information about other windows.
To control the layout, you can try to find the layout of the menu window and check how much dp it is (all standard Android layouts are in the sdk_folder / platform / platform-x / data / res / layout folder) But this is not the best way - it will be platform dependent, and if, for example, HTC has its own options menu, you will have problems.
Jin35 source share