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/

相关文章:

java - 如何使用光标获取项目的位置并删除它?

java - 找不到 : org. gradle.api.internal.artifacts.ivyservice.ivyresolve.VersionInfo(java.lang.String) 的匹配构造函数

android - 如何在弹出窗口中打开 Activity ?

css - 使用 CSS 确保我的 Logo 始终与边框相距 X 距离

android - 手机充当灯塔

android - 在图像上写文字,将带有文字的图像保存在 SD 卡中,而无需在屏幕上绘制

android - WebView : WebSettings. LayoutAlgorithm.TEXT_AUTOSIZING : Below Android 4. 4?

android - Android 中的 EditText(货币)验证

android - 使用库中的示例数据目录

:after Pseudo-Element 的 CSS 定位问题