Make Text tab open by default in Android Studio
Open Settings:
File -> Settings -> Editor -> Layout Editor -> check the checkbox "Prefer XML Editor"
In Android Studio 3.0 for MacOS
Android Studio -> Preferences -> Editor -> Layout Editor
In newer versions of Android Studio you can find the setting mentioned by Andrey under Preferences > Editor > Layout Editor. ("Prefer XML editor")
A restart is not required.