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

ASF GitHub Bot commented on CB-10688:
-------------------------------------

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'


> Cordova Plugin Splashscreen Readme must have examples
> -----------------------------------------------------
>
>                 Key: CB-10688
>                 URL: https://issues.apache.org/jira/browse/CB-10688
>             Project: Apache Cordova
>          Issue Type: Task
>            Reporter: Sarangan Rajamanickam
>            Assignee: Sarangan Rajamanickam
>              Labels: Docs-6.x
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to