Because Android device screens are all different, we cannot consider that one splashscreen dimension will fit them all. Currently, the code stretches it, and the image can lose its aspect ratio, which is bad for logo or other graphical designs.
An ImageView is used to be able to use ScaleType.CENTER_CROP, which is similar to the background-size:cover CSS property
Keep the splashscreen image ratio instead of streatching it.
Thanks Steren! I've merged in your change:
And updated the relevant bug: https://issues.apache.org/jira/browse/CB-1367
Please close the pull request.
Thanks for the merge.
I should have searched the bug tracker because the technical solution was given in the description. Instead I investigated for some time before finding the way to solve the problem (using the imageView) :)
This change just got reverted because it broke apps that use 9-patch images for splash screens. If you think there is still merit in this approach, please chime in on https://issues.apache.org/jira/browse/CB-3337