Library for my most used functions.
Make sure that the repositories section includes JCenter
buildscript {
...
repositories {
jcenter()
maven { url "https://jitpack.io" }
...
}
Add the library to the dependencies:
implementation 'com.github.kojofosu:Lazie-library:${latest-version}'
onCreate()
Splashie.splash(ACTIVITY.this, TARGET_CLASS.class, DURATION_IN_SECONDS);
SplashScreen splashScreen = new SplashScreen(ACTIVITY.this);
splashScreen.createSimpleSplashScreen(R.mipmap.lakes, R.string.title, R.string.message);
splashScreen.setActivityBackgroundColor(R.color.colorPrimaryDark);
SplashScreen splashScreen = new SplashScreen(ACTIVITY.this); //initiating splashscreen or splash view
splashScreen.createSimpleSplashScreen(R.mipmap.lakes, R.string.title, R.string.message); //creating splashscreen
splashScreen.setActivityBackgroundColor(R.color.colorPrimaryDark); //changing background color for splashscreen
Splashie.splash(ACTIVITY.this, TARGET_CLASS.class, 4); //setting duration for splash screen