Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.
/ splashscreen Public archive

Android module for quick implementation the branded logo screen

Notifications You must be signed in to change notification settings

mobiledevpro/splashscreen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use:

  • Clone this repository or download zip.
  • Open Android Studio and select File -> New -> Import module -> Select directory "splashscreen".
  • Check dependency in the app/build.gradle or add if there is no it:
dependencies {
   ....

   compile project(':splashscreen');
}
  • include ':splashscreen' into settings.gradle;

  • create activity and include import:

   import com.cdvdev.splashscreen.BaseSplashActivity;
  • extends from BaseSplashActivity;

Example:

public class SplashActivity extends BaseSplashActivity {

    @Override
    public void onRunNextActivity(Activity splashActivityReference) {
        Intent intent = new Intent(splashActivityReference, MainActivity.class);
        startActivity(intent);
        splashActivityReference.finish();
    }

    @Override
    public int getSplashLayoutId() {
        return R.layout.activity_splash;
    }

    @Override
    public int getSplashShowTime() {
        return 2000;
    }
}

About

Android module for quick implementation the branded logo screen

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages