Display splash ad on Android
A splash ad refers to an advertisement that is displayed along with the app's logo for a short period of about 1 second when the app is first launched. Implement the Adrop SDK's splash ad screen to be the first screen displayed when the app starts, seamlessly exposing the ad before transitioning to the app's main screen. The size of the splash ad is 360dp x 270dp.
Step 1. Add resources
Replace your init activity, unit id
- values/theme.xml
Replace parent to your application theme
- values-v31/theme.xml
Add your logo image to
drawable
and replacewindowSplashScreenAnimatedIcon.
We recommend a logo image size of 288dp x 288dp including the background, with a central logo of 128dp x 128dpReplace
windowSplashScreenBackground
to your splash background color
Step 2. Update Androidmanifest.xml
Androidmanifest.xml
Step 3. Add layout/activity_adrop_splash_ad.xml
layout/activity_adrop_splash_ad.xml
Replace your logo path and background color.
Do not remove
adrop_splash_ad_image
ImageView for splash ad
(Optional) Advanced
Control splash ad in callback function (remote config, etc.)
Stop splash and go to init activity
Last updated