bravesofts 14 Posted January 10 (edited) Hey Delphi developers! If you've ever generated Android splash screen images using Delphi IDE and noticed they appear **stretched**, here's a simple way to fix that and ensure your splash image is always **centered without distortion**. ### Steps to Fix It: ) After building your project, go to the following paths where the splash screen files are generated: if your target android system is 64bit: <YourProjectDirectory>\Android64\Debug\<YourProjectName>\res\drawable <YourProjectDirectory>\Android64\Debug\<YourProjectName>\res\drawable-anydpi-v21 or <YourProjectDirectory>\Android\Debug\<YourProjectName>\res\drawable <YourProjectDirectory>\Android\Debug\<YourProjectName>\res\drawable-anydpi-v21 Copy both files **`splash_image_def.xml | splash_image_def-v21.xml`** from this folder and paste it into a new directory in your project (e.g., **`YourProjectDirectory\res\theme`**). 2  Open both files in Delphi IDE and add the following line inside each file: android:scaleType="centerInside" 3 Deployment: Go to Project > Deployment in Delphi IDE. Select all configurations for your target system. Click on the column header "Local Name" to sort the list by name. Scroll down, find the default splash xml files, uncheck them, and replace them with your newly edited files. Don’t forget to set the remote path for the new files according to the unchecked ones.  That’s it! Clean&Rebuild and deploy your project, and you’ll see your splash image properly centered on all devices without any stretching! -------------------------------------------------------------------------------------------------    I hope Embarcadero adds this by default in an upcoming version to fix the issue. ------------------------------------------------------------------------------------------------- Hope this helps, and happy coding! If you have questions, feel free to drop them below.   Edited January 10 by bravesofts add snapshots Share this post Link to post
Remy Lebeau 1456 Posted January 10 19 hours ago, bravesofts said: I hope Embarcadero adds this by default in an upcoming version to fix the issue.  Did you file a report to request it? https://qp.embarcadero.com 1 Share this post Link to post
bravesofts 14 Posted January 10 30 minutes ago, Remy Lebeau said: Did you file a report to request it? Not yet... I wish someone could do it for me. I do have an account there, but the website’s interface is far from user-friendly.!! Share this post Link to post
Remy Lebeau 1456 Posted January 11 4 hours ago, bravesofts said: Not yet... I wish someone could do it for me. I do have an account there, but the website’s interface is far from user-friendly.!! Done RSS-2712: Android Fix Stretched Splash Images 3 Share this post Link to post