It also works for creating dithered 9-patches:

res/drawable/proxy_nine_patch.xml:
<nine-patch android:src="@drawable/original_nine_patch" android:dither="true" />

j

On Tue, May 5, 2009 at 11:32 AM, Romain Guy <[email protected]> wrote:
>
> It's just a typo. Here's a proxy example:
>
> <bitmap android:src="@drawable/my_png_image" />
>
> Doing so lets you for instance enable or disable dithering using 
> android:dither.
>
> On Tue, May 5, 2009 at 10:25 AM, Ward Willats <[email protected]> wrote:
>>
>> In the "widget design guidelines"  under "widget graphics tips and
>> tricks" is says
>>
>> "In some cases, devices that have low pixel depths that can cause
>> visual banding and dithering issues. To solve this, application
>> developers should pass assets through a "proxy" drawable defined as
>> XML:. This technique references the original artwork, in this case
>> "background.9.png", and instructs the device to dither it as needed."
>>Jus
>> Eh?
>>
>> I mean, I can see an .xml drawable that points to my .png (not sure
>> which type I would use) but I don't understand what this
>> http-method-ish "XML:" syntax is referencing.
>>
>> Can someone elaborate on this whole technique?
>>
>> Thanks
>>
>> -- Ward
>>
>> >
>>
>
>
>
> --
> 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
>
> >
>



-- 
Jeff Sharkey
[email protected]

--~--~---------~--~----~------------~-------~--~----~
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