How do you undo floating mode for the logcat window in Android Studio

前端 未结 12 2564
闹比i
闹比i 2021-02-18 20:26

While fiddling with the layout in Android Studio I somehow turned my logcat window into a floating window. I cannot for the life of me restore it to docked mode.

相关标签:
12条回答
  • 2021-02-18 20:41

    I was facing the same issue and this is how I resolved it:

    Simply click on the corner of the icon of logcat (Android-like icon at the top-left corner) and then drag to where you want to place it.

    0 讨论(0)
  • 2021-02-18 20:42

    When floating mode is selected (checked), the docking mode and pinned mode options disappear. simply uncheck the docking mode by right clicking on the logcat tab and click on floating mode and the logcat state will be back to docking mode.

    0 讨论(0)
  • 2021-02-18 20:46

    The simplest way is to delete the runner.layout.xml file under your personal androidstudio config folder (.AndroidStudio\config\options), if you don't need to remain a special IDE layout setting.

    0 讨论(0)
  • 2021-02-18 20:53

    To sum up the Dave Cole's answer: all you need to do is:

    1. Open the Android Studio directory.
    2. Find the file .config/options/runner.layout.xml, open it with some text editor.
    3. Find the following piece of code:

      <ViewImpl> <option name="ID" value="Android Logcat" /> <option name="minimizedInGrid" value="false" /> <option name="placeInGrid" value="right" /> <option name="tabIndex" value="0" /> <option name="window" value="1" /> </ViewImpl>

    4. And change the "window" option's value to 0: <option name="window" value="0" />.

    Save the file, now your logcat window is in docked mode.

    0 讨论(0)
  • 2021-02-18 20:54

    Mac OS X answer

    Seems the OP is running into this issue on some flavor on Linux. For people with OS X, see this answer.

    Option 1

    If you select the little cog icon at the top right of the floating window, and deselect floating mode, it should pop back to pinned mode:

    enter image description here

    Option 2

    If you don't see the little cog, you can also make sure that the floating logcat window is selected, and then go to Window-> Active Tool Window-> Floating Mode

    enter image description here

    0 讨论(0)
  • 2021-02-18 20:56

    You can drag and drop it back. But you need to be dragging the Tab, not the whole window. I fought with it for 3 days before figuring it out :)

    0 讨论(0)
提交回复
热议问题