[
https://issues.apache.org/jira/browse/CB-11354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-11354.
-----------------------------
Resolution: Won't Do
Closing as won't do since splash screen plugin is now part of cordova-android
and uses the new Android 12 Splash Screen API which doesn't allow this
> Missing documentation for 9-patch splash screens
> ------------------------------------------------
>
> Key: CB-11354
> URL: https://issues.apache.org/jira/browse/CB-11354
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-splashscreen
> Reporter: Simon Williams
> Priority: Minor
> Labels: documentation, triaged
>
> The documentation for cordova-plugin-splashscreen doesn't really explain how
> the image resource paths are defined.
> There are examples given for specific screen sizes like this:
> {code:xml}
> <splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi"/>
> {code}
> - How important is that path? If I change it in the config.xml and move the
> images elsewhere, should it still work?
> - What happens if some image sizes are missing?
> - How can this be used with 9-patch images?
> - How can this be used with a single 9-patch image for all screen sizes,
> rather than specifying multiple images with different densities?
> There is also an undocumented "SplashScreen" preference, which has something
> to do with resource loading but I don't know what.
> Searching around turns up lots of people asking about this but no clear
> answers. The best I have found was
> http://www.bleathem.ca/blog/2015/01/cordova-splashscreen.html, but I haven't
> had much success. In that post the image is placed in
> platforms/android/res/drawable/splash.9.png, but without adding any
> references in the config.xml, so I don't know how it's meant to find the file.
> At the moment I'm really just stabbing in the dark with this. It would be
> really great to have a bit more in-depth documentation explaining how the
> resource loading works and how 9-patch images can be used.
> Thanks.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]