美文网首页Android开发Android技术知识Android开发
解决 android studio 3.5 格式化xml文件后

解决 android studio 3.5 格式化xml文件后

作者: chenxuxu | 来源:发表于2019-11-18 21:45 被阅读0次

android studio 3.5 修复了很多bug,体验上也流畅多了。但是有个不好的地方,xml 布局文件格式化后会将控件的位置打乱,导致视图显示有问题。

解决办法

打开设置,Editor => Code Style => XML => 点击右上方的 Set From => Predefined Style,然后选择 Android,保存即可。

image.png

相关文章

网友评论

    本文标题:解决 android studio 3.5 格式化xml文件后

    本文链接:https://www.haomeiwen.com/subject/dpauyctx.html