Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2238] iOS: Add 9-patch functionality, as already implemented in Android

GitHub Issuen/a
TypeNew Feature
Resolution Date2011-04-15T03:14:31.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0
Labelsfeature, ios, iphone, release-1.6.0
ReporterRalf Pfeiffer
AssigneeDon Thorp


Don Thorpe mentioned that it would not be too difficult to port to iOS the code for 9-patch that has already been implemented in the Android branch.

For some background reading, see http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch"> 9-patch info and http://developer.android.com/guide/developing/tools/draw9patch.html"> draw9patch tool.

This would obviously make designing layouts for both platforms so much simpler.


  1. Don Thorp 2011-04-15

    Android http://android.git.kernel.org/?p=platform/frameworks/base.git%3Ba=blob%3Bf=tools/aapt/Images.cpp%3Bh=3c471ca76107cc49b5f8e3ca15e87725ed80faf9%3Bhb=HEAD"> source I believe it starts at

       static status_t do_9patch(const char* imageName, image_info* image)
  2. Ralf Pfeiffer 2011-04-15

    Ok, I have talked with our engineers.

    I will accept the triage responsibility.

  3. hal 2011-04-15

    Ralf - what a response!

    You will see from my previous tickets that they are (almost) always valid (or else I rectify them quickly), clearly described, are often validated (and authorised) by speaking directly to a dev and, where appropriate, include the simplest code that will demonstrate the issue, allowing devs to quickly verify the problem and ultimately to test their fix.

    I am aware that users raising LH tickets can potentially increase the workload of the triage, and I appreciate that you currently hold that responsibility. However, in all other respects, cooperating with the community in this type of way can have profound advantages, not least to reduce the workload of trivial tasks for the developers and to allow them to concentrate on the crucial activities on which the success of your company is bound.

    Whether your team decides to prioritise a ticket, or schedule it for a distant product release is obviously at your team's discretion. However, the benefit is that your team is able to rapidly gain a much more comprehensive view of its product than it could otherwise, which is achieved at the expense of some considerable time and effort on my part (in order to do it conscientiously).

    To respond to your points, I do not have helpdesk access, but I have signed an NDA authorised by Jeff Haynie.


  4. Ralf Pfeiffer 2011-04-15

    Hello Hal,

    I have been apprised by Don about your contributions and relationship, and removed my response.

    I am the new Engineering director, and I am learning about our agreements and processes every day.

    We'll consider this feature, and it's timing based on resourcing and time constraints.


  5. hal 2011-04-15

    Thank you for your response, Ralf. I wish you the best in your new role.

  6. Blain Hamon 2011-04-15

    The stretchable image already exists. Instead of breaking up an image into 9 images, use the original image. In cases where you want more than the exact middle to be stretched, use the topCap and leftCap properties.

  7. Lee Morris 2017-03-28

    Closing ticket as invalid.

JSON Source