In the build.yml in your application folder there is an entry “name”. This is the display name that the user will see on the device. Example:
name: My Own App
The work with icons and splashes were changed for iOS ans Android since Rhodes 7.0. Drawable resources for these platforms are located in `resourse/ The Rhodes framework continues to support the old way of working with icons and splashes for other platforms. |
If you created an app called testapp
then the folder would be testapp/icon
.
Windows Mobile, Windows: You can add an icon in two formats: icon.png
and icon.ico
.
testapp/ build.yml Rakefile rhoconfig.txt app/ public/ icon/ icon.png icon.ico
Apple has released a lot of devices with varying sizes and you must account for this in building your app by using the following files for their respective devices.
In XCode, these files will be converted to the following file names. also just add the files into the XCode project.
If you choose to manually add the files into your XCode project, you’ll need to also edit your info.plist as such:
<key>UILaunchImages</key> <array> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default-568h</string> <key>UILaunchImageOrientation</key> <string>Portrait</string> <key>UILaunchImageSize</key> <string>{320, 568}</string> </dict> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default-667h</string> <key>UILaunchImageOrientation</key> <string>Portrait</string> <key>UILaunchImageSize</key> <string>{375, 667}</string> </dict> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default-736h</string> <key>UILaunchImageOrientation</key> <string>Portrait</string> <key>UILaunchImageSize</key> <string>{414, 736}</string> </dict> </array>
The application icons and splashes are located in /resources/android/res/drawable[-resolution]
.
For example , the image /resources/android/res/drawable/icon.png
will be used as the application icon.
You can add icon with apppriate resolution to drawable-[resultion]
folders.
Windows Mobile Shell program caches program icons. This cache is cleared only when the device or the simulator is restarted. If you change the icon of your application, you have to restart the device or simulator: uninstall/install is not enough.
The work with icons and splashes were changed for iOS ans Android since Rhodes 7.0. Drawable resources for these platforms are located in `resourse/ The Rhodes framework continues to support the old way of working with icons and splashes for other platforms. |
Rhodes supports the display of a custom “Loading” screen while your application is launching.
/resources/android/res/drawable[-resolution]
/loading.png./resources/ios/Default[-resolution].png
.This screen’s source is the file loading.html, located at
Alternatively, you can replace loading.html with an image named loading.png if you just want a simple image to be displayed.
You can control how image presented by modifying splash_screen options in rhoconfig.txt:
Examples:
Place the splash screen in the center and show it for 5 seconds: :::ruby splash_screen=‘delay=5;center’
Center the splash screen horizontally, scale it vertically to file all available space, and show it for 5 seconds: :::ruby splash_screen=‘delay=5;hcenter;vzoom’
You can customize you loading image (showed on start of application) for each platform by platform suffix:
loading.android.png
loading.iPhone.png
loading.wm.png
If application doesn’t have platform specific loading.png
, then Rhodes will try to load default loading.png
.
For iPhone you may define a set of loading images. See Apple documentation about these images, section Application Launch Images in Build-Time Configuration Details.
If you are building for iPhone using rake commands, place loading.png
to your applications “app” folder. If you created an app called testapp
then the folder would be testapp/app
. Also you can add some additional images for so loading screen look better on different devices:
If you are using xCode to build for iPhone, you should add to your project Default.png image. You can also add some additional images for better work on different devices:
Note: Use rake command “rake build:iphone:setup_xcode_project” to setup the XCode project for changes in the current application (include loading images, icons, etc.)