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>android.support.wearable.view | 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 151<body class="gc-documentation 152 develop reference"> 153 <div id="doc-api-level" class="" style="display:none"></div> 154 <a name="top"></a> 155 156 157<a name="top"></a> 158 159<!-- dialog to prompt lang pref change when loaded from hardcoded URL 160<div id="langMessage" style="display:none"> 161 <div> 162 <div class="lang en"> 163 <p>You requested a page in English, would you like to proceed with this language setting?</p> 164 </div> 165 <div class="lang es"> 166 <p>You requested a page in Spanish (Español), would you like to proceed with this language setting?</p> 167 </div> 168 <div class="lang ja"> 169 <p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</p> 170 </div> 171 <div class="lang ko"> 172 <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p> 173 </div> 174 <div class="lang ru"> 175 <p>You requested a page in Russian (Русский), would you like to proceed with this language setting?</p> 176 </div> 177 <div class="lang zh-cn"> 178 <p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language setting?</p> 179 </div> 180 <div class="lang zh-tw"> 181 <p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this language setting?</p> 182 </div> 183 <a href="#" class="button yes" onclick="return false;"> 184 <span class="lang en">Yes</span> 185 <span class="lang es">Sí</span> 186 <span class="lang ja">Yes</span> 187 <span class="lang ko">Yes</span> 188 <span class="lang ru">Yes</span> 189 <span class="lang zh-cn">是的</span> 190 <span class="lang zh-tw">没有</span> 191 </a> 192 <a href="#" class="button" onclick="$('#langMessage').hide();return false;"> 193 <span class="lang en">No</span> 194 <span class="lang es">No</span> 195 <span class="lang ja">No</span> 196 <span class="lang ko">No</span> 197 <span class="lang ru">No</span> 198 <span class="lang zh-cn">没有</span> 199 <span class="lang zh-tw">没有</span> 200 </a> 201 </div> 202</div> --> 203 204 205 <!-- Header --> 206 <div id="header-wrapper"> 207 <div id="header"> 208 209 210 211 212 <div class="wrap" id="header-wrap"> 213 <div class="col-3 logo"> 214 <a href="../../../../../index.html"> 215 <img src="../../../../../assets/images/dac_logo.png" 216 srcset="../../../../../assets/images/dac_logo@2x.png 2x" 217 width="123" height="25" alt="Android Developers" /> 218 </a> 219 <div class="btn-quicknav" id="btn-quicknav"> 220 <a href="#" class="arrow-inactive">Quicknav</a> 221 <a href="#" class="arrow-active">Quicknav</a> 222 </div> 223 </div> 224 <ul class="nav-x col-9"> 225 <li class="design"> 226 <a href="../../../../../design/index.html" 227 zh-tw-lang="設計" 228 zh-cn-lang="设计" 229 ru-lang="Проектирование" 230 ko-lang="디자인" 231 ja-lang="設計" 232 es-lang="Diseñar" 233 >Design</a></li> 234 <li class="develop"><a href="../../../../../develop/index.html" 235 zh-tw-lang="開發" 236 zh-cn-lang="开发" 237 ru-lang="Разработка" 238 ko-lang="개발" 239 ja-lang="開発" 240 es-lang="Desarrollar" 241 >Develop</a></li> 242 <li class="distribute last"><a href="../../../../../distribute/googleplay/index.html" 243 zh-tw-lang="發佈" 244 zh-cn-lang="分发" 245 ru-lang="Распространение" 246 ko-lang="배포" 247 ja-lang="配布" 248 es-lang="Distribuir" 249 >Distribute</a></li> 250 </ul> 251 252 253 254 255<div class="menu-container"> 256 <div class="moremenu"> 257 <div id="more-btn"></div> 258 </div> 259 <div class="morehover" id="moremenu"> 260 <div class="top"></div> 261 <div class="mid"> 262 <div class="header">Links</div> 263 <ul> 264 <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li> 265 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> 266 <li><a href="../../../../../about/index.html">About Android</a></li> 267 </ul> 268 <div class="header">Android Sites</div> 269 <ul> 270 <li><a href="http://www.android.com">Android.com</a></li> 271 <li class="active"><a>Android Developers</a></li> 272 <li><a href="http://source.android.com">Android Open Source Project</a></li> 273 </ul> 274 275 276 277 278 <br class="clearfix" /> 279 </div><!-- end 'mid' --> 280 <div class="bottom"></div> 281 </div><!-- end 'moremenu' --> 282 283 <div class="search" id="search-container"> 284 <div class="search-inner"> 285 <div id="search-btn"></div> 286 <div class="left"></div> 287 <form onsubmit="return submit_search()"> 288 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" 289 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" 290 onkeydown="return search_changed(event, true, '../../../../../')" 291 onkeyup="return search_changed(event, false, '../../../../../')" /> 292 </form> 293 <div class="right"></div> 294 <a class="close hide">close</a> 295 <div class="left"></div> 296 <div class="right"></div> 297 </div><!-- end search-inner --> 298 </div><!-- end search-container --> 299 300 <div class="search_filtered_wrapper reference"> 301 <div class="suggest-card reference no-display"> 302 <ul class="search_filtered"> 303 </ul> 304 </div> 305 </div> 306 307 <div class="search_filtered_wrapper docs"> 308 <div class="suggest-card dummy no-display"> </div> 309 <div class="suggest-card develop no-display"> 310 <ul class="search_filtered"> 311 </ul> 312 <div class="child-card guides no-display"> 313 </div> 314 <div class="child-card training no-display"> 315 </div> 316 <div class="child-card samples no-display"> 317 </div> 318 </div> 319 <div class="suggest-card design no-display"> 320 <ul class="search_filtered"> 321 </ul> 322 </div> 323 <div class="suggest-card distribute no-display"> 324 <ul class="search_filtered"> 325 </ul> 326 </div> 327 </div> 328</div><!-- end menu-container (search and menu widget) --> 329 330 331 332 <!-- Expanded quicknav --> 333 <div id="quicknav" class="col-13"> 334 <ul> 335 <li class="about"> 336 <ul> 337 <li><a href="../../../../../about/index.html">About</a></li> 338 <li><a href="../../../../../wear/index.html">Wear</a></li> 339 <li><a href="../../../../../tv/index.html">TV</a></li> 340 <li><a href="../../../../../auto/index.html">Auto</a></li> 341 </ul> 342 </li> 343 <li class="design"> 344 <ul> 345 <li><a href="../../../../../design/index.html">Get Started</a></li> 346 <li><a href="../../../../../design/devices.html">Devices</a></li> 347 <li><a href="../../../../../design/style/index.html">Style</a></li> 348 <li><a href="../../../../../design/patterns/index.html">Patterns</a></li> 349 <li><a href="../../../../../design/building-blocks/index.html">Building Blocks</a></li> 350 <li><a href="../../../../../design/downloads/index.html">Downloads</a></li> 351 <li><a href="../../../../../design/videos/index.html">Videos</a></li> 352 </ul> 353 </li> 354 <li class="develop"> 355 <ul> 356 <li><a href="../../../../../training/index.html" 357 zh-tw-lang="訓練課程" 358 zh-cn-lang="培训" 359 ru-lang="Курсы" 360 ko-lang="교육" 361 ja-lang="トレーニング" 362 es-lang="Capacitación" 363 >Training</a></li> 364 <li><a href="../../../../../guide/index.html" 365 zh-tw-lang="API 指南" 366 zh-cn-lang="API 指南" 367 ru-lang="Руководства по API" 368 ko-lang="API 가이드" 369 ja-lang="API ガイド" 370 es-lang="Guías de la API" 371 >API Guides</a></li> 372 <li><a href="../../../../../reference/packages.html" 373 zh-tw-lang="參考資源" 374 zh-cn-lang="参考" 375 ru-lang="Справочник" 376 ko-lang="참조문서" 377 ja-lang="リファレンス" 378 es-lang="Referencia" 379 >Reference</a></li> 380 <li><a href="../../../../../sdk/index.html" 381 zh-tw-lang="相關工具" 382 zh-cn-lang="工具" 383 ru-lang="Инструменты" 384 ko-lang="도구" 385 ja-lang="ツール" 386 es-lang="Herramientas" 387 >Tools</a> 388 </li> 389 <li><a href="../../../../../google/index.html">Google Services</a> 390 </li> 391 392 </ul> 393 </li> 394 <li class="distribute last"> 395 <ul> 396 <li><a href="../../../../../distribute/googleplay/index.html">Google Play</a></li> 397 <li><a href="../../../../../distribute/essentials/index.html">Essentials</a></li> 398 <li><a href="../../../../../distribute/users/index.html">Get Users</a></li> 399 <li><a href="../../../../../distribute/engage/index.html">Engage & Retain</a></li> 400 <li><a href="../../../../../distribute/monetize/index.html">Monetize</a></li> 401 <li><a href="../../../../../distribute/tools/index.html">Tools & Reference</a></li> 402 <li><a href="../../../../../distribute/stories/index.html">Developer Stories</a></li> 403 </ul> 404 </li> 405 </ul> 406 </div><!-- /Expanded quicknav --> 407 </div><!-- end header-wrap.wrap --> 408 </div><!-- end header --> 409 410 411 <!-- Secondary x-nav --> 412 <div id="nav-x"> 413 <div class="wrap" style="position:relative;z-index:1"> 414 415 416 417 <a id="helpoutsLink" class="resource resource-card resource-card-6x2x3 resource-card-6x2 helpouts-card" 418 href="http://helpouts.google.com/partner/landing/provider/googledevelopers?utm_source=dac&utm_medium=banner&utm_campaign=android_provider_banner3" target="_blank"> 419 <div class="card-bg helpouts-card-bg"></div> 420 <div class="card-info"> 421 <div class="helpouts-description"> 422 <div class="text">Help Android Wear and TV developers<br/> 423 <span id="helpoutsLinkText" class="link-color" 424 style="display:block;padding-top:5px;text-align:right">Learn more</span> 425 </div> 426 </div> 427 </div> 428 </a> 429 430 431 432 <ul class="nav-x col-9 develop" style="width:100%"> 433 <li class="training"><a href="../../../../../training/index.html" 434 zh-tw-lang="訓練課程" 435 zh-cn-lang="培训" 436 ru-lang="Курсы" 437 ko-lang="교육" 438 ja-lang="トレーニング" 439 es-lang="Capacitación" 440 >Training</a></li> 441 <li class="guide"><a href="../../../../../guide/index.html" 442 zh-tw-lang="API 指南" 443 zh-cn-lang="API 指南" 444 ru-lang="Руководства по API" 445 ko-lang="API 가이드" 446 ja-lang="API ガイド" 447 es-lang="Guías de la API" 448 >API Guides</a></li> 449 <li class="reference"><a href="../../../../../reference/packages.html" 450 zh-tw-lang="參考資源" 451 zh-cn-lang="参考" 452 ru-lang="Справочник" 453 ko-lang="참조문서" 454 ja-lang="リファレンス" 455 es-lang="Referencia" 456 >Reference</a></li> 457 <li class="tools"><a href="../../../../../sdk/index.html" 458 zh-tw-lang="相關工具" 459 zh-cn-lang="工具" 460 ru-lang="Инструменты" 461 ko-lang="도구" 462 ja-lang="ツール" 463 es-lang="Herramientas" 464 >Tools</a></li> 465 <li class="google"><a href="../../../../../google/index.html" 466 >Google Services</a> 467 </li> 468 469 </ul> 470 </div> 471 </div> 472 <!-- /Sendondary x-nav DEVELOP --> 473 474 475 476 <div id="searchResults" class="wrap" style="display:none;"> 477 <h2 id="searchTitle">Results</h2> 478 <div id="leftSearchControl" class="search-control">Loading...</div> 479 </div> 480 </div> <!--end header-wrapper --> 481 482 <div id="sticky-header"> 483 <div> 484 <a class="logo" href="#top"></a> 485 <a class="top" href="#top"></a> 486 <ul class="breadcrumb"> 487 488 <li class="current">android.support.wearable.view</li> 489 </ul> 490 </div> 491 </div> 492 493 494 495 496 497 <div class="wrap clearfix" id="body-content"> 498 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 499 <div id="devdoc-nav"> 500 <div id="api-nav-header"> 501 <div id="api-level-toggle"> 502 <label for="apiLevelCheckbox" class="disabled" 503 title="Select your target API level to dim unavailable APIs">API level: </label> 504 <div class="select-wrapper"> 505 <select id="apiLevelSelector"> 506 <!-- option elements added by buildApiLevelSelector() --> 507 </select> 508 </div> 509 </div><!-- end toggle --> 510 <div id="api-nav-title">Android APIs</div> 511 </div><!-- end nav header --> 512 <script> 513 var SINCE_DATA = [ ]; 514 buildApiLevelSelector(); 515 </script> 516 517 <div id="swapper"> 518 <div id="nav-panels"> 519 <div id="resize-packages-nav"> 520 <div id="packages-nav" class="scroll-pane"> 521 522 <ul> 523 524 <li class="api apilevel-"> 525 <a href="../../../../../reference/android/support/wearable/package-summary.html">android.support.wearable</a></li> 526 <li class="api apilevel-"> 527 <a href="../../../../../reference/android/support/wearable/activity/package-summary.html">android.support.wearable.activity</a></li> 528 <li class="api apilevel-"> 529 <a href="../../../../../reference/android/support/wearable/companion/package-summary.html">android.support.wearable.companion</a></li> 530 <li class="api apilevel-"> 531 <a href="../../../../../reference/android/support/wearable/provider/package-summary.html">android.support.wearable.provider</a></li> 532 <li class="selected api apilevel-"> 533 <a href="../../../../../reference/android/support/wearable/view/package-summary.html">android.support.wearable.view</a></li> 534 <li class="api apilevel-"> 535 <a href="../../../../../reference/android/support/wearable/watchface/package-summary.html">android.support.wearable.watchface</a></li> 536 </ul><br/> 537 538 </div> <!-- end packages-nav --> 539 </div> <!-- end resize-packages --> 540 <div id="classes-nav" class="scroll-pane"> 541 542 543 544 <ul> 545 546 547 <li><h2>Interfaces</h2> 548 <ul> 549 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html">DelayedConfirmationView.DelayedConfirmationListener</a></li> 550 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridPageOptions.html">GridPageOptions</a></li> 551 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html">GridPageOptions.BackgroundListener</a></li> 552 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html">GridViewPager.OnAdapterChangeListener</a></li> 553 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html">GridViewPager.OnPageChangeListener</a></li> 554 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html">WatchViewStub.OnLayoutInflatedListener</a></li> 555 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.ClickListener.html">WearableListView.ClickListener</a></li> 556 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html">WearableListView.OnCenterProximityListener</a></li> 557 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnScrollListener.html">WearableListView.OnScrollListener</a></li> 558 </ul> 559 </li> 560 561 <li><h2>Classes</h2> 562 <ul> 563 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/BoxInsetLayout.html">BoxInsetLayout</a></li> 564 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html">BoxInsetLayout.LayoutParams</a></li> 565 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CardFragment.html">CardFragment</a></li> 566 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CardFrame.html">CardFrame</a></li> 567 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CardScrollView.html">CardScrollView</a></li> 568 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CircledImageView.html">CircledImageView</a></li> 569 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CrossfadeDrawable.html">CrossfadeDrawable</a></li> 570 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DelayedConfirmationView.html">DelayedConfirmationView</a></li> 571 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DismissOverlayView.html">DismissOverlayView</a></li> 572 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DotsPageIndicator.html">DotsPageIndicator</a></li> 573 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/FragmentGridPagerAdapter.html">FragmentGridPagerAdapter</a></li> 574 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a></li> 575 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></li> 576 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.LayoutParams.html">GridViewPager.LayoutParams</a></li> 577 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/SimpleAnimatorListener.html">SimpleAnimatorListener</a></li> 578 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WatchViewStub.html">WatchViewStub</a></li> 579 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.html">WearableListView</a></li> 580 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.Adapter.html">WearableListView.Adapter</a></li> 581 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.ViewHolder.html">WearableListView.ViewHolder</a></li> 582 </ul> 583 </li> 584 585 586 587 </ul><br/> 588 589 590 </div><!-- end classes --> 591 </div><!-- end nav-panels --> 592 <div id="nav-tree" style="display:none" class="scroll-pane"> 593 <div id="tree-list"></div> 594 </div><!-- end nav-tree --> 595 </div><!-- end swapper --> 596 <div id="nav-swap"> 597 <a class="fullscreen">fullscreen</a> 598 <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> 599 </div> 600 </div> <!-- end devdoc-nav --> 601 </div> <!-- end side-nav --> 602 <script type="text/javascript"> 603 // init fullscreen based on user pref 604 var fullscreen = readCookie("fullscreen"); 605 if (fullscreen != 0) { 606 if (fullscreen == "false") { 607 toggleFullscreen(false); 608 } else { 609 toggleFullscreen(true); 610 } 611 } 612 // init nav version for mobile 613 if (isMobile) { 614 swapNav(); // tree view should be used on mobile 615 $('#nav-swap').hide(); 616 } else { 617 chooseDefaultNav(); 618 if ($("#nav-tree").is(':visible')) { 619 init_default_navtree("../../../../../"); 620 } 621 } 622 // scroll the selected page into view 623 $(document).ready(function() { 624 scrollIntoView("packages-nav"); 625 scrollIntoView("classes-nav"); 626 }); 627 </script> 628 629 630 631 632 633<div class="col-12" id="doc-col"> 634 635<div id="api-info-block"> 636<div class="api-level"> 637 638 639 640 641</div> 642</div> 643 644<div id="jd-header"> 645 package 646 <h1>android.support.wearable.view</h1> 647</div><!-- end header --> 648 649<div id="naMessage"></div> 650 651<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> 652 653 654 655 656 657 658 659 660 661 662 <h2>Interfaces</h2> 663 <div class="jd-sumtable"> 664 665 666 <table class="jd-sumtable-expando"> 667 668 <tr class="alt-color api apilevel-" > 669 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html">DelayedConfirmationView.DelayedConfirmationListener</a></td> 670 <td class="jd-descrcol" width="100%"> 671 Implement this interface to receive callbacks when the timer is finished and when the user 672 taps the View to select it. 673 674 675 676 </td> 677 </tr> 678 679 680 <tr class=" api apilevel-" > 681 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/GridPageOptions.html">GridPageOptions</a></td> 682 <td class="jd-descrcol" width="100%"> 683 An optional interface for a Fragment within a GridViewPager which provides additional 684 configurable options. 685 686 687 688 </td> 689 </tr> 690 691 692 <tr class="alt-color api apilevel-" > 693 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html">GridPageOptions.BackgroundListener</a></td> 694 <td class="jd-descrcol" width="100%"> 695 Interface for communicating background changes to a listener. 696 697 698 699 </td> 700 </tr> 701 702 703 <tr class=" api apilevel-" > 704 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html">GridViewPager.OnAdapterChangeListener</a></td> 705 <td class="jd-descrcol" width="100%"> 706 Callback interface for responding to a replaced or removed adapter. 707 708 709 710 </td> 711 </tr> 712 713 714 <tr class="alt-color api apilevel-" > 715 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html">GridViewPager.OnPageChangeListener</a></td> 716 <td class="jd-descrcol" width="100%"> 717 Callback interface for responding to changing state of the selected page. 718 719 720 721 </td> 722 </tr> 723 724 725 <tr class=" api apilevel-" > 726 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html">WatchViewStub.OnLayoutInflatedListener</a></td> 727 <td class="jd-descrcol" width="100%"> 728 Listener for detecting when internal layout inflation has completed. 729 730 731 732 </td> 733 </tr> 734 735 736 <tr class="alt-color api apilevel-" > 737 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/WearableListView.ClickListener.html">WearableListView.ClickListener</a></td> 738 <td class="jd-descrcol" width="100%"> 739 Interface for listening for click events on WearableListView. 740 741 742 743 </td> 744 </tr> 745 746 747 <tr class=" api apilevel-" > 748 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html">WearableListView.OnCenterProximityListener</a></td> 749 <td class="jd-descrcol" width="100%"> 750 Interface for receiving callbacks when WearableListView children become or cease to be the 751 central item. 752 753 754 755 </td> 756 </tr> 757 758 759 <tr class="alt-color api apilevel-" > 760 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnScrollListener.html">WearableListView.OnScrollListener</a></td> 761 <td class="jd-descrcol" width="100%"> 762 Interface for listening to WearableListView content scrolling. 763 764 765 766 </td> 767 </tr> 768 769 770 </table> 771 772 </div> 773 774 775 776 777 <h2>Classes</h2> 778 <div class="jd-sumtable"> 779 780 781 <table class="jd-sumtable-expando"> 782 783 <tr class="alt-color api apilevel-" > 784 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/BoxInsetLayout.html">BoxInsetLayout</a></td> 785 <td class="jd-descrcol" width="100%"> 786 BoxInsetLayout is a screen shape-aware FrameLayout that can box its children 787 in the center square of a round screen by using the 788 <code>layout_box</code> attribute. 789 790 791 792 </td> 793 </tr> 794 795 796 <tr class=" api apilevel-" > 797 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html">BoxInsetLayout.LayoutParams</a></td> 798 <td class="jd-descrcol" width="100%"> 799 adds <code>layout_box</code> attribute to layout parameters 800 801 802 803 804 </td> 805 </tr> 806 807 808 <tr class="alt-color api apilevel-" > 809 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/CardFragment.html">CardFragment</a></td> 810 <td class="jd-descrcol" width="100%"> 811 Presents content within an expandable, vertically scrollable card. 812 813 814 815 </td> 816 </tr> 817 818 819 <tr class=" api apilevel-" > 820 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/CardFrame.html">CardFrame</a></td> 821 <td class="jd-descrcol" width="100%"> 822 Wraps a view in a card-styled frame with a white background, rounded corners and a light 823 drop-shadow. 824 825 826 827 </td> 828 </tr> 829 830 831 <tr class="alt-color api apilevel-" > 832 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/CardScrollView.html">CardScrollView</a></td> 833 <td class="jd-descrcol" width="100%"> 834 Designed to host a CardFrame and provides special support for scrolling with expansion in both 835 the upward and downward directions. 836 837 838 839 </td> 840 </tr> 841 842 843 <tr class=" api apilevel-" > 844 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/CircledImageView.html">CircledImageView</a></td> 845 <td class="jd-descrcol" width="100%"> 846 An image view surrounded by a circle. 847 848 849 850 </td> 851 </tr> 852 853 854 <tr class="alt-color api apilevel-" > 855 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/CrossfadeDrawable.html">CrossfadeDrawable</a></td> 856 <td class="jd-descrcol" width="100%"> 857 Contains two child drawables and provides methods to directly adjust the blend between the two. 858 859 860 861 </td> 862 </tr> 863 864 865 <tr class=" api apilevel-" > 866 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/DelayedConfirmationView.html">DelayedConfirmationView</a></td> 867 <td class="jd-descrcol" width="100%"> 868 <code>DelayedConfirmationView</code> provides a circular countdown timer, typically used to 869 automatically confirm an operation after a short delay has elapsed. 870 871 872 873 </td> 874 </tr> 875 876 877 <tr class="alt-color api apilevel-" > 878 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/DismissOverlayView.html">DismissOverlayView</a></td> 879 <td class="jd-descrcol" width="100%"> 880 A view for implementing long-press-to-dismiss in an app. 881 882 883 884 </td> 885 </tr> 886 887 888 <tr class=" api apilevel-" > 889 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/DotsPageIndicator.html">DotsPageIndicator</a></td> 890 <td class="jd-descrcol" width="100%"> 891 A page indicator for <code><a href="../../../../../reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></code> which identifies the current page in relation to all 892 available pages on the current row. 893 894 895 896 </td> 897 </tr> 898 899 900 <tr class="alt-color api apilevel-" > 901 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/FragmentGridPagerAdapter.html">FragmentGridPagerAdapter</a></td> 902 <td class="jd-descrcol" width="100%"> 903 An implementation of GridPagerAdapter which represents each page as a <code><a href="../../../../../reference/android/app/Fragment.html">Fragment</a></code>. 904 905 906 907 </td> 908 </tr> 909 910 911 <tr class=" api apilevel-" > 912 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a></td> 913 <td class="jd-descrcol" width="100%"> 914 This component is responsible for providing views requested by a <code><a href="../../../../../reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></code>. 915 916 917 918 </td> 919 </tr> 920 921 922 <tr class="alt-color api apilevel-" > 923 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></td> 924 <td class="jd-descrcol" width="100%"> 925 Layout manager that allows the user to navigate both vertically and horizontally through pages of 926 content. 927 928 929 930 </td> 931 </tr> 932 933 934 <tr class=" api apilevel-" > 935 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.LayoutParams.html">GridViewPager.LayoutParams</a></td> 936 <td class="jd-descrcol" width="100%"> 937 Layout parameters that should be supplied for views added to a ViewPager. 938 939 940 941 </td> 942 </tr> 943 944 945 <tr class="alt-color api apilevel-" > 946 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/SimpleAnimatorListener.html">SimpleAnimatorListener</a></td> 947 <td class="jd-descrcol" width="100%"> 948 Convenience class for listening for Animator events that implements the AnimatorListener 949 interface and allows extending only methods that are necessary. 950 951 952 953 </td> 954 </tr> 955 956 957 <tr class=" api apilevel-" > 958 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/WatchViewStub.html">WatchViewStub</a></td> 959 <td class="jd-descrcol" width="100%"> 960 A WatchViewStub allows for the use of different sub-layouts depending on the 961 shape of the device screen as reported by 962 <code><a href="../../../../../reference/android/view/View.html#onApplyWindowInsets(android.view.WindowInsets)">onApplyWindowInsets</a></code>. 963 964 965 966 </td> 967 </tr> 968 969 970 <tr class="alt-color api apilevel-" > 971 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/WearableListView.html">WearableListView</a></td> 972 <td class="jd-descrcol" width="100%"> 973 An alternative version of ListView that is optimized for ease of use on small screen wearable 974 devices. 975 976 977 978 </td> 979 </tr> 980 981 982 <tr class=" api apilevel-" > 983 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/WearableListView.Adapter.html">WearableListView.Adapter</a></td> 984 <td class="jd-descrcol" width="100%"> 985 Base class for adapters providing data for the WearableListView. 986 987 988 989 </td> 990 </tr> 991 992 993 <tr class="alt-color api apilevel-" > 994 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/view/WearableListView.ViewHolder.html">WearableListView.ViewHolder</a></td> 995 <td class="jd-descrcol" width="100%"> 996 Wrapper around items displayed in the list view. 997 998 999 1000 </td> 1001 </tr> 1002 1003 1004 </table> 1005 1006 </div> 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019<div id="footer" class="wrap" > 1020 1021 1022 <div id="copyright"> 1023 1024 Except as noted, this content is licensed under <a 1025 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 1026 For details and restrictions, see the <a href="../../../../../license.html"> 1027 Content License</a>. 1028 </div> 1029 <div id="build_info"> 1030 1031 Android Wearable Support r — 1032<script src="../../../../../timestamp.js" type="text/javascript"></script> 1033<script>document.write(BUILD_TIMESTAMP)</script> 1034 1035 </div> 1036 1037 1038 <div id="footerlinks"> 1039 1040 <p> 1041 <a href="../../../../../about/index.html">About Android</a> | 1042 <a href="../../../../../legal.html">Legal</a> | 1043 <a href="../../../../../support.html">Support</a> 1044 </p> 1045 </div> 1046 1047</div> <!-- end footer --> 1048</div><!-- end jd-content --> 1049</div><!-- doc-content --> 1050 1051</div> <!-- end body-content --> 1052 1053 1054 1055 1056 1057 1058</body> 1059</html> 1060