I just updated my studio with android studio 3.5 and now when I am trying to refactor AndroidManifest.xml
file and it is refactoring my all app permission to the bottom of my file.
Have any one faced this issue? Is there any solution for this refactoring issue?
Before refactor:
After refactor:
It is applicable to my all project files.
You just need to set xml layout for Android applications from the settings.
Follow this steps:
1. Go to Android Studio > Preferences. For Windows, go to File > Settings.
2. Search for xml in search bar.
3. Under code style section, select xml tab.
4. In the top right corner, click on set from... and under predefined style, select Android
5. Click on Apply and try to refactor.