-
Notifications
You must be signed in to change notification settings - Fork 207
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
✨ Animation was applied to the splash screen. #1050
Conversation
Basically, it is almost the same as last year's implementation.
Hi @Corvus400! Codes seem to be unformatted. To resolve this issue, please run |
…lowing specifications Branded image: this must be 200 x 80 dp.
…he size of the viewport.
<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> |
There was a problem hiding this comment.
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?🤔
android:width="200dp" | ||
android:height="80dp" | ||
android:viewportWidth="200" | ||
android:viewportHeight="80"> |
There was a problem hiding this comment.
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.
<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" | ||
> |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
@Corvus400 |
Does this refer to the screenshot diff? |
@momomomo111 |
class MainActivity : ComponentActivity() { | ||
@OptIn(ExperimentalMaterial3WindowSizeClassApi::class) | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
installSplashScreen() | ||
super.onCreate(savedInstanceState) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM!
I've been wondering why screenshots change. 🤔 |
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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@takahirom |
@takahirom |
There was a problem hiding this 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!
Issue
Overview (Required)
Links
light.mp4
dark.mp4