Lazie-library

Library for my most used functions.

Stars
0

Gradle

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}'

Add these in your launcher activity's onCreate()

Setting timer for your custom splash view

    Splashie.splash(ACTIVITY.this, TARGET_CLASS.class, DURATION_IN_SECONDS);

Using in-built splash screen

  • no need for an XML layout when using this
    SplashScreen splashScreen = new SplashScreen(ACTIVITY.this);
    splashScreen.createSimpleSplashScreen(R.mipmap.lakes, R.string.title, R.string.message);
    splashScreen.setActivityBackgroundColor(R.color.colorPrimaryDark);   

sample

    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
Badges
Extracted from project README
platform