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

Android SplashScreen: landscape + portrait

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.0.0
    • None
    • cordova-android

    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

            bowserj Joey Robert Bowser
            fabryb Fabrizio Bottino
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: