Android studio 3.5 uses the code format (reform code) to format XML, resulting in the original layout disorder Solution: Preferences —> Editor —> Code Style —> XML —> Android —> Set from… —> Predefined Style —> Android