Search code examples
android-studio

Android Studio - view both Text and Design preview of layout


In Android Studio, how can I view both the text and design preview of an XML layout side by side.

I could see it by default when I installed Studio, but now that is gone, and I'm not sure why. I can only see or the other.

How do I re-enable it?


Solution

  • Open your [whatever].xml. At the bottom you'll see Design and Text. Select Text. If you still can't see the actual layout, only xml, then select "Preview" which is located at the right of the window, between Gradle and Maven Projects.