You end up with two resources with the same name. Both background.png
and background.9.png will generate a resource called "background." You
need to have different names.

On Tue, Apr 13, 2010 at 11:35 AM, Fred Grott(Android Expert,
http://mobilebytes.wordpress.com) <[email protected]> wrote:
> What ADT version? Is that version 0.96?
>
> On Apr 6, 5:42 pm, BrooksT <[email protected]> wrote:
>> Help! I'm working to convert some background images to nine patch so
>> they scale better on different phones.
>>
>> The problem is that if I have the following resource structure:
>>
>> drawable-hdpi/background.png
>> drawable-hdpi/button.png
>> drawable-mdpi/background.png
>> drawable-mdpi/button.png
>> drawable-ldpi/background.png
>> drawable-ldpi/button.png
>>
>> ...and then I drop a new drawable-hdpi/background.9.png file into the
>> mix, it breaks button.png during the pre-compile.  The error is "No
>> resource found that matches the given name (at 'background' with value
>> '@drawable/button').    main.xml        /test/res/layout        line 71 
>> Android AAPT
>> Problem"
>>
>> Simply removing that one nine patch file fixes the build.
>>
>> Should I be able to have some nine patch images and some normal ones,
>> or to have nine patch only in hdpi but not mdpi or ldpi?
>>
>> This is Eclipse 3.5.1 with the latest ADT.
>>
>> Thanks!
>> -Brooks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to