android - Android Studio:XML 布局中的意外重新格式化代码
问题描述
我现在使用的是 Android Studio 3.5,在上次更新后,我观察到 XML 布局的意外自动格式化。
在我的布局中,我有:
<androidx.constraintlayout.widget.ConstraintLayout ...
<TextView ...
<ImageView ...
<TextView ...
</androidx.constraintlayout.widget.ConstraintLayout>
重新格式化代码后 Code -> Reformat Code
,我的布局以一种意想不到的和不需要的形式发生了变化:
<androidx.constraintlayout.widget.ConstraintLayout ...
<ImageView ...
<TextView ...
<TextView ...
</androidx.constraintlayout.widget.ConstraintLayout>
问题
- 这是新 AS 中的一个功能吗?那我该如何恢复呢?
- 我是否更改了某些设置?我应该修改什么设置才能恢复?
解决方案
推荐阅读
- angularjs - 如何以角度显示当前显示的条目范围
- reactjs - React component not updating from props
- react-native - 如何在本机反应中设置缩略图
- angular - 从 Angular 4 升级到 6 后,fixture.whenStable() 停止工作/调用
- java - 使用 Spring Batch 将大量数据存储到数据库
- javascript - 当我们使用jquery悬停div时如何使Class保持不变
- inheritance - 超类应该有构造函数吗?
- operating-system - Page Fault - os 如何在二级存储中搜索页面?
- excel - 如果两列在同一行中有特定文本,Excel宏比较两个日期
- php - AWS PHP 连接