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

前端 未结 12 2434
闹比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:30

    The simplest way is to press Shift + F12. It will restore your view to the Android Studio default view. Or go to Window -> Reset to default.

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

    After reading the top rated answers above it still couldn't resolve the issue. Turns out is was a project specific setting. I fixed it by modifying my project's workspace.xml file located in my project's .idea folder. In that file look for the element

    <component name="ToolWindowManager">
    

    Under that will be the node:

    <window_info id="Logcat" 
    

    change the type of that node from FLOATING to DOCKED

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

    Right click on Android Monitor tab, select pinned mode and docked mode. Unselect other modes. My runner.layout.xml file was showing window value 0, so i tried this method it solved my problem.

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

    I just realised that the settings controlling the window layout are not stored in the project because the layout was broken for all projects. I was able to fix the problem by doing this:

    $ cd ~/.AndroidStudio/config
    $ grep -r ddms
    $ vi options/runner.layout.xml
    

    Then I modified the Logcat configuration to look like this:

      <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="0" />
      </ViewImpl>
    

    The important change was the window option.

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

    select window Select Default layout or press Shift + F12

    It fixes the logcat window at the bottom.

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

    Click on the Settings icon on the top right of the Terminal Window, from the drop-down select Split Mode, Pinned Mode, Dock Mode. This will pin it to the bottom window. Unselect Split Mode if you want it grouped with the other bottom windows.

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