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