Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
mobile ruleP2stack specificStack: android
androidsplashstartuptheme
Implement the Android splash via a launcher theme, not a SplashActivity
Use android:windowBackground on the launch theme (or the SplashScreen API) instead of a dedicated SplashActivity that adds a redundant screen and delay.
PR: mobile-mining-2026-06Created: Jul 5, 2026
Bad example
Old codekotlin
| 1 | class SplashActivity : Activity { /* waits, then starts Main */ } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codekotlin
| 1 | <style name="AppTheme.Launcher"><item name="android:windowBackground">@drawable/splash</item></style> |
Explanation (EN)
Objašnjenje (HR)