Apache Cordova
  1. Apache Cordova
  2. CB-1263

Android SplashScreen: landscape + portrait

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: 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.

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

        Activity

        Fabrizio Bottino created issue -
        Simon MacDonald made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Joe Bowser [ bowserj ] Simon MacDonald [ macdonst ]
        Resolution Won't Fix [ 2 ]
        Fabrizio Bottino made changes -
        Attachment splash_l.png [ 12541584 ]
        Attachment splash_p.png [ 12541585 ]
        Fabrizio Bottino made changes -
        Comment [ I have attached example images.
        Let's forgive about they gray gradient, and think about a simple logo on white background: I need logo to not stretch or at least to scale keeping proportions (still ugly because of pixelation, but better than pure stretch).
        I cannot find a way with 9 patch images to keep the CENTER part unaltered.

        In iOS I simply put those two images as landscape and portrait splash screens and everything works perfectly!
        I understand there could be a lot of work to implement it, but 9 patch images is simply not the universal answer. ]
        Fabrizio Bottino made changes -
        Resolution Won't Fix [ 2 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Simon MacDonald made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Fabrizio Bottino made changes -
        Attachment splashscreenType.patch [ 12541670 ]
        Fabrizio Bottino made changes -
        Resolution Won't Fix [ 2 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Fabrizio Bottino made changes -
        Attachment splashscreenType-2.2.0.patch [ 12552271 ]
        Joe Bowser made changes -
        Assignee Simon MacDonald [ macdonst ] Joe Bowser [ bowserj ]
        Joe Bowser made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Not A Problem [ 8 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development