diff --git a/android-template/app/src/main/res/drawable/launch_splash.xml b/android-template/app/src/main/res/drawable/launch_splash.xml deleted file mode 100644 index 468688ef6f..0000000000 --- a/android-template/app/src/main/res/drawable/launch_splash.xml +++ /dev/null @@ -1,5 +0,0 @@ - - \ No newline at end of file diff --git a/site/docs-md/apis/splash-screen/index.md b/site/docs-md/apis/splash-screen/index.md index f8e781ec62..c9da143341 100644 --- a/site/docs-md/apis/splash-screen/index.md +++ b/site/docs-md/apis/splash-screen/index.md @@ -132,38 +132,12 @@ These config parameters are available in `capacitor.config.json`: ### Android -If your splash screen images aren't named "splash.png" but for example "screen.png" you have to change `"androidSplashResourceName": "screen"` in `capacitor.config.json` and change the following files in you're Android app as well: +To use splash screen images named something other than `splash.png`, set `androidSplashResourceName` to the new resource name in `capacitor.config.json`. Additionally, in `android/app/src/main/res/values/styles.xml`, change the resource name in the following block: -`android/app/src/main/res/drawable/launch_splash.xml` - -replace -```xml - -``` -with -```xml - -``` - -`android/app/src/main/res/values/styles.xml` - -replace -```xml - -``` -with ```xml - + ``` ## Example Guides