für die Animation zeigen gefunden, Sie GitHub Bibliothek verwenden können, wenn Sie targetsdkversion
unter 15 ist, was Sie unter Code verwenden können.
private void show(final View view) {
int cx = (view.getLeft() + view.getRight())/2;
int cy = (view.getTop() + view.getBottom())/2;
int finalRadius = Math.max(view.getWidth(), view.getHeight());
Animator anim = ViewAnimationUtils.createCircularReveal(view, cx, cy,
0, finalRadius);
anim.setDuration(1000);
view.setVisibility(View.VISIBLE);
anim.start();
}
private void hide(final View view) {
int cx = (view.getLeft() + view.getRight())/2;
int cy = (view.getTop() + view.getBottom())/2;
int initialRadius = view.getWidth();
Animator anim = ViewAnimationUtils.createCircularReveal(view, cx, cy,
initialRadius, 0);
anim.setDuration(1000);
anim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
view.setVisibility(View.INVISIBLE);
}
});
anim.start();
}
-Link:
https://github.com/HendraAnggrian/reveallayout
http://www.edumobile.org/android/reveal-animation-example-introduced-in-android-5-0/
Check Link [offenbaren-Animations-] (http://www.edumobile.org/android/reveal-animation-example -introduced-in-android-5-0 /) es kann dir helfen –