1. 程式人生 > 其它 >Android 開屏動畫 文字版

Android 開屏動畫 文字版

https://github.com/seagazer/animlogoview

implementation 'com.github.seagazer:animlogoview:1.0.1'

maven {
    url 'https://maven.aliyun.com/repository/public'
    name 'replace jcenter() and mavenCentral()'
}
maven {
    url 'https://maven.aliyun.com/repository/jcenter'
    name 'replace jcenter()'
}
maven {
    url 'https://maven.aliyun.com/repository/google'
    name 'replace google()'
}
maven { url "https://jitpack.io" }
google()
jcenter()

 AnimLogoView animLogoView = findViewById(R.id.but);
        animLogoView.addOffsetAnimListener(new AnimatorListenerAdapter() {
            @Override
            public void onAnimationEnd(Animator animation) {
                Log.d("MainActivity", "Offset anim end");
            }
        });
        animLogoView.addGradientAnimListener(new AnimatorListenerAdapter() {
            @Override
            public void onAnimationEnd(Animator animation) {
                Log.d("MainActivity", "Gradient anim end");
            }
        });
        animLogoView.startAnimation();