Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <io.codetail.widget.RevealFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/main_container"
- android:background="@color/red"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <LinearLayout
- android:id="@+id/container2"
- android:layout_width="match_parent"
- android:background="@color/white"
- android:layout_height="match_parent"
- android:orientation="vertical">
- ....
- </LinearLayout>
- @Override
- public void onStart() {
- super.onStart();
- // SupportAnimator animator = ViewAnimationUtils.createCircularReveal(container2, 720, 0, 0, 1386); ->line from onCreateView
- animator.setDuration(500);
- animator.setInterpolator(new AccelerateDecelerateInterpolator());
- animator.start();
- animator.addListener(new SupportAnimator.AnimatorListener() {
- @Override
- public void onAnimationStart() {
- System.out.println("lol222");
- }
- @Override
- public void onAnimationEnd() {
- System.out.println("end");
- }
- @Override
- public void onAnimationCancel() {
- }
- @Override
- public void onAnimationRepeat() {
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement