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

14,117

Solution 1

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

Solution 2

To see the menu preview you have to lower the API level to 16 or lower and it will show you on the device in top right corner. On higher API levels only a blank white screen is shown.

Share:
14,117
Bobs
Author by

Bobs

You can contact me using this: breceivemail yahoo dot com می توانید با من تماس بگیرید: breceivemail yahoo dot com #SOreadytohelp

Updated on June 14, 2022

Comments