No "Docked Mode" option in "Preview" settings in Android Studio once undocked

Solution 1:

Here is the simple solution for reverting to "Docked Mode".

  1. Select the Preview Window
  2. Go to Window menu > Active Tool Window

Docked Mode in Window menu

There you go. The Preview window is in Docked Mode. And there is the option for Docked Mode again.

Preview Setting with Docked mode option

Solution 2:

Option 1

First open any layout file to set the preview as active window. Then as the first answer says, goto Window in menu > Active Tool Window > Select Pinned Mode, Docked Mode and Split Mode

Option 2

Open a layout file. If the preview window doesn't appear, first make it visible by clicking View in menu > Tool Windows > Preview. Now preview window will appear. Then right click on the Toolbar in the preview window itself (the one with blue color)image here to show a list of options. Then there, select Pinned Mode, Docked Mode and Split Mode

Regards.