You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Marcel Kinard (JIRA)" <ji...@apache.org> on 2014/08/26 18:01:59 UTC

[jira] [Commented] (CB-7376) PhoneGap/ Cordova 9-patch Image Splash Screen with center Logo?

    [ https://issues.apache.org/jira/browse/CB-7376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14110872#comment-14110872 ] 

Marcel Kinard commented on CB-7376:
-----------------------------------

Changing the priority as this is not a blocker for the general Cordova population.

> PhoneGap/ Cordova 9-patch Image Splash Screen with center Logo?
> ---------------------------------------------------------------
>
>                 Key: CB-7376
>                 URL: https://issues.apache.org/jira/browse/CB-7376
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.5.0
>            Reporter: Michael M
>            Priority: Minor
>
> I use PhoneGap/Cordova to create an Android app with a splash screen that contains a centered logo.
> Here is what I did:
> In my Android Manifest.xml I added
> <preference name="SplashScreen" value="splash" />
> <preference name="SplashScreenDelay" value="5000" />
> Then I used the nine-path image generator here to create the 9-patch images for the splash screen. The purpose is to have a logo centered in the center all the time. When uploading the image it looks like the following. I kept the edit mode "stretch regions".
> The problem is that the splash image is stretched all the time. This means that the logo (the blue box) is disproportioned.
> How can I use 9-patch images as a splash screen on Android such that the logo is always in the center of the screen and not stretched?



--
This message was sent by Atlassian JIRA
(v6.2#6252)