Skip to content

Splash screen demo that used with ‘Splash Screen‘ API on Android 12.

License

Notifications You must be signed in to change notification settings

dianlemel/SplashScreen

 
 

Repository files navigation

Splash Screen Feature

Splash screen demo that used with Splash Screen API on Android 12.

📸Screenshot

Complete splash screen effect

在这里插入图片描述

Splash screen with animated icon

android icon rotate animator

在这里插入图片描述

android icon slide animator

在这里插入图片描述

kotlin and android icon compose animator

在这里插入图片描述

Splash screen exit animation by total view

在这里插入图片描述

Splash screen exit animation by icon

在这里插入图片描述

📙 Splash Screen API

Class & Interface

类/接口 作用
SplashScreen 启动画面管理接口,通过Activity#getSplashScreen取得
OnExitAnimationListener 启动画面退出的回调接口,通过SplashScreen#setOnExitAnimationListener注册
SplashScreenView 启动画面包含的视图,用以定制整体或Icon的退出动画

attr

attr 作用 备注
splashScreenTheme 指定SplashScreen相关的Style 指定的style有些问题比如brand图片会不显示
windowSplashScreenBackground 定制启动画面的背景颜色 未设置的话从windowBackground里读取
windowSplashScreenBrandingImage 自定义指定启动画面底部的品牌图标 -
windowSplashScreenAnimatedIcon 指定Icon,支持静态或动画Drawable -
windowSplashScreenAnimationDuration 指定动画Icon的时长 上限为1000ms
windowSplashScreenIconBackgroundColor 补充图标Icon的背景色 -

📙 Reference

New feature:Splash Screen

📙 My blog

https://blog.csdn.net/allisonchen

©️ License

MIT License

Copyright (c) 2021 Ellison Chan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Splash screen demo that used with ‘Splash Screen‘ API on Android 12.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%