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

How to center and scale splash screen for logo

1 Answer 181 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JohnVS
Top achievements
Rank 1
JohnVS asked on 24 Jul 2013, 04:12 PM
This is not a support request but rather a description of what we did to solve an issue we had with Icenium Graphite, Android devices, and the splash screen 9 patch image.

We couldn't find any good directions for how to create a splash screen that was only a logo image and not a button. We just wanted our logo centered on the screen (portrait and landscape) with no stretching or anything else going on. Every tutorial I found was on how to get a button to scale, but this obviously didn't help our situation at all. We finally created an instance of a Graphite sample project, which had an Icenium logo that worked as we desired, but there is no documentation on how to get it to work like that, and there's obviously no way (that I could tell) to get access to that image to analyze it.

Finally, I went searching through the sample projects on Github and found the Icenium splash screen image they were using. It is located at:

https://github.com/Icenium/sample-in-app-browser/blob/master/sample-in-app-browser/App_Resources/Android/drawable-nodpi/splashscreen.9.png

After downloading it, I just used the same pixel size that they used and copied the same line patterns they used. After doing this, our splash screen logo now appears centered in the screen and works without stretching on both portrait and landscape modes. I hope our frustration helps someone else!

1 Answer, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 20 Jan 2014, 02:40 PM
Thank you!

From this I learnt not to post black pixels in actual corner positions and that fixed it for me.

Tags
AppBuilder Windows client
Asked by
JohnVS
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Share this question
or