skip to Main Content

Design preview Not visible in Android Studio

The design preview for all other activities are visible, but for this specific activity(quiz_page.xml) the design preview is not visible.

I have tried all the things on the Internet including

  1. Invalid caches
  2. Force Refresh layout
  3. Disabled and enabled Android support plugins

2

Answers


  1. If you pressed this icon:

    errors icon

    you would get the desired reason why the design is not visible, please do that and update your question 🙂

    Login or Signup to reply.
  2. In newer versions of Android Studio, there’s been a issue, XML will not be shown until you fix all the bugs available in your code.

    Solutions

    1. Downgrade your Android Studio to BumbleBee. By this, xml will be shown if error still exists in code.
    2. Fix issues illustrated by android studio. You can find issues by clicking red error icon on top-right side of xml page.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search