Android Designer does not support selectors as image

I will keep it short (already typed once yesterday, but posting did not work).

The design view in the new version of IntelliJ does not support XML references as images.
E.g. using this as a background for a button does not render in designer.

Its a pity because nearly all button backgrounds are set this way (best practice to support click effects).

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="">
    <item android:state_pressed="true"
    <item android:state_pressed="false"
    <item android:state_pressed="false"

Anyone knows a workaround or if it is fixed in EAP?


PS: Replacing all references with the active reference is not an option, I would have to do this for 20 different buttons for debug, then switch back, and so on. Also risk to forget switching back is to great (everything will still work, the button would just not change color if clicked. None of my tests could detect this :-)

Comment actions Permalink

Hello, it seems to be a bug in Google's rendering library, because Eclipse doesn't preview such buttons too. Please, submit a bug to Google Android issue tracker.

Comment actions Permalink

Done, if anyone wants to know the status of this issue, look here:


Please sign in to leave a comment.