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

Brenton Thomas commented on CB-7829:
------------------------------------

I have the same problem and found this on stack overflow - but am not sure 
whether fiddling around with core code - monkey patching things for myself  is 
a good idea or not.

Would be nice to see it fixed - stretched display looks sloppy.

http://stackoverflow.com/questions/14844189/landscape-splash-screen-for-android-in-phonegap-build


".......Then put this in your main Activity class that extends DroidGap.java:

@Override
public void onConfigurationChanged(Configuration newConfig) {
    super.onConfigurationChanged(newConfig);

    if (super.splashDialog != null) {
        ViewGroup rootView = (ViewGroup) super.splashDialog.getWindow()
                .getDecorView().findViewById(android.R.id.content);
        LinearLayout linearLayout = (LinearLayout) rootView.getChildAt(0);
        // manually refresh the splash image
        linearLayout.setBackgroundDrawable(null);
        linearLayout.setBackgroundResource(R.drawable.mysplash);
    }
}

"

> Splash screen not change image on rotation
> ------------------------------------------
>
>                 Key: CB-7829
>                 URL: https://issues.apache.org/jira/browse/CB-7829
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin SplashScreen
>         Environment: Android
>            Reporter: Riccardo Bianconi
>            Priority: Minor
>              Labels: orientation, orientationchange, splashscreen
>
> I have an android app with different splash screens based on dpi and 
> orientation.
> When I launch the app the correct dpi and orientation is selected: if I start 
> in portrait it starts with the portrait version, if I start in landscape it 
> starts with the landscape version.
> But if I start in portrait and rotate the device during splash screen, the 
> image rotates but it not swap to landscape version, simply stretch the 
> portrait image to fit width and height.



--
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