[ALOY-1271] Android templates should use nine-patch images
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Samples & Templates |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Feon Sua Xin Miao |
Created | 2015-05-21T07:34:23.000+0000 |
Updated | 2020-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
File | Date | Size |
---|---|---|
Screen Shot 2016-02-01 at 11.39.42 AM.png | 2016-02-01T20:05:03.000+0000 | 74122 |
/cc [~jgo] [~hansknoechel]
[~cng] let's try to do this for 6.0?
[~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?
[~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
[~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.
[~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.
!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]