Implement splash screen with red background to match XML version branding #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎯 Goal
This PR implements the Android 12+ SplashScreen API to provide a consistent branded launch experience that matches the red background theme of the original XML-based Pokédex app. The compose version now has the same visual branding and smooth launch experience as the XML version, ensuring brand consistency across both implementations.
Key objectives:
🛠 Implementation details
core:designsystemmodule for theme accessstyles.xmlAndroidManifest.xmlto use the new splash themeMainActivity.ktwith proper transitionArchitecture decisions:
core:designsystemto keep all themes centralizedapiconfiguration to expose splash functionality to app module✍️ Explain examples
Files modified/added:
1. Dependency addition:
2. Splash theme creation:
3. MainActivity implementation:
4. Manifest configuration:
Visual result:
This implementation ensures that users get the same iconic red Pokédex launch experience whether they're using the XML or Compose version of the app, while leveraging modern Android splash screen capabilities.