简体   繁体   English

Android Studio:可绘制xml预览不起作用

[英]Android Studio: Drawable xml preview not working

Last time I did this, it worked. 上次我这样做是可行的。 But now, my Android Studio couldn't show a preview of the drawable which i made before. 但是现在,我的Android Studio无法显示我之前制作的可绘制对象的预览。

AS的“预览”窗格为空

在此处输入图片说明

See the upper Image click on Version 24 and select Version 23 or below it will solve your problem. 查看上方的图片,然后单击“ Version 24然后选择“ Version 23或以下Version 23 ,它将解决您的问题。

This is only drawable when item is pressed 仅在按下项目时才可绘制

So remove state_pressed=true 所以删除state_pressed=true

or add not state item 或添加非状态项

<item>
...
</item>

Android Studio is not showing preview when state_pressed=true . state_pressed=true时,Android Studio不显示预览。 Replace true to false to enable the "show preview". true替换为false以启用“显示预览”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM