Alex Talis created CB-8753:
------------------------------

             Summary: Maintain splash screen aspect ratio
                 Key: CB-8753
                 URL: https://issues.apache.org/jira/browse/CB-8753
             Project: Apache Cordova
          Issue Type: Improvement
          Components: Android
    Affects Versions: 3.7.1
         Environment: Android
            Reporter: Alex Talis
             Fix For: 3.8.0, 4.0.0, 3.7.1


I will be submitting a pull request for this enhancement shortly.

Current splash screen scales drawable non-uniformly to fit into splash dialog. 
This approach does not work well for splash screen images that contain scenery 
or text and look bad when aspect ratio is not preserved. Basically, no part of 
such splash screens can be stretched. This enhancement is to add an option to 
maintain aspect ratio of such drawable. Also, with this type of splash screen, 
it is usually necessary to use different images for portrait and landscape 
orientations, so a second part of this enhancement is to add an option to 
reload the drawable when orientation changes.

Examples of the two preferences are shown below. Both are optional and default 
to False to maintain current splash screen behavior.

<preference name="SplashMaintainAspectRatio" value="true"/>
<preference name="SplashReloadOnOrientationChange" value="true"/>



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