Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Splash Screen for Services Application #302

Open
wants to merge 2 commits into
base: upgrade-jdk11
Choose a base branch
from

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

@@ -110,7 +110,7 @@
<activity
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