1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119<!DOCTYPE html> 120<html devsite> 121<head> 122 123 124 <meta name="top_category" value="develop" /> 125 126 <meta name="subcategory" value="reference" /> 127 128 129 <meta name="book_path" value="/reference/android/support/wearable/_book.yaml" /> 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145<title>SimpleAnimatorListener</title> 146 147 148</head> 149 150<body class="gc-documentation develop reference api apilevel-"> 151<div id="doc-api-level" class="" style="display:none"></div> 152 153 154 155 156<div id="naMessage"></div> 157 158<div id="api-info-block"> 159<div class="api-level"> 160 161 162 163 164</div> 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183<div class="sum-details-links"> 184 185Summary: 186 187 188 189 190 191 192 193 194 195 <a href="#pubctors">Ctors</a> 196 197 198 199 200 | <a href="#pubmethods">Methods</a> 201 202 203 204 205 | <a href="#inhmethods">Inherited Methods</a> 206 207| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 208 209</div><!-- end sum-details-links --> 210</div><!-- end api-info-block --> 211 212<div class="api apilevel-" id="jd-content"> 213 214<!-- ======== START OF CLASS DATA ======== --> 215 216<h1 class="api-title">SimpleAnimatorListener</h1> 217<p> 218<code class="api-signature"> 219 public 220 221 222 223 class 224 SimpleAnimatorListener 225</code> 226<br> 227 228 229<code class="api-signature"> 230 231 extends Object 232 233 234 235</code> 236 237<code class="api-signature"> 238 239 240 implements 241 242 Animator.AnimatorListener 243 244 245 246</code> 247 248</p><table class="jd-inheritance-table"> 249 250 251 <tr> 252 253 <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object 254 </td> 255 </tr> 256 257 258 <tr> 259 260 <td class="jd-inheritance-space"> ↳</td> 261 262 <td colspan="1" class="jd-inheritance-class-cell">android.support.wearable.view.SimpleAnimatorListener 263 </td> 264 </tr> 265 266 267</table> 268 269 270 271 272<br><hr> 273 274 275 <p>Convenience class for listening for Animator events that implements the AnimatorListener 276 interface and allows extending only methods that are necessary. 277</p> 278 279 280 281 282 283 284 285<h2 class="api-section">Summary</h2> 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309<!-- ======== CONSTRUCTOR SUMMARY ======== --> 310<table id="pubctors" class="responsive constructors"> 311<tr><th colspan="2"><h3>Public constructors</h3></th></tr> 312 313 314 315 316 <tr class="api apilevel-" > 317 318 319 <td width="100%"> 320 <code> 321 <a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html#SimpleAnimatorListener()">SimpleAnimatorListener</a>() 322 </code> 323 324 </td> 325 </tr> 326 327 328 329</table> 330 331 332 333 334 335 336<!-- ========== METHOD SUMMARY =========== --> 337<table id="pubmethods" class="responsive methods"> 338<tr><th colspan="2"><h3>Public methods</h3></th></tr> 339 340 341 342 343 <tr class="api apilevel-" > 344 345 346 <td><code> 347 348 349 350 351 352 void</code> 353 </td> 354 355 <td width="100%"> 356 <code> 357 <a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html#onAnimationCancel(android.animation.Animator)">onAnimationCancel</a>(Animator animator) 358 </code> 359 360 </td> 361 </tr> 362 363 364 365 <tr class="api apilevel-" > 366 367 368 <td><code> 369 370 371 372 373 374 void</code> 375 </td> 376 377 <td width="100%"> 378 <code> 379 <a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html#onAnimationComplete(android.animation.Animator)">onAnimationComplete</a>(Animator animator) 380 </code> 381 382 <p>Called when the animation finishes. 383 384 385</p> 386 387 </td> 388 </tr> 389 390 391 392 <tr class="api apilevel-" > 393 394 395 <td><code> 396 397 398 399 400 401 void</code> 402 </td> 403 404 <td width="100%"> 405 <code> 406 <a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html#onAnimationEnd(android.animation.Animator)">onAnimationEnd</a>(Animator animator) 407 </code> 408 409 </td> 410 </tr> 411 412 413 414 <tr class="api apilevel-" > 415 416 417 <td><code> 418 419 420 421 422 423 void</code> 424 </td> 425 426 <td width="100%"> 427 <code> 428 <a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html#onAnimationRepeat(android.animation.Animator)">onAnimationRepeat</a>(Animator animator) 429 </code> 430 431 </td> 432 </tr> 433 434 435 436 <tr class="api apilevel-" > 437 438 439 <td><code> 440 441 442 443 444 445 void</code> 446 </td> 447 448 <td width="100%"> 449 <code> 450 <a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html#onAnimationStart(android.animation.Animator)">onAnimationStart</a>(Animator animator) 451 </code> 452 453 </td> 454 </tr> 455 456 457 458 <tr class="api apilevel-" > 459 460 461 <td><code> 462 463 464 465 466 467 boolean</code> 468 </td> 469 470 <td width="100%"> 471 <code> 472 <a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html#wasCanceled()">wasCanceled</a>() 473 </code> 474 475 <p>Provides information if the animation was cancelled. 476 477 478</p> 479 480 </td> 481 </tr> 482 483 484 485</table> 486 487 488 489 490 491 492 493<!-- ========== METHOD SUMMARY =========== --> 494<table id="inhmethods" class="methods inhtable"> 495<tr><th><h3>Inherited methods</h3></th></tr> 496 497 498<tr class="api apilevel-" > 499<td colspan="2"> 500 501 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" 502 ><img height="34" id="inherited-methods-java.lang.Object-trigger" 503 src="/assets/images/styles/disclosure_down.png" 504 class="jd-expando-trigger-img" /></a>From 505class 506<code> 507 508 java.lang.Object 509 510</code> 511<div id="inherited-methods-java.lang.Object"> 512 <div id="inherited-methods-java.lang.Object-list" 513 class="jd-inheritedlinks"> 514 </div> 515 <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> 516 <table class="jd-sumtable-expando responsive"> 517 518 519 520 521 <tr class="api apilevel-" > 522 523 524 <td><code> 525 526 527 528 529 530 Object</code> 531 </td> 532 533 <td width="100%"> 534 <code> 535 clone() 536 </code> 537 538 </td> 539 </tr> 540 541 542 543 <tr class="api apilevel-" > 544 545 546 <td><code> 547 548 549 550 551 552 boolean</code> 553 </td> 554 555 <td width="100%"> 556 <code> 557 equals(Object arg0) 558 </code> 559 560 </td> 561 </tr> 562 563 564 565 <tr class="api apilevel-" > 566 567 568 <td><code> 569 570 571 572 573 574 void</code> 575 </td> 576 577 <td width="100%"> 578 <code> 579 finalize() 580 </code> 581 582 </td> 583 </tr> 584 585 586 587 <tr class="api apilevel-" > 588 589 590 <td><code> 591 592 593 594 final 595 596 Class<?></code> 597 </td> 598 599 <td width="100%"> 600 <code> 601 getClass() 602 </code> 603 604 </td> 605 </tr> 606 607 608 609 <tr class="api apilevel-" > 610 611 612 <td><code> 613 614 615 616 617 618 int</code> 619 </td> 620 621 <td width="100%"> 622 <code> 623 hashCode() 624 </code> 625 626 </td> 627 </tr> 628 629 630 631 <tr class="api apilevel-" > 632 633 634 <td><code> 635 636 637 638 final 639 640 void</code> 641 </td> 642 643 <td width="100%"> 644 <code> 645 notify() 646 </code> 647 648 </td> 649 </tr> 650 651 652 653 <tr class="api apilevel-" > 654 655 656 <td><code> 657 658 659 660 final 661 662 void</code> 663 </td> 664 665 <td width="100%"> 666 <code> 667 notifyAll() 668 </code> 669 670 </td> 671 </tr> 672 673 674 675 <tr class="api apilevel-" > 676 677 678 <td><code> 679 680 681 682 683 684 String</code> 685 </td> 686 687 <td width="100%"> 688 <code> 689 toString() 690 </code> 691 692 </td> 693 </tr> 694 695 696 697 <tr class="api apilevel-" > 698 699 700 <td><code> 701 702 703 704 final 705 706 void</code> 707 </td> 708 709 <td width="100%"> 710 <code> 711 wait(long arg0, int arg1) 712 </code> 713 714 </td> 715 </tr> 716 717 718 719 <tr class="api apilevel-" > 720 721 722 <td><code> 723 724 725 726 final 727 728 void</code> 729 </td> 730 731 <td width="100%"> 732 <code> 733 wait(long arg0) 734 </code> 735 736 </td> 737 </tr> 738 739 740 741 <tr class="api apilevel-" > 742 743 744 <td><code> 745 746 747 748 final 749 750 void</code> 751 </td> 752 753 <td width="100%"> 754 <code> 755 wait() 756 </code> 757 758 </td> 759 </tr> 760 761 762 763 </table> 764 </div> 765</div> 766</td></tr> 767 768 769 770<tr class="api apilevel-" > 771<td colspan="2"> 772 773 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.animation.Animator.AnimatorListener" class="jd-expando-trigger closed" 774 ><img height="34" id="inherited-methods-android.animation.Animator.AnimatorListener-trigger" 775 src="/assets/images/styles/disclosure_down.png" 776 class="jd-expando-trigger-img" /></a>From 777interface 778<code> 779 780 android.animation.Animator.AnimatorListener 781 782</code> 783<div id="inherited-methods-android.animation.Animator.AnimatorListener"> 784 <div id="inherited-methods-android.animation.Animator.AnimatorListener-list" 785 class="jd-inheritedlinks"> 786 </div> 787 <div id="inherited-methods-android.animation.Animator.AnimatorListener-summary" style="display: none;"> 788 <table class="jd-sumtable-expando responsive"> 789 790 791 792 793 <tr class="api apilevel-" > 794 795 796 <td><code> 797 abstract 798 799 800 801 802 void</code> 803 </td> 804 805 <td width="100%"> 806 <code> 807 onAnimationCancel(Animator arg0) 808 </code> 809 810 </td> 811 </tr> 812 813 814 815 <tr class="api apilevel-" > 816 817 818 <td><code> 819 abstract 820 821 822 823 824 void</code> 825 </td> 826 827 <td width="100%"> 828 <code> 829 onAnimationEnd(Animator arg0) 830 </code> 831 832 </td> 833 </tr> 834 835 836 837 <tr class="api apilevel-" > 838 839 840 <td><code> 841 abstract 842 843 844 845 846 void</code> 847 </td> 848 849 <td width="100%"> 850 <code> 851 onAnimationRepeat(Animator arg0) 852 </code> 853 854 </td> 855 </tr> 856 857 858 859 <tr class="api apilevel-" > 860 861 862 <td><code> 863 abstract 864 865 866 867 868 void</code> 869 </td> 870 871 <td width="100%"> 872 <code> 873 onAnimationStart(Animator arg0) 874 </code> 875 876 </td> 877 </tr> 878 879 880 881 </table> 882 </div> 883</div> 884</td></tr> 885 886 887</table> 888 889 890 891<!-- XML Attributes --> 892 893 894<!-- Enum Values --> 895 896 897<!-- Constants --> 898 899 900<!-- Fields --> 901 902 903<!-- Public ctors --> 904 905 906<!-- ========= CONSTRUCTOR DETAIL ======== --> 907<h2 class="api-section">Public constructors</h2> 908 909 910 911<A NAME="SimpleAnimatorListener()"></A> 912 913<div class="api apilevel-"> 914 <h3 class="api-name">SimpleAnimatorListener</h3> 915 <div class="api-level"> 916 <div></div> 917 918 919 920 </div> 921<pre class="api-signature no-pretty-print"> 922SimpleAnimatorListener ()</pre> 923 924 925 926 927 <p></p> 928 929</div> 930 931 932 933 934 935<!-- ========= CONSTRUCTOR DETAIL ======== --> 936<!-- Protected ctors --> 937 938 939 940<!-- ========= METHOD DETAIL ======== --> 941<!-- Public methdos --> 942 943<h2 class="api-section">Public methods</h2> 944 945 946 947<A NAME="onAnimationCancel(android.animation.Animator)"></A> 948 949<div class="api apilevel-"> 950 <h3 class="api-name">onAnimationCancel</h3> 951 <div class="api-level"> 952 <div></div> 953 954 955 956 </div> 957<pre class="api-signature no-pretty-print"> 958void onAnimationCancel (Animator animator)</pre> 959 960 961 962 963 <p></p> 964 <table class="responsive"> 965 <tr><th colspan=2>Parameters</th></tr> 966 <tr> 967 <td><code>animator</code></td> 968 <td width="100%"> 969 <code>Animator</code> 970 <!-- no parameter comment --></td> 971 </tr> 972 </table> 973 974</div> 975 976 977<A NAME="onAnimationComplete(android.animation.Animator)"></A> 978 979<div class="api apilevel-"> 980 <h3 class="api-name">onAnimationComplete</h3> 981 <div class="api-level"> 982 <div></div> 983 984 985 986 </div> 987<pre class="api-signature no-pretty-print"> 988void onAnimationComplete (Animator animator)</pre> 989 990 991 992 993 <p>Called when the animation finishes. Not called if the animation was canceled. 994</p> 995 <table class="responsive"> 996 <tr><th colspan=2>Parameters</th></tr> 997 <tr> 998 <td><code>animator</code></td> 999 <td width="100%"> 1000 <code>Animator</code> 1001 <!-- no parameter comment --></td> 1002 </tr> 1003 </table> 1004 1005</div> 1006 1007 1008<A NAME="onAnimationEnd(android.animation.Animator)"></A> 1009 1010<div class="api apilevel-"> 1011 <h3 class="api-name">onAnimationEnd</h3> 1012 <div class="api-level"> 1013 <div></div> 1014 1015 1016 1017 </div> 1018<pre class="api-signature no-pretty-print"> 1019void onAnimationEnd (Animator animator)</pre> 1020 1021 1022 1023 1024 <p></p> 1025 <table class="responsive"> 1026 <tr><th colspan=2>Parameters</th></tr> 1027 <tr> 1028 <td><code>animator</code></td> 1029 <td width="100%"> 1030 <code>Animator</code> 1031 <!-- no parameter comment --></td> 1032 </tr> 1033 </table> 1034 1035</div> 1036 1037 1038<A NAME="onAnimationRepeat(android.animation.Animator)"></A> 1039 1040<div class="api apilevel-"> 1041 <h3 class="api-name">onAnimationRepeat</h3> 1042 <div class="api-level"> 1043 <div></div> 1044 1045 1046 1047 </div> 1048<pre class="api-signature no-pretty-print"> 1049void onAnimationRepeat (Animator animator)</pre> 1050 1051 1052 1053 1054 <p></p> 1055 <table class="responsive"> 1056 <tr><th colspan=2>Parameters</th></tr> 1057 <tr> 1058 <td><code>animator</code></td> 1059 <td width="100%"> 1060 <code>Animator</code> 1061 <!-- no parameter comment --></td> 1062 </tr> 1063 </table> 1064 1065</div> 1066 1067 1068<A NAME="onAnimationStart(android.animation.Animator)"></A> 1069 1070<div class="api apilevel-"> 1071 <h3 class="api-name">onAnimationStart</h3> 1072 <div class="api-level"> 1073 <div></div> 1074 1075 1076 1077 </div> 1078<pre class="api-signature no-pretty-print"> 1079void onAnimationStart (Animator animator)</pre> 1080 1081 1082 1083 1084 <p></p> 1085 <table class="responsive"> 1086 <tr><th colspan=2>Parameters</th></tr> 1087 <tr> 1088 <td><code>animator</code></td> 1089 <td width="100%"> 1090 <code>Animator</code> 1091 <!-- no parameter comment --></td> 1092 </tr> 1093 </table> 1094 1095</div> 1096 1097 1098<A NAME="wasCanceled()"></A> 1099 1100<div class="api apilevel-"> 1101 <h3 class="api-name">wasCanceled</h3> 1102 <div class="api-level"> 1103 <div></div> 1104 1105 1106 1107 </div> 1108<pre class="api-signature no-pretty-print"> 1109boolean wasCanceled ()</pre> 1110 1111 1112 1113 1114 <p>Provides information if the animation was cancelled.</p> 1115 <table class="responsive"> 1116 <tr><th colspan=2>Returns</th></tr> 1117 <tr> 1118 <td><code>boolean</code></td> 1119 <td width="100%">True if animation was cancelled. 1120</td> 1121 </tr> 1122 </table> 1123 1124</div> 1125 1126 1127 1128 1129 1130<!-- ========= METHOD DETAIL ======== --> 1131 1132 1133 1134<!-- ========= END OF CLASS DATA ========= --> 1135 1136</div><!-- end jd-content --> 1137 1138 1139 1140<div class="data-reference-resources-wrapper"> 1141 1142 <ul data-reference-resources> 1143 1144 1145 <li><h2>Interfaces</h2> 1146 <ul> 1147 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionChooserView.ActionChooserListener.html">ActionChooserView.ActionChooserListener</a></li> 1148 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html">DelayedConfirmationView.DelayedConfirmationListener</a></li> 1149 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPageOptions.html">GridPageOptions</a></li> 1150 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html">GridPageOptions.BackgroundListener</a></li> 1151 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html">GridViewPager.OnAdapterChangeListener</a></li> 1152 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html">GridViewPager.OnPageChangeListener</a></li> 1153 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html">WatchViewStub.OnLayoutInflatedListener</a></li> 1154 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.ClickListener.html">WearableListView.ClickListener</a></li> 1155 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html">WearableListView.OnCenterProximityListener</a></li> 1156 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnCentralPositionChangedListener.html">WearableListView.OnCentralPositionChangedListener</a></li> 1157 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnScrollListener.html">WearableListView.OnScrollListener</a></li> 1158 </ul> 1159 </li> 1160 1161 <li><h2>Classes</h2> 1162 <ul> 1163 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionChooserView.html">ActionChooserView</a></li> 1164 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionLabel.html">ActionLabel</a></li> 1165 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionPage.html">ActionPage</a></li> 1166 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/BoxInsetLayout.html">BoxInsetLayout</a></li> 1167 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html">BoxInsetLayout.LayoutParams</a></li> 1168 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardFragment.html">CardFragment</a></li> 1169 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardFrame.html">CardFrame</a></li> 1170 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardScrollView.html">CardScrollView</a></li> 1171 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CircledImageView.html">CircledImageView</a></li> 1172 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CircularButton.html">CircularButton</a></li> 1173 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CrossfadeDrawable.html">CrossfadeDrawable</a></li> 1174 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DelayedConfirmationView.html">DelayedConfirmationView</a></li> 1175 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DismissOverlayView.html">DismissOverlayView</a></li> 1176 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DotsPageIndicator.html">DotsPageIndicator</a></li> 1177 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/FragmentGridPagerAdapter.html">FragmentGridPagerAdapter</a></li> 1178 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a></li> 1179 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></li> 1180 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.LayoutParams.html">GridViewPager.LayoutParams</a></li> 1181 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ProgressSpinner.html">ProgressSpinner</a></li> 1182 <li class="selected api apilevel-"><a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html">SimpleAnimatorListener</a></li> 1183 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WatchViewStub.html">WatchViewStub</a></li> 1184 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableFrameLayout.html">WearableFrameLayout</a></li> 1185 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html">WearableFrameLayout.LayoutParams</a></li> 1186 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.html">WearableListView</a></li> 1187 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.Adapter.html">WearableListView.Adapter</a></li> 1188 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.ViewHolder.html">WearableListView.ViewHolder</a></li> 1189 </ul> 1190 </li> 1191 1192 1193 1194 </ul> 1195 1196</div> 1197 1198 1199 1200</body> 1201</html> 1202