Add a Splash Screen to Your Tizen .NET Application
Kangho Hur
Principal Engineer
A splash screen appears instantly while your app launches and is quickly replaced with the app's first screen. Splash screens can be customized based on orientation and resolution.
In this blog, we take a look at how to add splash screens to your Tizen .NET applications.
We'll use the StopWatch sample application for testing. Download the source code here.
Quick Guide
-
Step 1. Edit the
tizen-manifest.xml
file (we recommend you use the XML editor).- The following code adds
<splash-screens>
into the<ui-application>
element. The image file is located inshared/res
.
- For further information, refer to the Attribute Description section.
- The following code adds
-
Step 2. Build, package, and install the application.
-
Step 3. Launch the application.
No splash image | With splash image |
---|---|
The splash screen image is shown only when you launch the application by choosing from an application list, not when launching directly from Visual Studio. Also, it is shown only when the app is launched for the first time. Make sure that the splash image is not shown if the app is running in the background and reactivates, or resumes.
Attribute Description
ui-application
Element
splash-screen-display
Attribute (optional)- Value:
true
orfalse
- Description: Specifies whether or not the splash screen is displayed. The default value is
true
.
- Value:
splash-screen
Element
src
Attribute (mandatory)- Value: The file name of splash image (
*.png
,*.jpg
, or*.edj
) - Description: Specifies the resource file for the splash screen.
- Value: The file name of splash image (
type
Attribute (mandatory)- Value:
img
oredj
- Description: Specifies the resource type.
- Value:
orientation
Attribute (mandatory)- Value:
portrait
orlandscape
- Description: Specifies the orientation of the splash image.
- Value:
dpi
Attribute (optional)- Value:
ldpi
,mdpi
,hdpi
,xhdpi
, orxxhdpi
- Description: Specifies the resource resolution.
- Value:
indicator-display
Attribute (optional)- Value:
true
orfalse
- Description: Specifies whether or not the indicator is displayed while the splash image is showing (mobile only). The default value is
true
.
- Value:
app-control-operation
Attribute (optional)- Value: (string)
- Description: Specifies the specific
app-control
operation. Refer to (https://developer.tizen.org/development/guides/.net-application/application-management/application-controls?langredirect=1) for further information aboutapp-control
operations.
The
<splash-screens>
element can have multiple<splash-screen>
elements.
A splash screen adds a little extra to your already interesting app. With the info in this blog, create your splash screen today!