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>WearableListView.ViewHolder</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 184 185<div class="sum-details-links"> 186 187Summary: 188 189 190 191 192 193 194 195 196 <a href="#inhfields">Inherited Fields</a> 197 198 199 200 | <a href="#pubctors">Ctors</a> 201 202 203 204 205 206 207 | <a href="#inhmethods">Inherited Methods</a> 208 209| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 210 211</div><!-- end sum-details-links --> 212</div><!-- end api-info-block --> 213 214<div class="api apilevel-" id="jd-content"> 215 216<!-- ======== START OF CLASS DATA ======== --> 217 218<h1 class="api-title">WearableListView.ViewHolder</h1> 219<p> 220<code class="api-signature"> 221 public 222 static 223 224 225 class 226 WearableListView.ViewHolder 227</code> 228<br> 229 230 231<code class="api-signature"> 232 233 234 235</code> 236 237<code class="api-signature"> 238 239 extends RecyclerView.ViewHolder 240 241 242 243</code> 244 245<code class="api-signature"> 246 247 248 249</code> 250 251</p><table class="jd-inheritance-table"> 252 253 254 <tr> 255 256 <td colspan="3" class="jd-inheritance-class-cell">java.lang.Object 257 </td> 258 </tr> 259 260 261 <tr> 262 263 <td class="jd-inheritance-space"> ↳</td> 264 265 <td colspan="2" class="jd-inheritance-class-cell">android.support.v7.widget.RecyclerView.ViewHolder 266 </td> 267 </tr> 268 269 270 <tr> 271 272 <td class="jd-inheritance-space"> </td> 273 274 <td class="jd-inheritance-space"> ↳</td> 275 276 <td colspan="1" class="jd-inheritance-class-cell">android.support.wearable.view.WearableListView.ViewHolder 277 </td> 278 </tr> 279 280 281</table> 282 283 284 285 286<br><hr> 287 288 289 <p>Wrapper around items displayed in the list view. <code><a href="/reference/android/support/wearable/view/WearableListView.Adapter.html">WearableListView.Adapter</a></code> must return objects that 290 are instances of this class. Consider making the wrapped View implement 291 <code><a href="/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html">WearableListView.OnCenterProximityListener</a></code> if you want to receive a callback when it becomes or 292 ceases to be the central item in the WearableListView. 293</p> 294 295 296 297 298 299 300 301<h2 class="api-section">Summary</h2> 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323<!-- =========== FIELD SUMMARY =========== --> 324<table id="inhfields" class="properties inhtable"> 325<tr><th><h3>Inherited fields</h3></th></tr> 326 327 328 <tr class="api apilevel-" > 329 <td> 330 331 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-fields-android.support.v7.widget.RecyclerView.ViewHolder" class="jd-expando-trigger closed" 332 ><img height="34" id="inherited-fields-android.support.v7.widget.RecyclerView.ViewHolder-trigger" 333 src="/assets/images/styles/disclosure_down.png" 334 class="jd-expando-trigger-img" /></a>From 335 class 336 <code> 337 android.support.v7.widget.RecyclerView.ViewHolder 338 </code> 339 <div id="inherited-fields-android.support.v7.widget.RecyclerView.ViewHolder"> 340 <div id="inherited-fields-android.support.v7.widget.RecyclerView.ViewHolder-list" 341 class="jd-inheritedlinks"> 342 </div> 343 <div id="inherited-fields-android.support.v7.widget.RecyclerView.ViewHolder-summary" style="display: none;"> 344 <table class="jd-sumtable-expando responsive"> 345 346 347 348 <tr class="api apilevel-" > 349 <td><code> 350 public 351 352 final 353 View</code></td> 354 <td width="100%"> 355 <code>itemView</code> 356 <p> 357 358 359</p> 360 </td> 361 </tr> 362 363 364</table> 365 </div> 366 </div> 367 </td></tr> 368 369 370 371 372</table> 373 374 375 376 377<!-- ======== CONSTRUCTOR SUMMARY ======== --> 378<table id="pubctors" class="responsive constructors"> 379<tr><th colspan="2"><h3>Public constructors</h3></th></tr> 380 381 382 383 384 <tr class="api apilevel-" > 385 386 387 <td width="100%"> 388 <code> 389 <a href="/reference/android/support/wearable/view/WearableListView.ViewHolder.html#WearableListView.ViewHolder(android.view.View)">WearableListView.ViewHolder</a>(View itemView) 390 </code> 391 392 </td> 393 </tr> 394 395 396 397</table> 398 399 400 401 402 403 404 405 406 407 408 409<!-- ========== METHOD SUMMARY =========== --> 410<table id="inhmethods" class="methods inhtable"> 411<tr><th><h3>Inherited methods</h3></th></tr> 412 413 414<tr class="api apilevel-" > 415<td colspan="2"> 416 417 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.support.v7.widget.RecyclerView.ViewHolder" class="jd-expando-trigger closed" 418 ><img height="34" id="inherited-methods-android.support.v7.widget.RecyclerView.ViewHolder-trigger" 419 src="/assets/images/styles/disclosure_down.png" 420 class="jd-expando-trigger-img" /></a>From 421class 422<code> 423 424 android.support.v7.widget.RecyclerView.ViewHolder 425 426</code> 427<div id="inherited-methods-android.support.v7.widget.RecyclerView.ViewHolder"> 428 <div id="inherited-methods-android.support.v7.widget.RecyclerView.ViewHolder-list" 429 class="jd-inheritedlinks"> 430 </div> 431 <div id="inherited-methods-android.support.v7.widget.RecyclerView.ViewHolder-summary" style="display: none;"> 432 <table class="jd-sumtable-expando responsive"> 433 434 435 436 437 <tr class="api apilevel-" > 438 439 440 <td><code> 441 442 443 444 final 445 446 int</code> 447 </td> 448 449 <td width="100%"> 450 <code> 451 getAdapterPosition() 452 </code> 453 454 </td> 455 </tr> 456 457 458 459 <tr class="api apilevel-" > 460 461 462 <td><code> 463 464 465 466 final 467 468 long</code> 469 </td> 470 471 <td width="100%"> 472 <code> 473 getItemId() 474 </code> 475 476 </td> 477 </tr> 478 479 480 481 <tr class="api apilevel-" > 482 483 484 <td><code> 485 486 487 488 final 489 490 int</code> 491 </td> 492 493 <td width="100%"> 494 <code> 495 getItemViewType() 496 </code> 497 498 </td> 499 </tr> 500 501 502 503 <tr class="api apilevel-" > 504 505 506 <td><code> 507 508 509 510 final 511 512 int</code> 513 </td> 514 515 <td width="100%"> 516 <code> 517 getLayoutPosition() 518 </code> 519 520 </td> 521 </tr> 522 523 524 525 <tr class="api apilevel-" > 526 527 528 <td><code> 529 530 531 532 final 533 534 int</code> 535 </td> 536 537 <td width="100%"> 538 <code> 539 getOldPosition() 540 </code> 541 542 </td> 543 </tr> 544 545 546 547 <tr class="api apilevel-" > 548 549 550 <td><code> 551 552 553 554 final 555 556 int</code> 557 </td> 558 559 <td width="100%"> 560 <code> 561 getPosition() 562 </code> 563 564 </td> 565 </tr> 566 567 568 569 <tr class="api apilevel-" > 570 571 572 <td><code> 573 574 575 576 final 577 578 boolean</code> 579 </td> 580 581 <td width="100%"> 582 <code> 583 isRecyclable() 584 </code> 585 586 </td> 587 </tr> 588 589 590 591 <tr class="api apilevel-" > 592 593 594 <td><code> 595 596 597 598 final 599 600 void</code> 601 </td> 602 603 <td width="100%"> 604 <code> 605 setIsRecyclable(boolean arg0) 606 </code> 607 608 </td> 609 </tr> 610 611 612 613 <tr class="api apilevel-" > 614 615 616 <td><code> 617 618 619 620 621 622 String</code> 623 </td> 624 625 <td width="100%"> 626 <code> 627 toString() 628 </code> 629 630 </td> 631 </tr> 632 633 634 635 </table> 636 </div> 637</div> 638</td></tr> 639 640 641 642<tr class="api apilevel-" > 643<td colspan="2"> 644 645 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" 646 ><img height="34" id="inherited-methods-java.lang.Object-trigger" 647 src="/assets/images/styles/disclosure_down.png" 648 class="jd-expando-trigger-img" /></a>From 649class 650<code> 651 652 java.lang.Object 653 654</code> 655<div id="inherited-methods-java.lang.Object"> 656 <div id="inherited-methods-java.lang.Object-list" 657 class="jd-inheritedlinks"> 658 </div> 659 <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> 660 <table class="jd-sumtable-expando responsive"> 661 662 663 664 665 <tr class="api apilevel-" > 666 667 668 <td><code> 669 670 671 672 673 674 Object</code> 675 </td> 676 677 <td width="100%"> 678 <code> 679 clone() 680 </code> 681 682 </td> 683 </tr> 684 685 686 687 <tr class="api apilevel-" > 688 689 690 <td><code> 691 692 693 694 695 696 boolean</code> 697 </td> 698 699 <td width="100%"> 700 <code> 701 equals(Object arg0) 702 </code> 703 704 </td> 705 </tr> 706 707 708 709 <tr class="api apilevel-" > 710 711 712 <td><code> 713 714 715 716 717 718 void</code> 719 </td> 720 721 <td width="100%"> 722 <code> 723 finalize() 724 </code> 725 726 </td> 727 </tr> 728 729 730 731 <tr class="api apilevel-" > 732 733 734 <td><code> 735 736 737 738 final 739 740 Class<?></code> 741 </td> 742 743 <td width="100%"> 744 <code> 745 getClass() 746 </code> 747 748 </td> 749 </tr> 750 751 752 753 <tr class="api apilevel-" > 754 755 756 <td><code> 757 758 759 760 761 762 int</code> 763 </td> 764 765 <td width="100%"> 766 <code> 767 hashCode() 768 </code> 769 770 </td> 771 </tr> 772 773 774 775 <tr class="api apilevel-" > 776 777 778 <td><code> 779 780 781 782 final 783 784 void</code> 785 </td> 786 787 <td width="100%"> 788 <code> 789 notify() 790 </code> 791 792 </td> 793 </tr> 794 795 796 797 <tr class="api apilevel-" > 798 799 800 <td><code> 801 802 803 804 final 805 806 void</code> 807 </td> 808 809 <td width="100%"> 810 <code> 811 notifyAll() 812 </code> 813 814 </td> 815 </tr> 816 817 818 819 <tr class="api apilevel-" > 820 821 822 <td><code> 823 824 825 826 827 828 String</code> 829 </td> 830 831 <td width="100%"> 832 <code> 833 toString() 834 </code> 835 836 </td> 837 </tr> 838 839 840 841 <tr class="api apilevel-" > 842 843 844 <td><code> 845 846 847 848 final 849 850 void</code> 851 </td> 852 853 <td width="100%"> 854 <code> 855 wait(long arg0, int arg1) 856 </code> 857 858 </td> 859 </tr> 860 861 862 863 <tr class="api apilevel-" > 864 865 866 <td><code> 867 868 869 870 final 871 872 void</code> 873 </td> 874 875 <td width="100%"> 876 <code> 877 wait(long arg0) 878 </code> 879 880 </td> 881 </tr> 882 883 884 885 <tr class="api apilevel-" > 886 887 888 <td><code> 889 890 891 892 final 893 894 void</code> 895 </td> 896 897 <td width="100%"> 898 <code> 899 wait() 900 </code> 901 902 </td> 903 </tr> 904 905 906 907 </table> 908 </div> 909</div> 910</td></tr> 911 912 913</table> 914 915 916 917<!-- XML Attributes --> 918 919 920<!-- Enum Values --> 921 922 923<!-- Constants --> 924 925 926<!-- Fields --> 927 928 929<!-- Public ctors --> 930 931 932<!-- ========= CONSTRUCTOR DETAIL ======== --> 933<h2 class="api-section">Public constructors</h2> 934 935 936 937<A NAME="WearableListView.ViewHolder(android.view.View)"></A> 938 939<div class="api apilevel-"> 940 <h3 class="api-name">WearableListView.ViewHolder</h3> 941 <div class="api-level"> 942 <div></div> 943 944 945 946 </div> 947<pre class="api-signature no-pretty-print"> 948WearableListView.ViewHolder (View itemView)</pre> 949 950 951 952 953 <p></p> 954 <table class="responsive"> 955 <tr><th colspan=2>Parameters</th></tr> 956 <tr> 957 <td><code>itemView</code></td> 958 <td width="100%"> 959 <code>View</code> 960 <!-- no parameter comment --></td> 961 </tr> 962 </table> 963 964</div> 965 966 967 968 969 970<!-- ========= CONSTRUCTOR DETAIL ======== --> 971<!-- Protected ctors --> 972 973 974 975<!-- ========= METHOD DETAIL ======== --> 976<!-- Public methdos --> 977 978 979 980<!-- ========= METHOD DETAIL ======== --> 981 982 983 984<!-- ========= END OF CLASS DATA ========= --> 985 986</div><!-- end jd-content --> 987 988 989 990<div class="data-reference-resources-wrapper"> 991 992 <ul data-reference-resources> 993 994 995 <li><h2>Interfaces</h2> 996 <ul> 997 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionChooserView.ActionChooserListener.html">ActionChooserView.ActionChooserListener</a></li> 998 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html">DelayedConfirmationView.DelayedConfirmationListener</a></li> 999 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPageOptions.html">GridPageOptions</a></li> 1000 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html">GridPageOptions.BackgroundListener</a></li> 1001 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html">GridViewPager.OnAdapterChangeListener</a></li> 1002 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html">GridViewPager.OnPageChangeListener</a></li> 1003 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html">WatchViewStub.OnLayoutInflatedListener</a></li> 1004 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.ClickListener.html">WearableListView.ClickListener</a></li> 1005 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html">WearableListView.OnCenterProximityListener</a></li> 1006 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnCentralPositionChangedListener.html">WearableListView.OnCentralPositionChangedListener</a></li> 1007 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnScrollListener.html">WearableListView.OnScrollListener</a></li> 1008 </ul> 1009 </li> 1010 1011 <li><h2>Classes</h2> 1012 <ul> 1013 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionChooserView.html">ActionChooserView</a></li> 1014 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionLabel.html">ActionLabel</a></li> 1015 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionPage.html">ActionPage</a></li> 1016 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/BoxInsetLayout.html">BoxInsetLayout</a></li> 1017 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html">BoxInsetLayout.LayoutParams</a></li> 1018 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardFragment.html">CardFragment</a></li> 1019 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardFrame.html">CardFrame</a></li> 1020 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardScrollView.html">CardScrollView</a></li> 1021 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CircledImageView.html">CircledImageView</a></li> 1022 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CircularButton.html">CircularButton</a></li> 1023 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CrossfadeDrawable.html">CrossfadeDrawable</a></li> 1024 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DelayedConfirmationView.html">DelayedConfirmationView</a></li> 1025 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DismissOverlayView.html">DismissOverlayView</a></li> 1026 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DotsPageIndicator.html">DotsPageIndicator</a></li> 1027 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/FragmentGridPagerAdapter.html">FragmentGridPagerAdapter</a></li> 1028 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a></li> 1029 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></li> 1030 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.LayoutParams.html">GridViewPager.LayoutParams</a></li> 1031 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ProgressSpinner.html">ProgressSpinner</a></li> 1032 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html">SimpleAnimatorListener</a></li> 1033 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WatchViewStub.html">WatchViewStub</a></li> 1034 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableFrameLayout.html">WearableFrameLayout</a></li> 1035 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html">WearableFrameLayout.LayoutParams</a></li> 1036 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.html">WearableListView</a></li> 1037 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.Adapter.html">WearableListView.Adapter</a></li> 1038 <li class="selected api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.ViewHolder.html">WearableListView.ViewHolder</a></li> 1039 </ul> 1040 </li> 1041 1042 1043 1044 </ul> 1045 1046</div> 1047 1048 1049 1050</body> 1051</html> 1052