Advertisement
Guest User

Untitled

a guest
May 24th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <io.codetail.widget.RevealFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/main_container"
  4. android:background="@color/red"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent">
  7.  
  8. <LinearLayout
  9. android:id="@+id/container2"
  10. android:layout_width="match_parent"
  11. android:background="@color/white"
  12. android:layout_height="match_parent"
  13. android:orientation="vertical">
  14.  
  15. ....
  16. </LinearLayout>
  17.  
  18. @Override
  19. public void onStart() {
  20. super.onStart();
  21. // SupportAnimator animator = ViewAnimationUtils.createCircularReveal(container2, 720, 0, 0, 1386); ->line from onCreateView
  22. animator.setDuration(500);
  23. animator.setInterpolator(new AccelerateDecelerateInterpolator());
  24. animator.start();
  25. animator.addListener(new SupportAnimator.AnimatorListener() {
  26. @Override
  27. public void onAnimationStart() {
  28. System.out.println("lol222");
  29. }
  30.  
  31. @Override
  32. public void onAnimationEnd() {
  33. System.out.println("end");
  34. }
  35.  
  36. @Override
  37. public void onAnimationCancel() {
  38.  
  39. }
  40.  
  41. @Override
  42. public void onAnimationRepeat() {
  43.  
  44. }
  45. });
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement