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.
I would prefer to not have to rebuild the project from scratch, but cannot find anything obvious in
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.
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:
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
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 🙂
To sum up the Dave Cole’s answer: all you need to do is:
- Open the
- Find the file
.config/options/runner.layout.xml, open it with some text editor.
Find the following piece of code:
<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" />
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.
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
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.
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.
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
Under that will be the node:
change the type of that node from
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.
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.
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.
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.
Select Default layout or press Shift + F12
It fixes the logcat window at the bottom.