cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-3571) Add support for <splash> elements in config.xml
Date Wed, 23 Jul 2014 10:59:40 GMT


ASF GitHub Bot commented on CB-3571:

Github user Mottokrosh commented on a diff in the pull request:
    --- Diff: docs/en/edge/config_ref/ ---
    @@ -135,118 +135,69 @@ Windows8
     ## Configuring Splash Screens in the CLI
    -Use the Splashscreen API to enable display of an app's introductory
    -splash screen on many platforms.  When working in the CLI, splash
    -screen source files are located within the project's `www/res/screens`
    -Android specifies both portrait- and landscape-oriented splash screen
    -images for low, medium, high, and extra-high resolutions:
    -        android/screen-hdpi-landscape.png
    -        android/screen-hdpi-portrait.png
    -        android/screen-ldpi-landscape.png
    -        android/screen-ldpi-portrait.png
    -        android/screen-mdpi-landscape.png
    -        android/screen-mdpi-portrait.png
    -        android/screen-xhdpi-landscape.png
    -        android/screen-xhdpi-portrait.png
    -The iOS platform specifies variants for iPhone/iPod and iPad, with
    -variants for retina displays and different orientations. The _568h_
    -file applies to the iPhone 5's taller screen:
    -        ios/screen-ipad-landscape-2x.png
    -        ios/screen-ipad-landscape.png
    -        ios/screen-ipad-portrait-2x.png
    -        ios/screen-ipad-portrait.png
    -        ios/screen-iphone-landscape-2x.png
    -        ios/screen-iphone-landscape.png
    -        ios/screen-iphone-portrait-2x.png
    -        ios/screen-iphone-portrait.png
    -        ios/screen-iphone-portrait-568h-2x.png
    -Windows Phone specifies a single splash screen image:
    -        windows-phone/screen-portrait.jpg
    -The following sections detail how to set up splash screens when
    -working with SDKs and related command-line tools described in Platform
    -Don't forget to install the SplashScreen plugin before trying to use the
    -`navigator.splashscreen.hide()` or `` methods.
    -## Splash Screens for the Android Platform
    -Place [9-patch image](
    -files in the Android project's `platforms/android/res/drawable*` directories.
    -The size for each should be:
    -- xlarge (xhdpi): at least 960 &times; 720
    -- large (hdpi): at least 640 &times; 480
    -- medium (mdpi): at least 470 &times; 320
    -- small (ldpi): at least 426 &times; 320
    -When creating a new Android project, the default splash screen images
    -provided in the Cordova sample app should already be present in the
    -`platforms/android/res/drawable*` directories. Feel free to replace these
    -with your own images.
    -When providing your own splash screen images, you do not need to 
    -provide the same permutation of 8 as the Cordova default ones
    -here.  More or less optimization can be used. 
    -The `drawable` directory names must follow the Android conventions for
    -[screen sizes]( and
    -[alternate resources](
    -In the top-level `config.xml` file (not the one in `platforms`), add the
    -following preferences:
    -    <preference name="SplashScreen" value="screen" />
    +In the top-level `config.xml` file (not the one in `platforms`), add configuration elements
like those specified here.
    +# Example configuration 
    +Please notice that the value of the "src" attribute is relative to the project directory
and not to the www directory.
    --- End diff --
    Which directly exactly is this? Where is it in relation to the www directory?

> Add support for <splash> elements in config.xml
> -----------------------------------------------
>                 Key: CB-3571
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Wish
>          Components: CLI
>    Affects Versions: Master
>            Reporter: Michael Brooks
>            Assignee: Lorin Beer
> Similar to adding support for the {{<icon>}} element, we should add support for
the splash screen.

This message was sent by Atlassian JIRA

View raw message