tags:

views:

161

answers:

1

When creating a stateful drawable, I cannot find the other drawables (9-patch images) that are there - i get no "suggestions" ("intelliSense").

But if I try to find drawables in another XML-file there is no problem.

this is my stateful drawable

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
<item
    android:state_focused="true"
    android:state_pressed="true"
    android:drawable="@drawable/view_background_pressed" />
<item
    android:state_focused="true"
    android:state_pressed="false"
    android:drawable="@drawable/view_background_normal" />
<item
    android:state_focused="false"
    android:state_pressed="true"
    android:drawable="@drawable/view_background_pressed" />
<item
    android:drawable="@drawable/view_background_normal" />
</selector>

the "view_background_pressed" etc are all there, and they can be found in other XML-files but not in the statefule drawable.

Any ideas?

+2  A: 
Christopher
Thx for the answer... However, I have tried to Clean and restart Eclipse - same problem. I also switched to verbose mode, but I cannot see any errors there. Where can I find the android sub console?
Ted
Press Alt+F3, then type Console to bring up the console. Then under the "Display Selected Console" icon (looks like a computer monitor) in the console, choose Android.
Christopher
Hmm, ALT+F# didnt work it seems... Nothing happens =(
Ted
Oooops sorry, it's Alt+3 (I think). I'm on a Mac just now and it's Cmd+3. Or just Window > Show View > Console.
Christopher