DELTALABSITE https://www.deltalabsite.com/2019/02/guide-add-splash-screen-on-whatsapp.html

[GUIDE] ADD SPLASH SCREEN ON WHATSAPP | WONKMUMET


1. Create drawable file
  • splash_logo.png
  • splash.xml
for splash.xml fill with this code
<?xml version="1.0" encoding="utf-8"?>
<layer-list
  xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/splash_logo" />
</layer-list>
2. Open AndroidManifest.xml and add this code to activity Main
android:theme="@style/Theme.App.Home.Splash"


Before
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" android:hardwareAccelerated="false" android:label="@string/launcher_app_name" android:name="com.whatsapp.Main">


After
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" android:hardwareAccelerated="false" android:label="@string/launcher_app_name" android:name="com.whatsapp.Main" android:theme="@style/Theme.App.Home.Splash">

3. Add this code to styles.xml
<style name="Theme.App.Home.Splash" parent="@style/Theme.App.Home">
 <item name="android:windowBackground">@drawable/splash</item>
</style>
Guide by WonkMumet

Share this post:

DELTALABS
Posted by: DELTALABS
Label:
Reaksi:

Subscribe to our newsletter

Notification