Multi-resolution splash screen on Android
Someone can help me understand how I can change splash screen for Android in multiresolution?
How I should set it to make it working both with landscape and portrait?
How I should set it to make it working with different resolutions?
Thanks!
4 Answers
-
Accepted Answer
My best advice would be to create a new project using Studio (or Developer, both work in this case). This will create the following directories under
Resources/android/images
.- res-long-land-hdpi
- res-long-land-ldpi
- res-long-port-hdpi
- res-long-port-ldpi
- res-notlong-land-hdpi
- res-notlong-land-ldpi
- res-notlong-land-mdpi
- res-notlong-port-hdpi
- res-notlong-port-ldpi
- res-notlong-port-mdpi
From there, you can simply update the splash screens you want depending on the resolution you want. Here is a more technical explanation from the Android site of what each mode does.
-
Hi Libero, there appears to be an open bug ticket on changing the 'splash screen' for multiple resolutions at: http://jira.appcelerator.org/browse/TIMOB-3516
The link provides information on how to modify the builder.py file to fix the issue.
-
I would like to add something to the fix, I am doing it here because I cannot comment on JIRA :
They say to change "if re.search(pattern, path):" to "if re.search(pattern, path.replace("\", "/")):" \ is an escape character in python, so it should be "if re.search(pattern, path.replace("\", "/")):" 2\ in stead of 1.
The fix worked for me just fine thank's for the usefull post :) -
Look up "9-patch images". In Titanium these will likely not work for stuff inside your app, but they will work in your splash screen.