This is a migrated thread and some comments may be shown as answers.

Splash Screen Per Screen Density

6 Answers 202 Views
Google Android
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richardsonke
Top achievements
Rank 1
Richardsonke asked on 28 Aug 2013, 02:50 PM
There is a request in the feedback portal from April (with no response yet) to allow multiple DPI Android splash screens.  I know that using a 9-patch image it's supposed to scale, but if you want a logo or text on your splash screen, you can't allow that section to scale or it can stretch unequally.  With only one 9-patch image allowed, that means that either low DPI devices have the text/logo cut off, or the text/logo is tiny on high DPI devices.  The Cordova documentation states that there should be a splashscreen per screen density.  Any chance this will make it in the next update?  Thanks.

6 Answers, 1 is accepted

Sort by
0
Markus
Top achievements
Rank 2
answered on 30 Aug 2013, 08:36 AM
Dear Richardsonke

I have been strugling with the 9-patch image myself. I though if you set a tranparent border and some black then only one part of the image would strech. I tried different ways to set my black 1px border but had no result.

I must be reading it all wrong. Attached my image.

Anyone can tell me where to set the black pixels if I

1) do not want the text and image to be scaled
2) have all the rest scaling (its only blue)

Markus
0
Steve
Telerik team
answered on 30 Aug 2013, 10:46 AM
Hi guys,

@Keith: According to the Cordova docs which you've referenced, it is recommended that you use a 9-patch image for your splash screen in Android. We've tested the Icenium splashscreen which has both logo and text on devices with low and high DPI and it is scaled properly, so we're not really sure about the unequal stretch you talk about. Anyway since Cordova have this functionality already available, we would introduce UI to set those images through Icenium for subsequent version. For the time being you can manually add those images to your app. To do so, push your app into git repository (e.g. github) and you would have access to the App_Resources folder - add the desired images (should be named splashscreen.png) from the github directly and then pull from Icenium. You're done.
On a side note, the feedback portal gives users the opportunity to provide feedback about our product, no answer is really needed or guaranteed.

@Markus: Android provides tool for creating 9 patch images. One is installed with the Android SDK: http://developer.android.com/tools/help/draw9patch.html.There is also an online version: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/nine-patches.html

Regards,
Steve
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Markus
Top achievements
Rank 2
answered on 30 Aug 2013, 12:44 PM
Dear Steve

Thank's for the links. This also helped me http://radleymarx.com/blog/simple-guide-to-9-patch/

I had to keep the corner pixels transparent and now I simply can create the 9-patch.png in Photoshop.

Markus
0
Owidat
Top achievements
Rank 2
answered on 20 Jan 2014, 10:41 AM
Hi,

Try this : 
http://android-ui-utils.googlecode.com/hg/asset-studio/dist/nine-patches.html

very easy and simple to use, I hope this can help.
0
Markus
Top achievements
Rank 2
answered on 20 Jan 2014, 10:46 AM
Dear Owidat

Thanks for the link.

Markus
0
Steve
Telerik team
answered on 20 Jan 2014, 12:22 PM
Hello,

I've already provided a link to this tool in my last reply in this thread.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Google Android
Asked by
Richardsonke
Top achievements
Rank 1
Answers by
Markus
Top achievements
Rank 2
Steve
Telerik team
Owidat
Top achievements
Rank 2
Share this question
or