I am using AS since 4 years. After last update I observed unexpected auto-formatting of XML layout (while typing and with Code
-> Reformat Code
too).
Here is an example:
Question
I am using Android Studio 3.2.1 Build #AI-181.5540.7.32.5056338, built on October 8, 2018
if you facing same issue with
Android Studio 3.5
please check below article
Android Studio 3.5 Upgrade XML Reformatting Problems
Open File > Settings > Editor > Code Style > XML
Now in layout file make sure you have selected wrap attributes as Wrap always
Like below screenshot: