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.OnCenterProximityListener | 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.OnCenterProximityListener</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="selected 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="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<div class="sum-details-links"> 571 572</div><!-- end sum-details-links --> 573<div class="api-level"> 574 575 576 577 578</div> 579</div><!-- end api-info-block --> 580 581 582<!-- ======== START OF CLASS DATA ======== --> 583 584<div id="jd-header"> 585 public 586 static 587 588 589 interface 590<h1 itemprop="name">WearableListView.OnCenterProximityListener</h1> 591 592 593 594 595 596 597 598 599 600 601 602</div><!-- end header --> 603 604<div id="naMessage"></div> 605 606<div id="jd-content" class="api apilevel-"> 607<table class="jd-inheritance-table"> 608 609 610 <tr> 611 612 <td colspan="1" class="jd-inheritance-class-cell">android.support.wearable.view.WearableListView.OnCenterProximityListener</td> 613 </tr> 614 615 616</table> 617 618 619 620 621 622 623 624<div class="jd-descr"> 625 626 627<h2>Class Overview</h2> 628<p itemprop="articleBody">Interface for receiving callbacks when WearableListView children become or cease to be the 629 central item. 630</p> 631 632 633 634 635 636</div><!-- jd-descr --> 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653<div class="jd-descr"> 654 655 656<h2>Summary</h2> 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684<!-- ========== METHOD SUMMARY =========== --> 685<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr> 686 687 688 689 690 <tr class="alt-color api apilevel-" > 691 <td class="jd-typecol"><nobr> 692 abstract 693 694 695 696 697 void</nobr> 698 </td> 699 <td class="jd-linkcol" width="100%"><nobr> 700 <span class="sympad"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html#onCenterPosition(boolean)">onCenterPosition</a></span>(boolean animate)</nobr> 701 702 <div class="jd-descrdiv"> 703 Called when this view becomes central item of the WearableListView. 704 705 706 707 </div> 708 709 </td></tr> 710 711 712 713 <tr class=" api apilevel-" > 714 <td class="jd-typecol"><nobr> 715 abstract 716 717 718 719 720 void</nobr> 721 </td> 722 <td class="jd-linkcol" width="100%"><nobr> 723 <span class="sympad"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html#onNonCenterPosition(boolean)">onNonCenterPosition</a></span>(boolean animate)</nobr> 724 725 <div class="jd-descrdiv"> 726 Called when this view stops being the central item of the WearableListView. 727 728 729 730 </div> 731 732 </td></tr> 733 734 735 736</table> 737 738 739 740 741 742 743 744</div><!-- jd-descr (summary) --> 745 746<!-- Details --> 747 748 749 750 751 752 753 754 755<!-- XML Attributes --> 756 757 758<!-- Enum Values --> 759 760 761<!-- Constants --> 762 763 764<!-- Fields --> 765 766 767<!-- Public ctors --> 768 769 770 771<!-- ========= CONSTRUCTOR DETAIL ======== --> 772<!-- Protected ctors --> 773 774 775 776<!-- ========= METHOD DETAIL ======== --> 777<!-- Public methdos --> 778 779<h2>Public Methods</h2> 780 781 782 783<A NAME="onCenterPosition(boolean)"></A> 784 785<div class="jd-details api apilevel-"> 786 <h4 class="jd-details-title"> 787 <span class="normal"> 788 public 789 790 791 abstract 792 793 void 794 </span> 795 <span class="sympad">onCenterPosition</span> 796 <span class="normal">(boolean animate)</span> 797 </h4> 798 <div class="api-level"> 799 <div></div> 800 801 802 803 </div> 804 <div class="jd-details-descr"> 805 806 807 808 809 <div class="jd-tagdata jd-tagdescr"><p>Called when this view becomes central item of the WearableListView.</p></div> 810 <div class="jd-tagdata"> 811 <h5 class="jd-tagtitle">Parameters</h5> 812 <table class="jd-tagtable"> 813 <tr> 814 <th>animate</td> 815 <td>Whether you should animate your transition of the View to become the 816 central item. If false, this is the initial setting and you should 817 transition immediately. 818</td> 819 </tr> 820 </table> 821 </div> 822 823 </div> 824</div> 825 826 827<A NAME="onNonCenterPosition(boolean)"></A> 828 829<div class="jd-details api apilevel-"> 830 <h4 class="jd-details-title"> 831 <span class="normal"> 832 public 833 834 835 abstract 836 837 void 838 </span> 839 <span class="sympad">onNonCenterPosition</span> 840 <span class="normal">(boolean animate)</span> 841 </h4> 842 <div class="api-level"> 843 <div></div> 844 845 846 847 </div> 848 <div class="jd-details-descr"> 849 850 851 852 853 <div class="jd-tagdata jd-tagdescr"><p>Called when this view stops being the central item of the WearableListView.</p></div> 854 <div class="jd-tagdata"> 855 <h5 class="jd-tagtitle">Parameters</h5> 856 <table class="jd-tagtable"> 857 <tr> 858 <th>animate</td> 859 <td>Whether you should animate your transition of the View to being 860 non central item. If false, this is the initial setting and you should 861 transition immediately. 862</td> 863 </tr> 864 </table> 865 </div> 866 867 </div> 868</div> 869 870 871 872 873 874<!-- ========= METHOD DETAIL ======== --> 875 876 877 878<!-- ========= END OF CLASS DATA ========= --> 879<A NAME="navbar_top"></A> 880</div> <!-- jd-content --> 881 882<div class="wrap"> 883 <div class="dac-footer"> 884 <div class="cols dac-footer-main"> 885 <div class="col-1of2"> 886 <a class="dac-footer-getnews" data-modal-toggle="newsletter" href="javascript:;">Get news & tips <span 887 class="dac-fab dac-primary"><i class="dac-sprite dac-mail"></i></span></a> 888 </div> 889 <div class="col-1of2 dac-footer-reachout"> 890 <div class="dac-footer-contact"> 891 <a class="dac-footer-contact-link" href="http://android-developers.blogspot.com/">Blog</a> 892 <a class="dac-footer-contact-link" href="/support.html">Support</a> 893 </div> 894 <div class="dac-footer-social"> 895 <a class="dac-fab dac-footer-social-link" href="https://www.youtube.com/user/androiddevelopers"><i class="dac-sprite dac-youtube"></i></a> 896 <a class="dac-fab dac-footer-social-link" href="https://plus.google.com/+AndroidDevelopers"><i class="dac-sprite dac-gplus"></i></a> 897 <a class="dac-fab dac-footer-social-link" href="https://twitter.com/AndroidDev"><i class="dac-sprite dac-twitter"></i></a> 898 </div> 899 </div> 900 </div> 901 902 <hr class="dac-footer-separator"/> 903 904 905 <p class="dac-footer-copyright"> 906 907 Except as noted, this content is licensed under <a 908 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 909 For details and restrictions, see the <a href="../../../../../license.html"> 910 Content License</a>. 911 </p> 912 <p class="dac-footer-build"> 913 914 Android Wearable Support r — 915<script src="../../../../../timestamp.js" type="text/javascript"></script> 916<script>document.write(BUILD_TIMESTAMP)</script> 917 918 </p> 919 920 921 <p class="dac-footer-links"> 922 <a href="/about/index.html">About Android</a> 923 <a href="/auto/index.html">Auto</a> 924 <a href="/tv/index.html">TV</a> 925 <a href="/wear/index.html">Wear</a> 926 <a href="/legal.html">Legal</a> 927 928 <span id="language" class="locales"> 929 <select name="language" onchange="changeLangPref(this.value, true)"> 930 <option value="en" selected="selected">English</option> 931 <option value="es">Español</option> 932 <option value="ja">日本語</option> 933 <option value="ko">한국어</option> 934 <option value="pt-br">Português Brasileiro</option> 935 <option value="ru">Русский</option> 936 <option value="zh-cn">中文(简体)</option> 937 <option value="zh-tw">中文(繁體)</option> 938 </select> 939 </span> 940 </p> 941 </div> 942</div> <!-- end footer --> 943 944<div data-modal="newsletter" data-newsletter data-swap class="dac-modal newsletter"> 945 <div class="dac-modal-container"> 946 <div class="dac-modal-window"> 947 <header class="dac-modal-header"> 948 <button class="dac-modal-header-close" data-modal-toggle><i class="dac-sprite dac-close"></i></button> 949 <div class="dac-swap" data-swap-container> 950 <section class="dac-swap-section dac-active dac-down"> 951 <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> 952 <p class="dac-modal-header-subtitle">* Required Fields</p> 953 </section> 954 <section class="dac-swap-section dac-up"> 955 <h2 class="norule dac-modal-header-title">Hooray!</h2> 956 </section> 957 </div> 958 </header> 959 <div class="dac-swap" data-swap-container> 960 <section class="dac-swap-section dac-active dac-left"> 961 <form action="https://docs.google.com/forms/d/1QgnkzbEJIDu9lMEea0mxqWrXUJu0oBCLD7ar23V0Yys/formResponse" class="dac-form" method="post" target="dac-newsletter-iframe"> 962 <section class="dac-modal-content"> 963 <fieldset class="dac-form-fieldset"> 964 <div class="cols"> 965 <div class="col-1of2 newsletter-leftCol"> 966 <div class="dac-form-input-group"> 967 <label for="newsletter-full-name" class="dac-form-floatlabel">Full name</label> 968 <input type="text" class="dac-form-input" name="entry.1357890476" id="newsletter-full-name" required> 969 <span class="dac-form-required">*</span> 970 </div> 971 <div class="dac-form-input-group"> 972 <label for="newsletter-email" class="dac-form-floatlabel">Email address</label> 973 <input type="email" class="dac-form-input" name="entry.472100832" id="newsletter-email" required> 974 <span class="dac-form-required">*</span> 975 </div> 976 </div> 977 <div class="col-1of2 newsletter-rightCol"> 978 <div class="dac-form-input-group"> 979 <label for="newsletter-company" class="dac-form-floatlabel">Company / developer name</label> 980 <input type="text" class="dac-form-input" name="entry.1664780309" id="newsletter-company"> 981 </div> 982 <div class="dac-form-input-group"> 983 <label for="newsletter-play-store" class="dac-form-floatlabel">One of your Play Store app URLs</label> 984 <input type="url" class="dac-form-input" name="entry.47013838" id="newsletter-play-store" required> 985 <span class="dac-form-required">*</span> 986 </div> 987 </div> 988 </div> 989 </fieldset> 990 <fieldset class="dac-form-fieldset"> 991 <div class="cols"> 992 <div class="col-1of2 newsletter-leftCol"> 993 <legend class="dac-form-legend">Which best describes your business:<span class="dac-form-required">*</span> 994 </legend> 995 <div class="dac-form-radio-group"> 996 <input type="radio" value="Apps" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-app" required> 997 <label for="newsletter-business-type-app" class="dac-form-radio-button"></label> 998 <label for="newsletter-business-type-app" class="dac-form-label">Apps</label> 999 </div> 1000 <div class="dac-form-radio-group"> 1001 <input type="radio" value="Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-games" required> 1002 <label for="newsletter-business-type-games" class="dac-form-radio-button"></label> 1003 <label for="newsletter-business-type-games" class="dac-form-label">Games</label> 1004 </div> 1005 <div class="dac-form-radio-group"> 1006 <input type="radio" value="Apps and Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-appsgames" required> 1007 <label for="newsletter-business-type-appsgames" class="dac-form-radio-button"></label> 1008 <label for="newsletter-business-type-appsgames" class="dac-form-label">Apps & Games</label> 1009 </div> 1010 </div> 1011 <div class="col-1of2 newsletter-rightCol newsletter-checkboxes"> 1012 <div class="dac-form-radio-group"> 1013 <div class="dac-media"> 1014 <div class="dac-media-figure"> 1015 <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."> 1016 <label for="newsletter-add" class="dac-form-checkbox-button"></label> 1017 </div> 1018 <div class="dac-media-body"> 1019 <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> 1020 </div> 1021 </div> 1022 </div> 1023 <div class="dac-form-radio-group"> 1024 <div class="dac-media"> 1025 <div class="dac-media-figure"> 1026 <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/)."> 1027 <label for="newsletter-terms" class="dac-form-checkbox-button"></label> 1028 </div> 1029 <div class="dac-media-body"> 1030 <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> 1031 </div> 1032 </div> 1033 </div> 1034 </div> 1035 </div> 1036 </fieldset> 1037 </section> 1038 <footer class="dac-modal-footer"> 1039 <div class="cols"> 1040 <div class="col-2of5"> 1041 </div> 1042 </div> 1043 <button type="submit" value="Submit" class="dac-fab dac-primary dac-large dac-modal-action"><i class="dac-sprite dac-arrow-right"></i></button> 1044 </footer> 1045 </form> 1046 </section> 1047 <section class="dac-swap-section dac-right"> 1048 <div class="dac-modal-content"> 1049 <p class="newsletter-success-message"> 1050 You have successfully signed up for the latest Android developer news and tips. 1051 </p> 1052 </div> 1053 </section> 1054 </div> 1055 </div> 1056 </div> 1057</div> <!-- end footer --> 1058 1059</div><!-- end doc-content --> 1060 1061</div> <!-- end .cols --> 1062</div> <!-- end body-content --> 1063 1064 1065 1066 1067 1068 1069</body> 1070</html> 1071