Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1271] Android templates should use nine-patch images

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsSamples & Templates
Labelsn/a
ReporterFokke Zandbergen
AssigneeFeon Sua Xin Miao
Created2015-05-21T07:34:23.000+0000
Updated2020-04-27T13:37:34.000+0000

Description

Since both Google and [we](http://docs.appcelerator.com/platform/latest/#!/guide/Icons_and_Splash_Screens-section-29004897_IconsandSplashScreens-Androidsplashscreenconsiderations) recommend using nine-patch for splash images, our templates should do so as well. The new [Alloy](https://github.com/appcelerator/alloy/blob/master/platforms/android/project/app/assets/android/images/res-long-port-hdpi/default.png) splash images would work fine as a nine-patch image as they are.

Attachments

FileDateSize
Screen Shot 2016-02-01 at 11.39.42 AM.png2016-02-01T20:05:03.000+000074122

Comments

  1. Fokke Zandbergen 2016-02-01

    /cc [~jgo] [~hansknoechel]
  2. Fokke Zandbergen 2016-02-01

    [~cng] let's try to do this for 6.0?
  3. Janice Go 2016-02-01

    [~fokkezb] [~hansknoechel] Where may I find the template items mentioned in this ticket? And what's the reasoning behind the 9-patch graphic for a splash screen?
  4. Hans Knöchel 2016-02-01

    [~jgo] The link above is currently broken because of the Alloy repo, but it should work in a few minutes again. 9-patch images are used o have one central logo that can be used across different device screen sizes. it repeats the edges horizontally and vertically to make that possible. More infos: http://developer.android.com/tools/help/draw9patch.html
  5. Fokke Zandbergen 2016-02-01

    [~jgo] You can upload a square image with minimal margin around logo to http://ticons.fokkezb.nl and it will output nine-patch for you. I can also do it for you if you want. You'd probably use the same image as DefaultIcon as well. The reasoning behind wanting to use 9-patch instead is that its best practice according to both Google and [ourselves](http://docs.appcelerator.com/platform/latest/#!/guide/Icons_and_Splash_Screens-section-29004897_IconsandSplashScreens-Androidsplashscreenconsiderations). It prevents that odd screen sizes stretch the image out of aspect ratio and save a lot of Kbs because you need smaller and less number of images.
  6. Janice Go 2016-02-01

    [~hansknoechel] [~fokkezb] Okay, good to know. Is there any specific thing I should be including? The Appcelerator logo will include the "Now Part of Axway" in the graphic, FYI.
  7. Janice Go 2016-02-01

    !Screen Shot 2016-02-01 at 11.39.42 AM.png|thumbnail! Zip file: [https://www.dropbox.com/s/wytkzvbfxdd4p9m/appc_splash.9.zip?dl=0]

JSON Source