Android – Why is there no Preview in Android Studio for \res\menu\main.xml

androidandroid-layoutandroid-studio

I am using Android studio 130.677228. Everything is OK and installed and my project has been built successfully. But I do not have Preview tab for layouts and there is no “Preview” menu in “Tool Windows”

Why? How can I solve this?

enter image description here

I have read:

Where is Android Studio layout preview?

Select target API in the Android Studio layout design preview

How do I show the rich layout editor in Android Studio?

But my answer is not there.

Best Answer

From what I can see you are editing a Menu resource file, not a Layout resource file. The Layout preview is only available when editing a Layout resource.

Once you are editing an actual resource file, which should be stored in it '/layout/' folder, you will see the editor preview on the far right side, below Maven Projects.

enter image description here