Preview in Android Studio gets removed from display when editing xml files
Usually when in the XML text editor you also have the option to view the preview of what the display will look like when running the application. Somehow I disabled this. Now when I click on my XML file to add code, the preview gets taken out of the display. Any ideas on how to fix this?
If you dont have preview option visible then go for this one:
View -> Tool Windows -> Preview
For more detail consult this stackoverflow post- Where is Android Studio layout preview?