Skip to content

Conversation

Femimat
Copy link

@Femimat Femimat commented Oct 14, 2024

Fixes odk-x/tool-suite-X#500

This PR adds Splash Screen implementation to the Services Application.

Recordings

android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/ODKX">
android:theme="@style/SplashTheme">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change the complete Services style?

Copy link
Author

@Femimat Femimat Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Redeem-Grimm-Satoshi
The Android documentation recommends setting the Main Activity's theme to the one created specifically for the Splash Screen

This is required because the Splash Screen theme must be applied to the Main Activity to display the Splash Screen when the app launches. After the Splash Screen is dismissed, the Main Activity’s theme will automatically switch to @style/ODKX, as defined by the postSplashScreenTheme attribute within the @style/SplashScreen theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants