5

This is how Layout Editor looks like when I click on Preview all Screen sizes

XML Layout Editor

Clicking on + and - does nothing. Without zooming I can't see Preview on all Screen sizes clearly. How can I zoom in and out to see everything clearly?

Is this a issue with Android Studio or I am doing it wrong way?

ahsteele
  • 26,243
  • 28
  • 134
  • 248

10 Answers10

3

I was having the same problem, but what solved for me was changing the theme of Android Studio. When I couldn't zoom in or out in the XML Editor I just changed from Darcula theme to IntelliJ theme and it worked just fine.

I hope it works for you too or someone have the same issue!

Mateus Arruda
  • 305
  • 4
  • 14
  • 1
    I had to change the API level or the device from inside the "Design" view of the layout xml. – Sufian Nov 11 '18 at 23:13
  • 1
    Thank you for the clue. In my case, I must change the theme from Intellij to Darcula. and after close & open Android Studio, zoom can work normally. – Dika Nov 23 '18 at 11:12
  • I too had to switch from Intellij theme to Darcula theme. After pressing apply I had to close and then reopen Android Studio. Once I did that I could zoom in and out. If I switched back to the IntelliJ theme then the buttons stopped working again. – mperry Jan 21 '19 at 07:27
1

Change it from Design + Blueprint to Design only. Works for me

ARV208
  • 11
  • 1
1

I've just had to resolve the same problem. Restart your AS - Select Design Surface - Force Layout Refresh. Refresh it several times. Maybe its irrelevant but I also made the program window smaller and than bigger again. It helped.

Dar.
  • 11
  • 1
1

I just had this problem, and none of the suggestions above worked for me.

Finally, I tried changing the device type (e.g. switching from Pixel to Nexus 6P) and that worked.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
0

Almost always when I create a new empty project in Android Studio 3.2.1, I have this problem, after just changed from IntelliJ theme to Dracula theme and it worked just fine. After I changed the theme from Dracula to Intellij, zoom also can work normally.

Vitalie Bancu
  • 171
  • 1
  • 11
0

Restart your Android Studio perhaps. Sometimes it just stop working.

Asghar Musani
  • 568
  • 4
  • 20
0

I switched into Blueprint mode and it zoomed and it now works when I go back to the Design + Blueprint view

0

in my android studio (v 3.3) zoom size was locked in 7% and didnt change at all. after I install all of system image required in api target in sdk platform, when i resize by mouse(like picture) suddenly change that 7% and after that it works.Actually I dont know what action solve the problem.enter image description here

0

The most probably solution would be resize the android studio window which can be done my dragging your mouse after clicking on the edge of the studio's window, which will automatically result in resized layout .

Now since the layout is resized implicitly its most likely to work explicitly as well.

Worked for Me.

Kshitij Dhyani
  • 703
  • 2
  • 8
  • 23
0

In my case, Android studio version 3.4.1:
Go File -> Invalidate caches/Restart click it, has solve this issue.

סטנלי גרונן
  • 2,917
  • 23
  • 46
  • 68
Ganesan J
  • 539
  • 7
  • 12