我在 android studio 中对大部分 UI 使用约束布局,但在图形编辑器中设计它非常慢。 应用约束非常慢。
我的笔记本电脑很好。i7 第 5 代 16 GB 内存和 500 固态硬盘。我认为不应该有性能限制。问题出在android studio中。 如何提高图形编辑器的性能。请帮忙。
使用图形编辑器时 CPU 使用率也会上升到 50%。
最佳答案
要提高性能,需要注意三件事:
增加 Android Studio 的 VM 堆大小:https://developer.android.com/studio/intro/studio-config.html#adjusting_heap_size
将设计界面切换为仅蓝图模式:https://developer.android.com/studio/write/layout-editor.html#change-appearance
确保您使用的是最新版本的约束布局库 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/