Android studio 3.5 重构问题 [英] Android studio 3.5 refactor issue

查看:30
本文介绍了Android studio 3.5 重构问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新到 Android Studio 3.5,现在当我尝试重构文件 AndroidManifest.xml 时,我的所有应用权限都移到文件底部.

I've just updated to Android Studio 3.5 and now when I try to refactor the file AndroidManifest.xml, all my app permissions are moved to the bottom of the file.

有没有其他人遇到过这个问题?有什么解决办法吗?

Has anyone else faced this issue? Is there any solution for this?

重构前:

重构后:

它适用于我所有的项目文件.

It is applicable to my all project files.

推荐答案

您只需要从设置中为 Android 应用程序设置 xml 布局.

You just need to set xml layout for Android applications from the settings.

请按照以下步骤操作:

1. 转到 Android Studio > 首选项.对于 Windows,请转到文件 > 设置.

1. Go to Android Studio > Preferences. For Windows, go to File > Settings.

2. 在搜索栏中搜索 xml.

3.code style 部分下,选择 xml 标签.

3. Under code style section, select xml tab.

4.在右上角,点击设置自...,然后在预定义样式下,选择Android

4. In the top right corner, click on set from... and under predefined style, select Android

5.点击应用并尝试重构.

这篇关于Android studio 3.5 重构问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆