How re-enable design palette in Android Studio

2020-02-05 12:30发布

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.

enter image description here

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

enter image description here

11条回答
冷血范
2楼-- · 2020-02-05 12:46

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

查看更多
Summer. ? 凉城
3楼-- · 2020-02-05 12:47

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楼-- · 2020-02-05 12:48

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

enter image description here

查看更多
We Are One
5楼-- · 2020-02-05 12:48

My solution was traversing

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

then open content_main.xml

查看更多
Deceive 欺骗
6楼-- · 2020-02-05 12:49

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

查看更多
疯言疯语
7楼-- · 2020-02-05 12:50

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

Window -> Restore Default Layout (Shift+F12)

查看更多
登录 后发表回答