Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio does not show layout preview

I'm using Android Studio 1.4

It has passed some time since the last time I've created a new project in android studio and today when I did it the android studio does not show anything from the layout preview. Its a blank window and says "Nothing to show".

I think it's related with the new support design library cuz I've never seen this new "default code". I've researched a bit and it's the new android material design guidelines ...

I've already done this:

  1. updated the SDK tools
  2. cleaned the project and rebuild it
  3. invalidated and restarted caches

...and still nothing.

Updated:

I decided to update 1.5.1 it's like this: it's giving me that rendering problem.. I think it's not showing correctly the lower right button, cuz I think it's supposed to be a button with a message icon in it and in my AS just shows the message icon (correct me if I'm wrong).

enter image description here

enter image description here

like image 677
Cap.Alvez Avatar asked Dec 28 '15 19:12

Cap.Alvez


People also ask

Why android studio is not showing design view?

Below image shown After finding, uncheck “use new Layout Rendering engine” and click on “ok”. To apply these changes, you needed to restart android studio. So that android studio IDE or Plugin update. Above all method does not work, then this method absolutely works.

Can t see preview in android studio?

Go to File -> Settings -> Apperance & Behavior -> System Settings -> Android SDK : Check Show Package Details which is located on the bottom right. Under the latest Android SDK version (for ex: Android 8.1 (Oreo) ), check Google Play Intel x86 Atom System Image. Now click apply button.

Where is the Preview button in android studio?

If you want to see the live preview, in the right part of the screen you should have a button call Preview that show/hide the live preview. If what you want is to use the WYSISYG editor mode, in the bottom of the editor there is a tab that switch between XML mode and WYSISYG mode.


1 Answers

Choose another theme (other than Holo, for example Theme)

Solution Image

When you create the style incorrectly or from an existing style, this problem usually occurs. So select the "Graphical Layout" select "AppTheme" (The tab with a blue star). And select any of the predefined style. In my case "Light" which should resolve the problem.

Try to 'Invalidate caches & restart'.

how to invalidate cache & restart

Restart your Android Studio by choosing this option. It may take some time.

Then, if still doesn't work try to rebuild your project.

like image 84
piotrek1543 Avatar answered Oct 12 '22 18:10

piotrek1543