Search code examples
androidandroid-layoutandroid-studiopreview

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


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.


Solution

  • 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