In the last step of the instructions I’m supposed to modify file launch_splash.xml (change <bitmap to <nine-patch) but I can’t find that file, nor any other file containing these tags.
I have used a standard blank angular/capacitor project as a starting point.
Shall I add file launch_splash.xml? If so, where? And shall I refer to this file from other files?
UPDATE: launch_splash.xml is not created when using Capacitor 2.0. However it is when using Capacitor 1.5.1. So the question remains: how to handle this in Capacitor 2.0?
I fixed this. I followed exactly the articled you mentioned, but I kept the names of the files splash.9.png in all the resolutions folders. I deleted the olds splash.png. Build -> Clean Project then I ran again.
Came across the same question while using Capacitor 2.4.2.
Android Studio seems smart enough to understand that splash.9.png is a 9-patch file, so what worked for me was to
Edit: for better results with various screen densities, it’s better to create splash screen 9-patch files for all of the supported dpis (5 atm: mdip, hdpi, xdpi, xxdpi, xxxdpi). This is also covered in the tutorial above, just make sure to pay attention