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 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.
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.
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.
To sum up the Dave Cole's answer: all you need to do is:
Android Studio
directory..config/options/runner.layout.xml
, open it with some text editor.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>
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.
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 :)