Re-enable "component tree" in Android Studio
Solution 1
If you are looking for the component tree, go on the bottom left of Android Studio then click on the square (the one who show/hide the tool on the left, bottom and right) then on Designer. A new tab should be on the right part of android studio, with gradle and maver project.
Solution 2
I lost mine too, and then realized that they just moved it to the left side of the screen in the latest Android Studio 2.2 Beta 2. It took me a good 10 mins to find it.
Solution 3
A simple way of doing this --> just press shift+F12
. If this does not work then, go to windows menu --> Restore Default Layout.
Solution 4
It's now called Structure on the left panel. I am using
Android Studio 3.0.1 Build #AI-171.4443003, built on November 9, 2017 JRE: 1.8.0_152-release-915-b01 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 7 6.1
Solution 5
- Close Android Studio;
- Open [PROJECT_PATH]/.idea/workspace.xml
- Search for "PropertiesComponent"
-
In this xml node, erase this 2 lines:
<property name="UI_DESIGNER_EDITOR_MODE.UIDesignerToolWindowManager2.WIDTH" value="1" /> <property name="UI_DESIGNER_EDITOR_MODE.UIDesignerToolWindowManager2.STATE" value="left" />
For some reason, the width of ComponentTree was set to something almost invisible, and this was what worked for me.
If this doesnt work, just replace the whole node:
<component name="PropertiesComponent">
<property name="settings.editor.selected.configurable" value="gradle.compiler" />
<property name="settings.editor.splitter.proportion" value="0.2" />
</component>
Jose Gonzalez
Developer, Inventor, Entrepreneur. My Github My OpenProcessing portfolio Linkedin
Updated on July 14, 2021Comments
-
Jose Gonzalez almost 3 years
After updating to the last version (1.4 Beta 2) in Android Studio, the "component view" in the layout editor disappeared. How can I enable this tool again?
-
Jose Gonzalez over 8 yearsA combination of this + this: stackoverflow.com/questions/19550594/… did the trick for me.
-
Shirish Herwade almost 8 years'Designer' option not present in my case
-
xiaomi almost 8 years@ShirishHerwade the Designer menu (which can be found into
View > Tool Windows Designer
) is not available from the left bottom shortcut tool if the window is included with the layout editor (in editor mode > right/left
) -
tisaconundrum over 7 yearsThank you. My current version is 2.2, strangely the component tree is built on both sides. The tree is on the left for me, and all the properties involved are on the right.
-
velval over 7 yearsAlso took me a while to find it. I have been trying to move the component tree back to top right hand side but haven;t been able to. @Nick Do you know if that is possible?
-
Sathish Kumar J over 7 yearsIs there any component tree for .java files??