Android 開屏動畫 文字版
阿新 • • 發佈:2020-12-24
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();