Step 1.Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.FantasyEngineer:TopActivity:V3.0'
}
//展示
TopActivity.INSTANCE.show(MainActivity.this);
//消失
TopActivity.INSTANCE.dismiss(MainActivity.this);