See attached patch.
example new code:
How it works:
it takes splashscreen defined in usual splashscreen property and checks for splashscreenType. Default is SPLASHSCREEN_FULLSCREEN which takes classic behaviour (this means: patch is backward compatible)
If splashscreenType equals SPLASHSCREEN_CENTERED then it adds a new ImageView on top of splashDialog and resizes it to fit it by splashscreenResize %.
Background color is untouched from previous code, so you have to set property backgroundColor to have a background different from black.
On device rotation during splashscreen it recalculates resize % with new width and height to always achieve same proportion on screen.