All Projects → chillibits → splash-screen

chillibits / splash-screen

Licence: MIT license
Android library for getting a nice and simple SlashScreen into your Android app

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to splash-screen

Splashy
Splash screen library for Android
Stars: ✭ 112 (+4.67%)
Mutual labels:  splash, splashscreen
SplashScreen
A demo project showcasing different methods to create splash screen in Android and discusses the details in the companion Medium article.
Stars: ✭ 37 (-65.42%)
Mutual labels:  splash, splashscreen
react-native-boilerplate-starter-app
📱🚀A POWERFUL React Native starter kit to bootstrap the start of your mobile app development
Stars: ✭ 202 (+88.79%)
Mutual labels:  splashscreen
Android-Touch-Helper
开屏跳过-安卓系统的开屏广告自动跳过助手
Stars: ✭ 488 (+356.07%)
Mutual labels:  splash
Python3 Spider
Python爬虫实战 - 模拟登陆各大网站 包含但不限于:滑块验证、拼多多、美团、百度、bilibili、大众点评、淘宝,如果喜欢请start ❤️
Stars: ✭ 2,129 (+1889.72%)
Mutual labels:  splash
BNSBoost
A simple launcher for Blade & Soul patches. Working as of the Fire and Blood game update.
Stars: ✭ 19 (-82.24%)
Mutual labels:  splash
lgcrawl
python+scrapy+splash 爬取拉勾全站职位信息
Stars: ✭ 22 (-79.44%)
Mutual labels:  splash
SplashScreen
Splash screen demo that used with Jetpack ‘SplashScreen‘ library and Android 12's Splash Screen API.
Stars: ✭ 46 (-57.01%)
Mutual labels:  splashscreen
vue-splash
splash plugin for vue js
Stars: ✭ 120 (+12.15%)
Mutual labels:  splash
Bgabanner Android
引导界面滑动导航 + 大于等于1页时无限轮播 + 各种切换动画轮播效果
Stars: ✭ 4,060 (+3694.39%)
Mutual labels:  splash
expo-ticket-app
💎 A React Native ticket app to start learning Expo very quickly with selected libraries 📚
Stars: ✭ 87 (-18.69%)
Mutual labels:  splashscreen
pronhubSpider
pornhubをクロールしているWebHubBotプロジェクトの模倣、効率が遅すぎる、方法を探しています
Stars: ✭ 38 (-64.49%)
Mutual labels:  splash
Splash-Maker
A ⚒️ for making custom SPLASH SCREENS for your device.
Stars: ✭ 32 (-70.09%)
Mutual labels:  splash
React Native Splash Screen
A splash screen for react-native, hide when application loaded ,it works on iOS and Android.
Stars: ✭ 5,038 (+4608.41%)
Mutual labels:  splashscreen
godot-awesome-splash
Collection of splash screens in Godot
Stars: ✭ 137 (+28.04%)
Mutual labels:  splash
DarkModeSplashScreen
A sample app for iOS and Android written in Xamarin.Forms showing how to implement a Splash Page for Dark Mode
Stars: ✭ 28 (-73.83%)
Mutual labels:  splashscreen
ComposeBird
Flappy Bird game
Stars: ✭ 193 (+80.37%)
Mutual labels:  splashscreen
ionic-resource-generator
Painless, Offline First, No Dependency, Ionic resources generator
Stars: ✭ 31 (-71.03%)
Mutual labels:  splash
LoginAndRegistrationWithSocialMedia
Created a Project to design login screen, registration screen, login with google ,slider navigation drawer,dashboard screen login with Facebook using Flutter
Stars: ✭ 82 (-23.36%)
Mutual labels:  splashscreen
SmartPutty
Multi-Tabbed PuTTY written in Java
Stars: ✭ 34 (-68.22%)
Mutual labels:  splash

Android SplashScreen

Codacy Badge Android CI Android Arsenal API PRs Welcome

Android library for getting a nice and simple splash screen into your Android app.

Animated demo

Installation

Up to now, the library is only available on JitPack. Please add this code to your build.gradle file on project level:

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}

To load the library into your project, use this code in the build.gradle file within the app module:

  implementation 'com.github.ChilliBits:splash-screen:1.1.7'

Usage

To use the splash screen, paste this code to the beginning of the onCreate method of the launcher activity of your app. For better performance, we recommend to do this before setContentView().

SplashScreenBuilder.getInstance(this)
    .setVideo(R.raw.splash_animation)
    .setVideoDark(R.raw.splash_animation_dark)
    .setImage(R.drawable.app_icon)
    .show()

Tip: If you want to have a custom activity transition, you can call overridePendingTransition(R.anim.customEnterAnim, R.anim.customExitAnim) after dispatching .show() of the splash screen.

If you want to receive a result from the splash screen, you can override onActivityResult as following:

Kotlin

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
    super.onActivityResult(requestCode, resultCode, data)
    if (requestCode == SplashScreenBuilder.SPLASH_SCREEN_FINISHED) {
        if (resultCode == Activity.RESULT_OK) {
            //SplashScreen finished without manual canceling
        } else if (resultCode == Activity.RESULT_CANCELED) {
            //SplashScreen finished through manual canceling
        }
    }
}

If you want to have a look onto a implemented example in Kotlin, look at the MainActivity.kt file.

Java

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (requestCode == SplashScreenBuilder.SPLASH_SCREEN_FINISHED) {
        if (resultCode == RESULT_OK) {
            //SplashScreen finished without manual canceling
        } else if(resultCode == RESULT_CANCELED) {
            //SplashScreen finished through manual canceling
        }
    }
}

If you want to have a look onto a implemented example in Java, look at the MainActivity.java file.

You can customize the appearance of the SplashScreen using following arguments when building the Activity with SplashScreenBuilder:

Builder method Description of functionality
setVideo(int res_id) Sets the animation video of the SplashScreen. You have to pass this argument, otherwise the app will get an error.
setVideoDark(int res_id) Set the animation video of the Splash Screen for the dark theme.
setImage(int res_id) Sets the image of the SplashScreen, which is displayed when the animation has ended. You have to pass this argument, otherwise the app will get an error.
setTextFadeInDuration(int millis) You can call this method to set the duration of the fade in animation of the title and the subtitle.
setTitle(String title) This method replaces the name of your app, which is the default title of the SplashScreen, with a custom string.
setSubtitle(String title) This method replaces the default subtitle, with a custom string.
skipImage(boolean skip) This opens the ability to skip the image after the video.
skipVideo(boolean skip) This opens the ability to skip the video and display the image directly

Thank you for using the SplashScreen library!

© ChilliBits 2018-2021 (Designed and developed by Marc Auberer)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].