From 112ca5fb99b1e0e567ef329a0252dba023d6f17a Mon Sep 17 00:00:00 2001 From: Erisu Date: Tue, 15 Jul 2025 00:56:37 +0900 Subject: [PATCH] doc(android): update embed styling to include showInitialSplashScreen --- .../en/dev/guide/platforms/android/webview.md | 38 +++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/www/docs/en/dev/guide/platforms/android/webview.md b/www/docs/en/dev/guide/platforms/android/webview.md index dcee153b15..0fc2c38732 100644 --- a/www/docs/en/dev/guide/platforms/android/webview.md +++ b/www/docs/en/dev/guide/platforms/android/webview.md @@ -145,18 +145,29 @@ legacy `CordovaActivity` component that pre-dates the 1.9 release. } ``` -3. Setup up the theming for your activity to comply with Cordova. +3. Set up your activity's style to comply with Cordova - As Cordova-Android framework displays a SplashScreen, we will need to update the native app's `themes.xml` to include a SplashScreen theme and `postSplashScreenTheme` for our Cordova activity. + By default, `CordovaActivity` shows an initial splash screen. If this is the desired behavior, your custom activity should define a style in the `android:theme` attribute that inherits from `Theme.SplashScreen.IconBackground`. - **Note:** Since `CordovaActivity` extends `AppCompatActivity`, the `postSplashScreenTheme` that the activity will transition to must inherit from a `Theme.AppCompat.*` style. For example, you can use `Theme.AppCompat.DayNight.NoActionBar` or a custom theme based on it. + Below is an example of what your `` might look like in `AndroidManifest.xml`: - Below is an example and the theme names can be changed to your perfered naming. + **Sample `AndroidManifest.xml` ``:** + + ```xml + + ``` + + Here's the corresponding style in `themes.xml` to match the `android:theme` value. Feel free to rename the style to suit your app. + + **Sample `themes.xml` ` - +