Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1263

Android SplashScreen: landscape + portrait

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:

      Description

      When you start your application helding your device in landscape mode the splash screen image appears stretched.

      Would be nice to be able to set two images to be used as splash screen for portrait and landscape mode. Example:
      super.setIntegerProperty("splashscreen-landscape", R.drawable.splash_l);
      super.setIntegerProperty("splashscreen-portrait", R.drawable.splash_p);
      super.loadUrl("file:///android_asset/www/index.html", 5000);

      Just like you can do in iOS Xcode.

      BTW: got screenshot instruction from http://simonmacdonald.blogspot.it/2012/04/phonegap-android-splashscreen-just-got.html but I couldn't find same information on official phonegap/cordova documentation.

        Attachments

        1. splash_l.png
          187 kB
          Fabrizio Bottino
        2. splash_p.png
          122 kB
          Fabrizio Bottino
        3. splashscreenType.patch
          4 kB
          Fabrizio Bottino
        4. splashscreenType-2.2.0.patch
          4 kB
          Fabrizio Bottino

          Activity

            People

            • Assignee:
              bowserj Joe Bowser
              Reporter:
              fabryb Fabrizio Bottino
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: