How re-enable design palette in Android Studio

大憨熊 提交于 2019-12-17 19:33:16

问题


I recently made the switch to Android Studio as my default IDE for Android development. When designing my UI I normally use the palette in the design view to assist in arranging the widget on the preview screen.Recently something weird happened, It just disappeared and I can't seem to re-enable it. Normally I would see the little Palette button on the side but now its gone. When I open another project I see the palette but not show this current project I'm working on.

When I open another project in Android Studio I see the palette tab.


回答1:


I've just figured this out! If you double click on your .xml file tab at the top it will maximize the designer window. Then on the left you can drag the window to shrink and it will reveal the palette. Then just click on the tab on the left to open the project window.




回答2:


try the Design/Text tabs in the lower left of the layout window




回答3:


The palette can be shrunk to 0 width. This can be expanded by hovering next to the left edge of the design window, and finding the right-most expand position.




回答4:


Android Studio 2.3.3, and the answer I was looking for:

Window -> Restore Default Layout (Shift+F12)




回答5:


If you have only the designer and the properties showing and the Properties is on the right, you can get the palette back by switching to a left or right view.




回答6:


Right click on the .xml file tab. Select "split vertically". This will open another Design that shows the palette again.




回答7:


You have to be in the 'Design' tab (as opposed to the 'Text' tab) at the bottom of the middle window (the one that shows the phone).




回答8:


You must have something in the layout resource highlighted. I also had to compile without an error.




回答9:


My solution was traversing

src->main->res-layout->content_main.xml 

then open content_main.xml




回答10:


Try to switch between Design/Text tabs at the bottom left of the editor.



来源:https://stackoverflow.com/questions/19550594/how-re-enable-design-palette-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!