android - 约束的图形编辑在 Android Studio 2.3.1 中非常慢

标签 android android-studio layout constraints

我在 android studio 中对大部分 UI 使用约束布局,但在图形编辑器中设计它非常慢。 应用约束非常慢。

我的笔记本电脑很好。i7 第 5 代 16 GB 内存和 500 固态硬盘。我认为不应该有性能限制。问题出在android studio中。 如何提高图形编辑器的性能。请帮忙。

使用图形编辑器时 CPU 使用率也会上升到 50%。

最佳答案

要提高性能,需要注意三件事:

  1. 增加 Android Studio 的 VM 堆大小:https://developer.android.com/studio/intro/studio-config.html#adjusting_heap_size

  2. 将设计界面切换为仅蓝图模式:https://developer.android.com/studio/write/layout-editor.html#change-appearance

  3. 确保您使用的是最新版本的约束布局库 v1.0.2:https://androidstudio.googleblog.com/2017/03/constraintlayout-102-is-now-available.html

关于android - 约束的图形编辑在 Android Studio 2.3.1 中非常慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44231180/

相关文章:

android - 构建一个包含所有依赖项的 .aar

javascript - MVC 3 和 PartialViews,脚本不可见?

java - 在 GUI 中使用不同的布局

java - 如何通过代码在Activity中添加IntentFilter?

android - 使用 ffmpeg4android 库压缩视频

java - 从 Url 解析 JSON(随机生成)时,TextViews 上没有任何显示; (Java,安卓)

Android:编译要在可绘制文件夹之外使用的 9 补丁文件?

android - 找不到 Android 构建工具 26.1.0

android - 如何在 RecyclerView 中隐藏 View

css - 如何制作固定宽度的中心 3 列布局?