Smee
Smee

Reputation: 143

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.

AS's Preview pane is empty

Upvotes: 2

Views: 2122

Answers (3)

Narendra Sorathiya
Narendra Sorathiya

Reputation: 3830

Android Studio is not showing preview when state_pressed=true. Replace true to false to enable the "show preview".

Upvotes: 2

loadjang
loadjang

Reputation: 327

This is only drawable when item is pressed

So remove state_pressed=true

or add not state item

<item>
...
</item>

Upvotes: 2

Harshad Pansuriya
Harshad Pansuriya

Reputation: 20950

enter image description here

See the upper Image click on Version 24 and select Version 23 or below it will solve your problem.

Upvotes: 2

Related Questions