Android Studio flash spikes while editing .xml files

When I edit XML files in Android Studio, for some reason, it lags behind scrolling, input, or anything else. But when I edit the .java files, this is not a problem.

Any ideas on how I can prevent these sudden bursts? They are really annoying when you need to scroll through a 500-line xml file, but only 10 seconds on a double java file ... My opinion, is there any way to stabilize this?

I am using Android Studio 2.0.0

To make clair, I'm talking about the source code of an XML file, not a visualized release

+6
source share
2 answers

In case someone else encounters this in the future, I found that if you click on the little person with the hat on the bottom right, turn on β€œPower Saving Mode” and switch the highlight level to β€œNo”, this reduces the delay in editing XML in complex layouts.

Once you have done the editing, you can turn off the power saving function and highlight the backlight to view the changes in the Preview.

Not perfect, but it prevents constant pauses between keystrokes during editing.

+6
source

Is the Preview tab open? If so, just close it. The rendering process takes up a lot of processing power.

-2
source

All Articles