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.
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.
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
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.
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.
select window Select Default layout or press Shift + F12
It fixes the logcat window at the bottom.
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.