Android studio 3.5 refactor issue

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.

enter image description here

2. Search for xml in search bar.

enter image description here

3. Under code style section, select xml tab.

enter image description here

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

enter image description here

5. Click on Apply and try to refactor.

Leave a Comment