0

Just messed around with some features of Android Studio and got my Component Tree stuck in a different bar than the palette one, as you can see in the pictures:

when both of the bars are closed:
when both of the bars are closed

when both of the bars are open:
when both of the bars are open

No matter what I tried I can't get it back to the 2nd inner bar of the palette and it is really impposibble to edit the XML file without it. I tried to do shift + F12 and it only hides and unhides the component tree but does not make it come back to the inner bar as it was the default way.

Zoe
  • 27,060
  • 21
  • 118
  • 148
Alon Shlider
  • 1,187
  • 1
  • 16
  • 46

3 Answers3

3

You can restore the layout from

Window > Restore Default Layout.

Or using the keyboard shortcut SHIFT+F12

Jitendra A
  • 1,568
  • 10
  • 18
1

The component tree is not attached to any side.

Expand the component tree -> click settings icon of the component tree panel -> select attached side to left.

or

Right-click on the component tree panel -> select attached side to left.

Djib2011
  • 6,874
  • 5
  • 36
  • 41
S Ahmed
  • 1,454
  • 1
  • 8
  • 14
0

Right click Component Tree in your fig 1, and remove the check of Floating Mode, after that click Left in Attached Side.

navylover
  • 12,383
  • 5
  • 28
  • 41