cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nikhilkh <...@git.apache.org>
Subject [GitHub] cordova-plugin-splashscreen pull request: CB-10688:Cordova Plugin ...
Date Tue, 08 Mar 2016 20:20:45 GMT
Github user nikhilkh commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-splashscreen/pull/90#discussion_r55421079
  
    --- Diff: README.md ---
    @@ -44,6 +44,53 @@ Report issues with this plugin on the [Apache Cordova issue tracker][Apache
Cord
     - Windows
     - Browser
     
    +## Example Configuration
    +In the top-level `config.xml` file (not the one in `platforms`), add configuration elements
like those specified here.
    +
    +Please notice that the value of the "src" attribute is relative to the project directory
and not to the www directory. You can name the source image whatever you like. The internal
name in the app is determined by Cordova.
    +
    +    <platform name="android">
    +        <!-- you can use any density that exists in the Android project -->
    +        <splash src="res/screen/android/splash-land-hdpi.png" density="land-hdpi"/>
    +        <splash src="res/screen/android/splash-land-ldpi.png" density="land-ldpi"/>
    +        <splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi"/>
    +        <splash src="res/screen/android/splash-land-xhdpi.png" density="land-xhdpi"/>
    +
    +        <splash src="res/screen/android/splash-port-hdpi.png" density="port-hdpi"/>
    +        <splash src="res/screen/android/splash-port-ldpi.png" density="port-ldpi"/>
    +        <splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi"/>
    +        <splash src="res/screen/android/splash-port-xhdpi.png" density="port-xhdpi"/>
    +    </platform>
    +
    +    <platform name="ios">
    +        <!-- images are determined by width and height. The following are supported
-->
    +        <splash src="res/screen/ios/Default~iphone.png" width="320" height="480"/>
    +        <splash src="res/screen/ios/Default@2x~iphone.png" width="640" height="960"/>
    +        <splash src="res/screen/ios/Default-Portrait~ipad.png" width="768" height="1024"/>
    +        <splash src="res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
    +        <splash src="res/screen/ios/Default-Landscape~ipad.png" width="1024" height="768"/>
    +        <splash src="res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
    +        <splash src="res/screen/ios/Default-568h@2x~iphone.png" width="640" height="1136"/>
    +        <splash src="res/screen/ios/Default-667h.png" width="750" height="1334"/>
    +        <splash src="res/screen/ios/Default-736h.png" width="1242" height="2208"/>
    +        <splash src="res/screen/ios/Default-Landscape-736h.png" width="2208" height="1242"/>
    +    </platform>
    +
    +    <platform name="windows">
    +        <!-- images are determined by width and height. The following are supported
-->
    +        <splash src="res/screen/windows/splashscreen.png" width="620" height="300"/>
    +        <splash src="res/screen/windows/splashscreenphone.png" width="1152" height="1920"/>
    +    </platform>
    +
    +    <platform name="blackberry10">
    +        <!-- Add a rim:splash element for each resolution and locale you wish -->
    +        <!-- http://developer.blackberry.com/html5/documentation/rim_splash_element.html
-->
    +        <rim:splash src="res/screen/windows8/splashscreen.png"/>
    --- End diff --
    
    'windows8' => 'blackberry'


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message