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

✨ Animation was applied to the splash screen. #1050

Merged

Conversation

Corvus400
Copy link
Contributor

@Corvus400 Corvus400 commented Sep 2, 2023

Issue

Overview (Required)

  • Basically, it is almost the same as last year's implementation.

Links

Light Dark
light.mp4
dark.mp4

Basically, it is almost the same as last year's implementation.
@github-actions
Copy link

github-actions bot commented Sep 2, 2023

Test Results

215 tests   215 ✔️  7m 57s ⏱️
  11 suites      0 💤
  11 files        0

Results for commit 77c4324.

♻️ This comment has been updated with latest results.

@github-actions github-actions bot temporarily deployed to deploygate-distribution September 2, 2023 12:36 Inactive
@github-actions github-actions bot temporarily deployed to deploygate-distribution September 2, 2023 15:48 Inactive
@github-actions
Copy link

github-actions bot commented Sep 3, 2023

Hi @Corvus400! Codes seem to be unformatted. To resolve this issue, please run ./gradlew detekt --auto-correct and fix the results of ./gradlew lintDebug.. Thank you for your contribution.

@github-actions github-actions bot temporarily deployed to deploygate-distribution September 3, 2023 16:40 Inactive
@github-actions github-actions bot temporarily deployed to deploygate-distribution September 6, 2023 14:15 Inactive
…lowing specifications

Branded image: this must be 200 x 80 dp.
@github-actions github-actions bot temporarily deployed to deploygate-distribution September 6, 2023 15:04 Inactive
@Corvus400 Corvus400 changed the title [WIP] ✨ Animation was applied to the splash screen. ✨ Animation was applied to the splash screen. Sep 7, 2023
@Corvus400 Corvus400 marked this pull request as ready for review September 7, 2023 09:41
@Corvus400 Corvus400 requested a review from a team as a code owner September 7, 2023 09:41
<style name="Theme.DroidKaigi.SplashTheme" parent="Theme.SplashScreen">
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon</item>
<item name="windowSplashScreenBackground">@android:color/black</item>
<item name="windowSplashScreenAnimationDuration">5000</item>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would 5,000 milliseconds be long?🤔

Comment on lines +2 to +5
android:width="200dp"
android:height="80dp"
android:viewportWidth="200"
android:viewportHeight="80">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The size of the images in Figma did not meet the requirements if they were imported as is, so the size was manually corrected.

https://developer.android.com/develop/ui/views/launch/splash-screen#dimensions

Branded image: this must be 200×80 dp.

Comment on lines 5 to 15
<vector
android:name="vector"
android:width="108dp"
android:height="108dp"
android:viewportWidth="216"
android:viewportHeight="216">
<group
android:name="group"
android:translateX="52"
android:translateY="52"
>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to manually modify the material provided to me because it was clipped when used as is.

@@ -14,6 +14,7 @@ composeHiltNavigatiaon = "1.0.0"
androidxLifecycle = "2.6.1"
androidxActivity = "1.8.0-alpha07"
androidxFragment = "1.6.1"
androidxSplashScreen = "1.0.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The version is one version up from the previous year.

@github-actions github-actions bot temporarily deployed to deploygate-distribution September 7, 2023 10:18 Inactive
@github-actions github-actions bot temporarily deployed to deploygate-distribution September 7, 2023 16:30 Inactive
@momomomo111
Copy link
Contributor

@Corvus400
I apologize for the delayed response! 🙏
The splash screen implementation is really cool. Thank you!
I can see differences diff outside of the splash screen area. Do you know the reason for this?

@Corvus400
Copy link
Contributor Author

@momomomo111

I can see differences diff outside of the splash screen area. Do you know the reason for this?

Does this refer to the screenshot diff?
I'm not sure on my end, as I believe I implemented the same thing as last year... 🙇

@DroidKaigi DroidKaigi deleted a comment from github-actions bot Sep 9, 2023
@Corvus400
Copy link
Contributor Author

@momomomo111
The results in the screenshot had not changed, so I looked at the documentation and removed the extra description.
80b528c

Comment on lines 27 to 31
class MainActivity : ComponentActivity() {
@OptIn(ExperimentalMaterial3WindowSizeClassApi::class)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
installSplashScreen()
super.onCreate(savedInstanceState)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

@github-actions github-actions bot temporarily deployed to deploygate-distribution September 9, 2023 14:12 Inactive
@github-actions github-actions bot temporarily deployed to deploygate-distribution September 9, 2023 16:02 Inactive
@github-actions github-actions bot temporarily deployed to deploygate-distribution September 10, 2023 03:46 Inactive
Copy link
Contributor

@momomomo111 momomomo111 left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM!

@takahirom
Copy link
Member

I've been wondering why screenshots change. 🤔
Maybe the application theme is used in Robolectric?
If so, we might be able to prevent this by applying the theme for MainActivity. What do you think?

Comment on lines 18 to 27
android:theme="@style/Theme.KaigiApp"
tools:targetApi="tiramisu">
<meta-data
android:name="google_analytics_adid_collection_enabled"
android:value="false" />

<activity
android:name=".MainActivity"
android:exported="true">
android:exported="true"
android:theme="@style/Theme.DroidKaigi.SplashTheme">
<intent-filter>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

@Corvus400
Copy link
Contributor Author

@takahirom
I have added the suggested modifications! 🫡

@github-actions github-actions bot temporarily deployed to deploygate-distribution September 10, 2023 11:08 Inactive
@DroidKaigi DroidKaigi deleted a comment from github-actions bot Sep 10, 2023
@github-actions github-actions bot temporarily deployed to deploygate-distribution September 10, 2023 11:57 Inactive
@github-actions github-actions bot temporarily deployed to deploygate-distribution September 10, 2023 13:59 Inactive
@Corvus400
Copy link
Contributor Author

@takahirom
The screenshot difference no longer occurs successfully.🥳

Copy link
Member

@takahirom takahirom left a comment

Choose a reason for hiding this comment

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

Thanks for implementing this difficult feature!

@takahirom takahirom merged commit 3855375 into DroidKaigi:main Sep 10, 2023
8 checks passed
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.

Make the splash screen more cool
3 participants