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

AndroidAndroid LayoutAndroid StudioPreview

Android Problem Overview


Here is the Docked mode option for "Preview" window.

Preview Setting with Docked mode option

I removed the docked mode i.e. undocked it. And here is what I got.

Preview Setting without Docked mode option

There is no more "Docked Mode" option. Now I cannot properly work with designing layouts. Preview automatically hides when I change anything in the layout.

Android Solutions


Solution 1 - Android

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 - Android

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.

Solution 3 - Android

The first answer is right, but you must first click Preview Window. Then you go to Window menu > Active Tool Window, choose Docked Window and Pinned Mode.

Solution 4 - Android

Here is the simple solution for reverting to "Docked Mode" preview: >Go to Window menu > Active Tool Window>Docked Mode(true).

Solution 5 - Android

It didn't worked for me , But helped me ,Thank you.

Another Solution is 1.Select Preview window(Focus on it) 2.Unselect Floating mode and Pinned mode 3.goto Window -> Active Tool Window -> 4.Unselect Floating mode and Pinned mode 5.Now you can see Docked window option here(Window -> Active Tool Window ->) 6.Select Docked Window

Solution 6 - Android

If pin mode and docked mode options in window are in a gray color, then First, go to window-> restore default layout-> again go to window->active tool window, pin mode and docked mode options will automatically made visible, so that we can select(or tick) them.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSamirView Question on Stackoverflow
Solution 1 - AndroidSamirView Answer on Stackoverflow
Solution 2 - AndroidviperView Answer on Stackoverflow
Solution 3 - AndroidzhangjinView Answer on Stackoverflow
Solution 4 - Androidsajad bidramView Answer on Stackoverflow
Solution 5 - AndroidDeepak SinghView Answer on Stackoverflow
Solution 6 - AndroidMilind PatilView Answer on Stackoverflow