Android Studio 3.3, Layout Preview, Zoom In, Zoom Out and Zoom to Fit Screen buttons not working
Asked Answered
S

1

4

When I open an activity layout on Layout Preview, I want to zoom in but when I click to zoom in button nothing happens. Also, zoom out and zoom to fit screen buttons not working.

What I tried:

  • Updated Android Studio to version 3.3.
  • Done all Android SDK updates.
  • Updated NDK.
  • Clean Project.
  • Rebuild Project.
  • Create a new project.

How can I fix this problem?

Edit:

I think I found the solution. If your zoom level on 24%, zoom in and zoom out buttons not working. To fix the bug, lower layout preview window size till zoom level become 23% and lower. After this, zoom buttons starts to work again.

Screenshots: https://prnt.sc/mgkphw | https://prnt.sc/mgkpxu

Seeseebeck answered 18/1, 2019 at 14:49 Comment(1)
Just updated IDE to 3.3 and facing the same issue..Duress
D
4

It is a bug in Android Studio; at some zoom levels (e.g 24% or 9% or whatever) the zoom buttons stop working. One fix is to keep changing the 'Device for Preview' type and find the one on which zoom buttons work.

But the best fix that worked for me was to minimize all the tools on the bottom, i.e Run, Logcat, TODO, Terminal, Build and more ... Then the zoom buttons start working. Even you open the tools back again, the zoom will keep working.

Just to verify the solution; re-open one of the bottom tools (e.g Logcat) and click 'Zoom to fit screen (ctl+0)', most likely the zoom buttons will stop working again. Simply minimize the tools again and it's fixed.

Delcine answered 28/2, 2019 at 13:11 Comment(2)
can confirm this issue exists and fix works for android studio version 3.3.2Adduction
I can confirm this issue still exists and the fix works on 3.4Ariadne

© 2022 - 2024 — McMap. All rights reserved.