Does anyone know some shortcut to switch between design and text in android studio while editing XML layout?
While I can switch from design view to source using
Although the question is related to switching between design and xml views, many people may be looking for or interested in how to switch between related XML and Java files. This can be achieved in Android Studio, using the Related Symbol..
. navigation key mapping.
Depending on your settings and operating system the keyboard shortcut will vary, but you can find out what yours is by looking in Settings -> Keymap -> Main menu / Navigate / Related Symbol...
Otherwise try the following keys:
alt + shift + left/right arrow keys worked for me in Windows 10 in Android Studio 3.5.
ALT+SHIFT+RIGHT ARROW worked for me on ubuntu
You can find it in Settings->KeyMap
"Select next Tab in multi-editor file"
CRTL+SHIFT+RIGHT (it may depend by the platform).
You can change it.
Now you can check sequence of button in top right bar to switch between design, text and preview.
ALT + Shift + Left/Right works for me. (Windows)
On Android Studio 2.3+, one can use the shortcut Ctrl+T.