1<!DOCTYPE html> 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<html> 102<head> 103 104 105<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 106<meta name="viewport" content="width=device-width" /> 107 108<link rel="shortcut icon" type="image/x-icon" href="../../../../../favicon.ico" /> 109<title>WearableListView.ViewHolder | Android Developers</title> 110 111<!-- STYLESHEETS --> 112<link rel="stylesheet" 113href="http://fonts.googleapis.com/css?family=Roboto+Condensed"> 114<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold" 115 title="roboto"> 116<link href="../../../../../assets/css/default.css?v=4" rel="stylesheet" type="text/css"> 117 118 119<!-- FULLSCREEN STYLESHEET --> 120<link href="../../../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen" 121type="text/css"> 122 123 124<!-- JAVASCRIPT --> 125<script src="http://www.google.com/jsapi" type="text/javascript"></script> 126<script src="../../../../../assets/js/android_3p-bundle.js" type="text/javascript"></script> 127<script type="text/javascript"> 128 var toRoot = "../../../../../"; 129 var metaTags = []; 130 var devsite = false; 131</script> 132<script src="../../../../../assets/js/docs.js?v=3" type="text/javascript"></script> 133 134 135 136<script> 137 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 138 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 139 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 140 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 141 142 ga('create', 'UA-5831155-1', 'android.com'); 143 ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker); 144 ga('send', 'pageview'); 145 ga('universal.send', 'pageview'); // Send page view for new tracker. 146</script> 147 148</head> 149 150<body class="gc-documentation 151 develop reference" itemscope itemtype="http://schema.org/Article"> 152 <div id="doc-api-level" class="" style="display:none"></div> 153 <a name="top"></a> 154 155 156<a name="top"></a> 157 158<!-- dialog to prompt lang pref change when loaded from hardcoded URL 159<div id="langMessage" style="display:none"> 160 <div> 161 <div class="lang en"> 162 <p>You requested a page in English, would you like to proceed with this language setting?</p> 163 </div> 164 <div class="lang es"> 165 <p>You requested a page in Spanish (Español), would you like to proceed with this language setting?</p> 166 </div> 167 <div class="lang ja"> 168 <p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</p> 169 </div> 170 <div class="lang ko"> 171 <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p> 172 </div> 173 <div class="lang ru"> 174 <p>You requested a page in Russian (Русский), would you like to proceed with this language setting?</p> 175 </div> 176 <div class="lang zh-cn"> 177 <p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language setting?</p> 178 </div> 179 <div class="lang zh-tw"> 180 <p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this language setting?</p> 181 </div> 182 <a href="#" class="button yes" onclick="return false;"> 183 <span class="lang en">Yes</span> 184 <span class="lang es">Sí</span> 185 <span class="lang ja">Yes</span> 186 <span class="lang ko">Yes</span> 187 <span class="lang ru">Yes</span> 188 <span class="lang zh-cn">是的</span> 189 <span class="lang zh-tw">没有</span> 190 </a> 191 <a href="#" class="button" onclick="$('#langMessage').hide();return false;"> 192 <span class="lang en">No</span> 193 <span class="lang es">No</span> 194 <span class="lang ja">No</span> 195 <span class="lang ko">No</span> 196 <span class="lang ru">No</span> 197 <span class="lang zh-cn">没有</span> 198 <span class="lang zh-tw">没有</span> 199 </a> 200 </div> 201</div> --> 202 203 204 <!-- Header --> 205 <div id="header-wrapper"> 206 <div id="header"> 207 208 209 210 211 <div class="wrap" id="header-wrap"> 212 <div class="col-3 logo"> 213 <a href="../../../../../index.html"> 214 <img src="../../../../../assets/images/dac_logo.png" 215 srcset="../../../../../assets/images/dac_logo@2x.png 2x" 216 width="123" height="25" alt="Android Developers" /> 217 </a> 218 <div class="btn-quicknav" id="btn-quicknav"> 219 <a href="#" class="arrow-inactive">Quicknav</a> 220 <a href="#" class="arrow-active">Quicknav</a> 221 </div> 222 </div> 223 <ul class="nav-x col-9"> 224 <li class="design"> 225 <a href="../../../../../design/index.html" 226 zh-tw-lang="設計" 227 zh-cn-lang="设计" 228 ru-lang="Проектирование" 229 ko-lang="디자인" 230 ja-lang="設計" 231 es-lang="Diseñar" 232 >Design</a></li> 233 <li class="develop"><a href="../../../../../develop/index.html" 234 zh-tw-lang="開發" 235 zh-cn-lang="开发" 236 ru-lang="Разработка" 237 ko-lang="개발" 238 ja-lang="開発" 239 es-lang="Desarrollar" 240 >Develop</a></li> 241 <li class="distribute last"><a href="../../../../../distribute/googleplay/index.html" 242 zh-tw-lang="發佈" 243 zh-cn-lang="分发" 244 ru-lang="Распространение" 245 ko-lang="배포" 246 ja-lang="配布" 247 es-lang="Distribuir" 248 >Distribute</a></li> 249 </ul> 250 251 252 253 254<div class="menu-container"> 255 <div class="moremenu"> 256 <div id="more-btn"></div> 257 </div> 258 <div class="morehover" id="moremenu"> 259 <div class="top"></div> 260 <div class="mid"> 261 <div class="header">Links</div> 262 <ul> 263 <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li> 264 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> 265 <li><a href="../../../../../about/index.html">About Android</a></li> 266 </ul> 267 <div class="header">Android Sites</div> 268 <ul> 269 <li><a href="http://www.android.com">Android.com</a></li> 270 <li class="active"><a>Android Developers</a></li> 271 <li><a href="http://source.android.com">Android Open Source Project</a></li> 272 </ul> 273 274 275 276 277 <br class="clearfix" /> 278 </div><!-- end 'mid' --> 279 <div class="bottom"></div> 280 </div><!-- end 'moremenu' --> 281 282 <div class="search" id="search-container"> 283 <div class="search-inner"> 284 <div id="search-btn"></div> 285 <div class="left"></div> 286 <form onsubmit="return submit_search()"> 287 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" 288 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" 289 onkeydown="return search_changed(event, true, '../../../../../')" 290 onkeyup="return search_changed(event, false, '../../../../../')" /> 291 </form> 292 <div class="right"></div> 293 <a class="close hide">close</a> 294 <div class="left"></div> 295 <div class="right"></div> 296 </div><!-- end search-inner --> 297 </div><!-- end search-container --> 298 299 <div class="search_filtered_wrapper reference"> 300 <div class="suggest-card reference no-display"> 301 <ul class="search_filtered"> 302 </ul> 303 </div> 304 </div> 305 306 <div class="search_filtered_wrapper docs"> 307 <div class="suggest-card dummy no-display"> </div> 308 <div class="suggest-card develop no-display"> 309 <ul class="search_filtered"> 310 </ul> 311 <div class="child-card guides no-display"> 312 </div> 313 <div class="child-card training no-display"> 314 </div> 315 <div class="child-card samples no-display"> 316 </div> 317 </div> 318 <div class="suggest-card design no-display"> 319 <ul class="search_filtered"> 320 </ul> 321 </div> 322 <div class="suggest-card distribute no-display"> 323 <ul class="search_filtered"> 324 </ul> 325 </div> 326 </div> 327</div><!-- end menu-container (search and menu widget) --> 328 329 330 331 <!-- Expanded quicknav --> 332 <div id="quicknav" class="col-13"> 333 <ul> 334 <li class="about"> 335 <ul> 336 <li><a href="../../../../../about/index.html">About</a></li> 337 <li><a href="../../../../../wear/index.html">Wear</a></li> 338 <li><a href="../../../../../tv/index.html">TV</a></li> 339 <li><a href="../../../../../auto/index.html">Auto</a></li> 340 </ul> 341 </li> 342 <li class="design"> 343 <ul> 344 <li><a href="../../../../../design/index.html">Get Started</a></li> 345 <li><a href="../../../../../design/devices.html">Devices</a></li> 346 <li><a href="../../../../../design/style/index.html">Style</a></li> 347 <li><a href="../../../../../design/patterns/index.html">Patterns</a></li> 348 <li><a href="../../../../../design/building-blocks/index.html">Building Blocks</a></li> 349 <li><a href="../../../../../design/downloads/index.html">Downloads</a></li> 350 <li><a href="../../../../../design/videos/index.html">Videos</a></li> 351 </ul> 352 </li> 353 <li class="develop"> 354 <ul> 355 <li><a href="../../../../../training/index.html" 356 zh-tw-lang="訓練課程" 357 zh-cn-lang="培训" 358 ru-lang="Курсы" 359 ko-lang="교육" 360 ja-lang="トレーニング" 361 es-lang="Capacitación" 362 >Training</a></li> 363 <li><a href="../../../../../guide/index.html" 364 zh-tw-lang="API 指南" 365 zh-cn-lang="API 指南" 366 ru-lang="Руководства по API" 367 ko-lang="API 가이드" 368 ja-lang="API ガイド" 369 es-lang="Guías de la API" 370 >API Guides</a></li> 371 <li><a href="../../../../../reference/packages.html" 372 zh-tw-lang="參考資源" 373 zh-cn-lang="参考" 374 ru-lang="Справочник" 375 ko-lang="참조문서" 376 ja-lang="リファレンス" 377 es-lang="Referencia" 378 >Reference</a></li> 379 <li><a href="../../../../../sdk/index.html" 380 zh-tw-lang="相關工具" 381 zh-cn-lang="工具" 382 ru-lang="Инструменты" 383 ko-lang="도구" 384 ja-lang="ツール" 385 es-lang="Herramientas" 386 >Tools</a> 387 </li> 388 <li><a href="../../../../../google/index.html">Google Services</a> 389 </li> 390 391 </ul> 392 </li> 393 <li class="distribute last"> 394 <ul> 395 <li><a href="../../../../../distribute/googleplay/index.html">Google Play</a></li> 396 <li><a href="../../../../../distribute/essentials/index.html">Essentials</a></li> 397 <li><a href="../../../../../distribute/users/index.html">Get Users</a></li> 398 <li><a href="../../../../../distribute/engage/index.html">Engage & Retain</a></li> 399 <li><a href="../../../../../distribute/monetize/index.html">Monetize</a></li> 400 <li><a href="../../../../../distribute/tools/index.html">Tools & Reference</a></li> 401 <li><a href="../../../../../distribute/stories/index.html">Developer Stories</a></li> 402 </ul> 403 </li> 404 </ul> 405 </div><!-- /Expanded quicknav --> 406 </div><!-- end header-wrap.wrap --> 407 </div><!-- end header --> 408 409 410 <!-- Secondary x-nav --> 411 <div id="nav-x"> 412 <div class="wrap" style="position:relative;z-index:1"> 413 414 415 416 <a id="helpoutsLink" class="resource resource-card resource-card-6x2x3 resource-card-6x2 helpouts-card" 417 href="http://helpouts.google.com/partner/landing/provider/googledevelopers?utm_source=dac&utm_medium=banner&utm_campaign=android_provider_banner3" target="_blank"> 418 <div class="card-bg helpouts-card-bg"></div> 419 <div class="card-info"> 420 <div class="helpouts-description"> 421 <div class="text">Help Android Wear and TV developers<br/> 422 <span id="helpoutsLinkText" class="link-color" 423 style="display:block;padding-top:5px;text-align:right">Learn more</span> 424 </div> 425 </div> 426 </div> 427 </a> 428 429 430 431 <ul class="nav-x col-9 develop" style="width:100%"> 432 <li class="training"><a href="../../../../../training/index.html" 433 zh-tw-lang="訓練課程" 434 zh-cn-lang="培训" 435 ru-lang="Курсы" 436 ko-lang="교육" 437 ja-lang="トレーニング" 438 es-lang="Capacitación" 439 >Training</a></li> 440 <li class="guide"><a href="../../../../../guide/index.html" 441 zh-tw-lang="API 指南" 442 zh-cn-lang="API 指南" 443 ru-lang="Руководства по API" 444 ko-lang="API 가이드" 445 ja-lang="API ガイド" 446 es-lang="Guías de la API" 447 >API Guides</a></li> 448 <li class="reference"><a href="../../../../../reference/packages.html" 449 zh-tw-lang="參考資源" 450 zh-cn-lang="参考" 451 ru-lang="Справочник" 452 ko-lang="참조문서" 453 ja-lang="リファレンス" 454 es-lang="Referencia" 455 >Reference</a></li> 456 <li class="tools"><a href="../../../../../sdk/index.html" 457 zh-tw-lang="相關工具" 458 zh-cn-lang="工具" 459 ru-lang="Инструменты" 460 ko-lang="도구" 461 ja-lang="ツール" 462 es-lang="Herramientas" 463 >Tools</a></li> 464 <li class="google"><a href="../../../../../google/index.html" 465 >Google Services</a> 466 </li> 467 468 </ul> 469 </div> 470 </div> 471 <!-- /Sendondary x-nav DEVELOP --> 472 473 474 475 <div id="searchResults" class="wrap" style="display:none;"> 476 <h2 id="searchTitle">Results</h2> 477 <div id="leftSearchControl" class="search-control">Loading...</div> 478 </div> 479 </div> <!--end header-wrapper --> 480 481 <div id="sticky-header"> 482 <div> 483 <a class="logo" href="#top"></a> 484 <a class="top" href="#top"></a> 485 <ul class="breadcrumb"> 486 487 <li class="current">WearableListView.ViewHolder</li> 488 </ul> 489 </div> 490 </div> 491 492 493 494 495 496 <div class="wrap clearfix" id="body-content"> 497 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 498 <div id="devdoc-nav"> 499 <div id="api-nav-header"> 500 <div id="api-level-toggle"> 501 <label for="apiLevelCheckbox" class="disabled" 502 title="Select your target API level to dim unavailable APIs">API level: </label> 503 <div class="select-wrapper"> 504 <select id="apiLevelSelector"> 505 <!-- option elements added by buildApiLevelSelector() --> 506 </select> 507 </div> 508 </div><!-- end toggle --> 509 <div id="api-nav-title">Android APIs</div> 510 </div><!-- end nav header --> 511 <script> 512 var SINCE_DATA = [ ]; 513 buildApiLevelSelector(); 514 </script> 515 516 <div id="swapper"> 517 <div id="nav-panels"> 518 <div id="resize-packages-nav"> 519 <div id="packages-nav" class="scroll-pane"> 520 521 <ul> 522 523 <li class="api apilevel-"> 524 <a href="../../../../../reference/android/support/wearable/package-summary.html">android.support.wearable</a></li> 525 <li class="api apilevel-"> 526 <a href="../../../../../reference/android/support/wearable/activity/package-summary.html">android.support.wearable.activity</a></li> 527 <li class="api apilevel-"> 528 <a href="../../../../../reference/android/support/wearable/companion/package-summary.html">android.support.wearable.companion</a></li> 529 <li class="api apilevel-"> 530 <a href="../../../../../reference/android/support/wearable/provider/package-summary.html">android.support.wearable.provider</a></li> 531 <li class="selected api apilevel-"> 532 <a href="../../../../../reference/android/support/wearable/view/package-summary.html">android.support.wearable.view</a></li> 533 <li class="api apilevel-"> 534 <a href="../../../../../reference/android/support/wearable/watchface/package-summary.html">android.support.wearable.watchface</a></li> 535 </ul><br/> 536 537 </div> <!-- end packages-nav --> 538 </div> <!-- end resize-packages --> 539 <div id="classes-nav" class="scroll-pane"> 540 541 542 543 <ul> 544 545 546 <li><h2>Interfaces</h2> 547 <ul> 548 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html">DelayedConfirmationView.DelayedConfirmationListener</a></li> 549 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridPageOptions.html">GridPageOptions</a></li> 550 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html">GridPageOptions.BackgroundListener</a></li> 551 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html">GridViewPager.OnAdapterChangeListener</a></li> 552 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html">GridViewPager.OnPageChangeListener</a></li> 553 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html">WatchViewStub.OnLayoutInflatedListener</a></li> 554 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.ClickListener.html">WearableListView.ClickListener</a></li> 555 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html">WearableListView.OnCenterProximityListener</a></li> 556 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnScrollListener.html">WearableListView.OnScrollListener</a></li> 557 </ul> 558 </li> 559 560 <li><h2>Classes</h2> 561 <ul> 562 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/BoxInsetLayout.html">BoxInsetLayout</a></li> 563 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html">BoxInsetLayout.LayoutParams</a></li> 564 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CardFragment.html">CardFragment</a></li> 565 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CardFrame.html">CardFrame</a></li> 566 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CardScrollView.html">CardScrollView</a></li> 567 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CircledImageView.html">CircledImageView</a></li> 568 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CrossfadeDrawable.html">CrossfadeDrawable</a></li> 569 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DelayedConfirmationView.html">DelayedConfirmationView</a></li> 570 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DismissOverlayView.html">DismissOverlayView</a></li> 571 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DotsPageIndicator.html">DotsPageIndicator</a></li> 572 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/FragmentGridPagerAdapter.html">FragmentGridPagerAdapter</a></li> 573 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a></li> 574 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></li> 575 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.LayoutParams.html">GridViewPager.LayoutParams</a></li> 576 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/SimpleAnimatorListener.html">SimpleAnimatorListener</a></li> 577 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WatchViewStub.html">WatchViewStub</a></li> 578 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.html">WearableListView</a></li> 579 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.Adapter.html">WearableListView.Adapter</a></li> 580 <li class="selected api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.ViewHolder.html">WearableListView.ViewHolder</a></li> 581 </ul> 582 </li> 583 584 585 586 </ul><br/> 587 588 589 </div><!-- end classes --> 590 </div><!-- end nav-panels --> 591 <div id="nav-tree" style="display:none" class="scroll-pane"> 592 <div id="tree-list"></div> 593 </div><!-- end nav-tree --> 594 </div><!-- end swapper --> 595 <div id="nav-swap"> 596 <a class="fullscreen">fullscreen</a> 597 <a href='#' onclick='swapNav();return false;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a> 598 </div> 599 </div> <!-- end devdoc-nav --> 600 </div> <!-- end side-nav --> 601 <script type="text/javascript"> 602 // init fullscreen based on user pref 603 var fullscreen = readCookie("fullscreen"); 604 if (fullscreen != 0) { 605 if (fullscreen == "false") { 606 toggleFullscreen(false); 607 } else { 608 toggleFullscreen(true); 609 } 610 } 611 // init nav version for mobile 612 if (isMobile) { 613 swapNav(); // tree view should be used on mobile 614 $('#nav-swap').hide(); 615 } else { 616 chooseDefaultNav(); 617 if ($("#nav-tree").is(':visible')) { 618 init_default_navtree("../../../../../"); 619 } 620 } 621 // scroll the selected page into view 622 $(document).ready(function() { 623 scrollIntoView("packages-nav"); 624 scrollIntoView("classes-nav"); 625 }); 626 </script> 627 628 629 630 631 632<div class="col-12" id="doc-col"> 633 634<div id="api-info-block"> 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655<div class="sum-details-links"> 656 657Summary: 658 659 660 661 662 663 664 665 666 <a href="#inhfields">Inherited Fields</a> 667 668 669 670 | <a href="#pubctors">Ctors</a> 671 672 673 674 675 676 677 | <a href="#inhmethods">Inherited Methods</a> 678 679| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 680 681</div><!-- end sum-details-links --> 682<div class="api-level"> 683 684 685 686 687</div> 688</div><!-- end api-info-block --> 689 690 691<!-- ======== START OF CLASS DATA ======== --> 692 693<div id="jd-header"> 694 public 695 static 696 697 698 class 699<h1 itemprop="name">WearableListView.ViewHolder</h1> 700 701 702 703 704 705 706 707 708 extends RecyclerView.ViewHolder<br/> 709 710 711 712 713 714 715 716 717 718 719 720 721</div><!-- end header --> 722 723<div id="naMessage"></div> 724 725<div id="jd-content" class="api apilevel-"><p style="border:2px solid #99ccff;padding:12px;margin-top:20px"><strong>Note:</strong> The Wearable Support Library classes under the <code>android.support.wearable</code> package are subject to change. For the full Android API reference, see <a href="/reference/">Reference</a>.</p> 726<table class="jd-inheritance-table"> 727 728 729 <tr> 730 731 <td colspan="3" class="jd-inheritance-class-cell">java.lang.Object</td> 732 </tr> 733 734 735 <tr> 736 737 <td class="jd-inheritance-space"> ↳</td> 738 739 <td colspan="2" class="jd-inheritance-class-cell">android.support.v7.widget.RecyclerView.ViewHolder</td> 740 </tr> 741 742 743 <tr> 744 745 <td class="jd-inheritance-space"> </td> 746 747 <td class="jd-inheritance-space"> ↳</td> 748 749 <td colspan="1" class="jd-inheritance-class-cell">android.support.wearable.view.WearableListView.ViewHolder</td> 750 </tr> 751 752 753</table> 754 755 756 757 758 759 760 761<div class="jd-descr"> 762 763 764<h2>Class Overview</h2> 765<p itemprop="articleBody">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 766 are instances of this class. Consider making the wrapped View implement 767 <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 768 ceases to be the central item in the WearableListView. 769</p> 770 771 772 773 774 775</div><!-- jd-descr --> 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792<div class="jd-descr"> 793 794 795<h2>Summary</h2> 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817<!-- =========== FIELD SUMMARY =========== --> 818<table id="inhfields" class="jd-sumtable"><tr><th> 819 <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> 820 <div style="clear:left;">Inherited Fields</div></th></tr> 821 822 823<tr class="api apilevel-" > 824<td colspan="12"> 825 826 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-fields-android.support.v7.widget.RecyclerView.ViewHolder" class="jd-expando-trigger closed" 827 ><img id="inherited-fields-android.support.v7.widget.RecyclerView.ViewHolder-trigger" 828 src="../../../../../assets/images/triangle-closed.png" 829 class="jd-expando-trigger-img" /></a>From class 830android.support.v7.widget.RecyclerView.ViewHolder 831<div id="inherited-fields-android.support.v7.widget.RecyclerView.ViewHolder"> 832 <div id="inherited-fields-android.support.v7.widget.RecyclerView.ViewHolder-list" 833 class="jd-inheritedlinks"> 834 </div> 835 <div id="inherited-fields-android.support.v7.widget.RecyclerView.ViewHolder-summary" style="display: none;"> 836 <table class="jd-sumtable-expando"> 837 838 839 840 <tr class="alt-color api apilevel-" > 841 <td class="jd-typecol"><nobr> 842 public 843 844 final 845 View</nobr></td> 846 <td class="jd-linkcol">itemView</td> 847 <td class="jd-descrcol" width="100%"> 848 849 850 851 852 </td> 853 </tr> 854 855 856</table> 857 </div> 858</div> 859</td></tr> 860 861 862 863 864</table> 865 866 867 868 869<!-- ======== CONSTRUCTOR SUMMARY ======== --> 870<table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr> 871 872 873 874 875 <tr class="alt-color api apilevel-" > 876 <td class="jd-typecol"><nobr> 877 878 879 880 881 882 </nobr> 883 </td> 884 <td class="jd-linkcol" width="100%"><nobr> 885 <span class="sympad"><a href="../../../../../reference/android/support/wearable/view/WearableListView.ViewHolder.html#WearableListView.ViewHolder(android.view.View)">WearableListView.ViewHolder</a></span>(View itemView)</nobr> 886 887 </td></tr> 888 889 890 891</table> 892 893 894 895 896 897 898 899 900 901 902 903<!-- ========== METHOD SUMMARY =========== --> 904<table id="inhmethods" class="jd-sumtable"><tr><th> 905 <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> 906 <div style="clear:left;">Inherited Methods</div></th></tr> 907 908 909<tr class="api apilevel-" > 910<td colspan="12"> 911 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.support.v7.widget.RecyclerView.ViewHolder" class="jd-expando-trigger closed" 912 ><img id="inherited-methods-android.support.v7.widget.RecyclerView.ViewHolder-trigger" 913 src="../../../../../assets/images/triangle-closed.png" 914 class="jd-expando-trigger-img" /></a> 915From class 916 917 android.support.v7.widget.RecyclerView.ViewHolder 918 919<div id="inherited-methods-android.support.v7.widget.RecyclerView.ViewHolder"> 920 <div id="inherited-methods-android.support.v7.widget.RecyclerView.ViewHolder-list" 921 class="jd-inheritedlinks"> 922 </div> 923 <div id="inherited-methods-android.support.v7.widget.RecyclerView.ViewHolder-summary" style="display: none;"> 924 <table class="jd-sumtable-expando"> 925 926 927 928 929 <tr class="alt-color api apilevel-" > 930 <td class="jd-typecol"><nobr> 931 932 933 final 934 935 936 long</nobr> 937 </td> 938 <td class="jd-linkcol" width="100%"><nobr> 939 <span class="sympad">getItemId</span>()</nobr> 940 941 </td></tr> 942 943 944 945 <tr class=" api apilevel-" > 946 <td class="jd-typecol"><nobr> 947 948 949 final 950 951 952 int</nobr> 953 </td> 954 <td class="jd-linkcol" width="100%"><nobr> 955 <span class="sympad">getItemViewType</span>()</nobr> 956 957 </td></tr> 958 959 960 961 <tr class="alt-color api apilevel-" > 962 <td class="jd-typecol"><nobr> 963 964 965 final 966 967 968 int</nobr> 969 </td> 970 <td class="jd-linkcol" width="100%"><nobr> 971 <span class="sympad">getOldPosition</span>()</nobr> 972 973 </td></tr> 974 975 976 977 <tr class=" api apilevel-" > 978 <td class="jd-typecol"><nobr> 979 980 981 final 982 983 984 int</nobr> 985 </td> 986 <td class="jd-linkcol" width="100%"><nobr> 987 <span class="sympad">getPosition</span>()</nobr> 988 989 </td></tr> 990 991 992 993 <tr class="alt-color api apilevel-" > 994 <td class="jd-typecol"><nobr> 995 996 997 final 998 999 1000 boolean</nobr> 1001 </td> 1002 <td class="jd-linkcol" width="100%"><nobr> 1003 <span class="sympad">isRecyclable</span>()</nobr> 1004 1005 </td></tr> 1006 1007 1008 1009 <tr class=" api apilevel-" > 1010 <td class="jd-typecol"><nobr> 1011 1012 1013 final 1014 1015 1016 void</nobr> 1017 </td> 1018 <td class="jd-linkcol" width="100%"><nobr> 1019 <span class="sympad">setIsRecyclable</span>(boolean arg0)</nobr> 1020 1021 </td></tr> 1022 1023 1024 1025 <tr class="alt-color api apilevel-" > 1026 <td class="jd-typecol"><nobr> 1027 1028 1029 1030 1031 1032 String</nobr> 1033 </td> 1034 <td class="jd-linkcol" width="100%"><nobr> 1035 <span class="sympad">toString</span>()</nobr> 1036 1037 </td></tr> 1038 1039 1040</table> 1041 </div> 1042</div> 1043</td></tr> 1044 1045 1046 1047<tr class="api apilevel-" > 1048<td colspan="12"> 1049 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" 1050 ><img id="inherited-methods-java.lang.Object-trigger" 1051 src="../../../../../assets/images/triangle-closed.png" 1052 class="jd-expando-trigger-img" /></a> 1053From class 1054 1055 java.lang.Object 1056 1057<div id="inherited-methods-java.lang.Object"> 1058 <div id="inherited-methods-java.lang.Object-list" 1059 class="jd-inheritedlinks"> 1060 </div> 1061 <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> 1062 <table class="jd-sumtable-expando"> 1063 1064 1065 1066 1067 <tr class="alt-color api apilevel-" > 1068 <td class="jd-typecol"><nobr> 1069 1070 1071 1072 1073 1074 Object</nobr> 1075 </td> 1076 <td class="jd-linkcol" width="100%"><nobr> 1077 <span class="sympad">clone</span>()</nobr> 1078 1079 </td></tr> 1080 1081 1082 1083 <tr class=" api apilevel-" > 1084 <td class="jd-typecol"><nobr> 1085 1086 1087 1088 1089 1090 boolean</nobr> 1091 </td> 1092 <td class="jd-linkcol" width="100%"><nobr> 1093 <span class="sympad">equals</span>(Object arg0)</nobr> 1094 1095 </td></tr> 1096 1097 1098 1099 <tr class="alt-color api apilevel-" > 1100 <td class="jd-typecol"><nobr> 1101 1102 1103 1104 1105 1106 void</nobr> 1107 </td> 1108 <td class="jd-linkcol" width="100%"><nobr> 1109 <span class="sympad">finalize</span>()</nobr> 1110 1111 </td></tr> 1112 1113 1114 1115 <tr class=" api apilevel-" > 1116 <td class="jd-typecol"><nobr> 1117 1118 1119 final 1120 1121 1122 Class<?></nobr> 1123 </td> 1124 <td class="jd-linkcol" width="100%"><nobr> 1125 <span class="sympad">getClass</span>()</nobr> 1126 1127 </td></tr> 1128 1129 1130 1131 <tr class="alt-color api apilevel-" > 1132 <td class="jd-typecol"><nobr> 1133 1134 1135 1136 1137 1138 int</nobr> 1139 </td> 1140 <td class="jd-linkcol" width="100%"><nobr> 1141 <span class="sympad">hashCode</span>()</nobr> 1142 1143 </td></tr> 1144 1145 1146 1147 <tr class=" api apilevel-" > 1148 <td class="jd-typecol"><nobr> 1149 1150 1151 final 1152 1153 1154 void</nobr> 1155 </td> 1156 <td class="jd-linkcol" width="100%"><nobr> 1157 <span class="sympad">notify</span>()</nobr> 1158 1159 </td></tr> 1160 1161 1162 1163 <tr class="alt-color api apilevel-" > 1164 <td class="jd-typecol"><nobr> 1165 1166 1167 final 1168 1169 1170 void</nobr> 1171 </td> 1172 <td class="jd-linkcol" width="100%"><nobr> 1173 <span class="sympad">notifyAll</span>()</nobr> 1174 1175 </td></tr> 1176 1177 1178 1179 <tr class=" api apilevel-" > 1180 <td class="jd-typecol"><nobr> 1181 1182 1183 1184 1185 1186 String</nobr> 1187 </td> 1188 <td class="jd-linkcol" width="100%"><nobr> 1189 <span class="sympad">toString</span>()</nobr> 1190 1191 </td></tr> 1192 1193 1194 1195 <tr class="alt-color api apilevel-" > 1196 <td class="jd-typecol"><nobr> 1197 1198 1199 final 1200 1201 1202 void</nobr> 1203 </td> 1204 <td class="jd-linkcol" width="100%"><nobr> 1205 <span class="sympad">wait</span>()</nobr> 1206 1207 </td></tr> 1208 1209 1210 1211 <tr class=" api apilevel-" > 1212 <td class="jd-typecol"><nobr> 1213 1214 1215 final 1216 1217 1218 void</nobr> 1219 </td> 1220 <td class="jd-linkcol" width="100%"><nobr> 1221 <span class="sympad">wait</span>(long arg0, int arg1)</nobr> 1222 1223 </td></tr> 1224 1225 1226 1227 <tr class="alt-color api apilevel-" > 1228 <td class="jd-typecol"><nobr> 1229 1230 1231 final 1232 1233 1234 void</nobr> 1235 </td> 1236 <td class="jd-linkcol" width="100%"><nobr> 1237 <span class="sympad">wait</span>(long arg0)</nobr> 1238 1239 </td></tr> 1240 1241 1242</table> 1243 </div> 1244</div> 1245</td></tr> 1246 1247 1248</table> 1249 1250 1251</div><!-- jd-descr (summary) --> 1252 1253<!-- Details --> 1254 1255 1256 1257 1258 1259 1260 1261 1262<!-- XML Attributes --> 1263 1264 1265<!-- Enum Values --> 1266 1267 1268<!-- Constants --> 1269 1270 1271<!-- Fields --> 1272 1273 1274<!-- Public ctors --> 1275 1276 1277<!-- ========= CONSTRUCTOR DETAIL ======== --> 1278<h2>Public Constructors</h2> 1279 1280 1281 1282<A NAME="WearableListView.ViewHolder(android.view.View)"></A> 1283 1284<div class="jd-details api apilevel-"> 1285 <h4 class="jd-details-title"> 1286 <span class="normal"> 1287 public 1288 1289 1290 1291 1292 1293 </span> 1294 <span class="sympad">WearableListView.ViewHolder</span> 1295 <span class="normal">(View itemView)</span> 1296 </h4> 1297 <div class="api-level"> 1298 <div></div> 1299 1300 1301 1302 </div> 1303 <div class="jd-details-descr"> 1304 1305 1306 1307 1308 <div class="jd-tagdata jd-tagdescr"><p></p></div> 1309 1310 </div> 1311</div> 1312 1313 1314 1315 1316 1317<!-- ========= CONSTRUCTOR DETAIL ======== --> 1318<!-- Protected ctors --> 1319 1320 1321 1322<!-- ========= METHOD DETAIL ======== --> 1323<!-- Public methdos --> 1324 1325 1326 1327<!-- ========= METHOD DETAIL ======== --> 1328 1329 1330 1331<!-- ========= END OF CLASS DATA ========= --> 1332<A NAME="navbar_top"></A> 1333 1334<div id="footer" class="wrap" > 1335 1336 1337 <div id="copyright"> 1338 1339 Except as noted, this content is licensed under <a 1340 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 1341 For details and restrictions, see the <a href="../../../../../license.html"> 1342 Content License</a>. 1343 </div> 1344 <div id="build_info"> 1345 1346 Android Wearable Support r — 1347<script src="../../../../../timestamp.js" type="text/javascript"></script> 1348<script>document.write(BUILD_TIMESTAMP)</script> 1349 1350 </div> 1351 1352 1353 <div id="footerlinks"> 1354 1355 <p> 1356 <a href="../../../../../about/index.html">About Android</a> | 1357 <a href="../../../../../legal.html">Legal</a> | 1358 <a href="../../../../../support.html">Support</a> 1359 </p> 1360 </div> 1361 1362</div> <!-- end footer --> 1363</div> <!-- jd-content --> 1364 1365</div><!-- end doc-content --> 1366 1367</div> <!-- end body-content --> 1368 1369 1370 1371 1372 1373 1374</body> 1375</html> 1376