[Android-development] Fwd: Nine-Patch Images
Eskil Abrahamsen Blomfeldt
eskil.abrahamsen-blomfeldt at digia.com
Tue Mar 19 09:20:53 CET 2013
On 03/19/2013 09:02 AM, Filip Piechocki wrote:
> Hi!
>
> I want to ask if there would be BorderImage extension supporting
> Android's 9-patch images
> (http://developer.android.com/reference/android/graphics/NinePatch.html ,
> http://developer.android.com/tools/help/draw9patch.html ) ? I need
> such functionality so I would like to know if someone already did it
> maybe in some dev branch, or if not - it would be great to get some
> guidelines on how to extend BorderImage or maybe it would be better to
> have another Item (NinePatchImage ? ) supporting 9 patched images? I
> would love to hear your opinion.
Do you mean supporting the output from the draw9patch tool? I think it
also makes sense for Qt Creator to have a similar tool that allows
designing the nine-patch margins visually.
We are, however, considering the idea of having a separate module
(Qt5AndroidHelpers or something) which contains support for
Android-specific concepts. Having a AndroidBorderImage or something like
that in there, which accepts the output from draw9patch and which simply
instantiates a BorderImage with the correct margins might be a good idea.
-- Eskil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20130319/b0bae4d8/attachment.html>
More information about the Android-development
mailing list