1<!DOCTYPE html>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101<html>
102<head>
103
104
105<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
106<meta name="viewport" content="width=device-width" />
107
108<link rel="shortcut icon" type="image/x-icon" href="../../../../../favicon.ico" />
109<title>WearableListView.OnCenterProximityListener | Android Developers</title>
110
111<!-- STYLESHEETS -->
112<link rel="stylesheet"
113href="http://fonts.googleapis.com/css?family=Roboto+Condensed">
114<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold"
115  title="roboto">
116<link href="../../../../../assets/css/default.css?v=4" rel="stylesheet" type="text/css">
117
118
119<!-- FULLSCREEN STYLESHEET -->
120<link href="../../../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen"
121type="text/css">
122
123
124<!-- JAVASCRIPT -->
125<script src="http://www.google.com/jsapi" type="text/javascript"></script>
126<script src="../../../../../assets/js/android_3p-bundle.js" type="text/javascript"></script>
127<script type="text/javascript">
128  var toRoot = "../../../../../";
129  var metaTags = [];
130  var devsite = false;
131</script>
132<script src="../../../../../assets/js/docs.js?v=3" type="text/javascript"></script>
133
134
135
136<script>
137  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
138  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
139  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
140  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
141
142  ga('create', 'UA-5831155-1', 'android.com');
143  ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'});  // New tracker);
144  ga('send', 'pageview');
145  ga('universal.send', 'pageview'); // Send page view for new tracker.
146</script>
147
148</head>
149
150<body class="gc-documentation
151  develop reference" itemscope itemtype="http://schema.org/Article">
152  <div id="doc-api-level" class="" style="display:none"></div>
153  <a name="top"></a>
154
155
156<a name="top"></a>
157
158<!-- dialog to prompt lang pref change when loaded from hardcoded URL
159<div id="langMessage" style="display:none">
160  <div>
161    <div class="lang en">
162      <p>You requested a page in English, would you like to proceed with this language setting?</p>
163    </div>
164    <div class="lang es">
165      <p>You requested a page in Spanish (Español), would you like to proceed with this language setting?</p>
166    </div>
167    <div class="lang ja">
168      <p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</p>
169    </div>
170    <div class="lang ko">
171      <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p>
172    </div>
173    <div class="lang ru">
174      <p>You requested a page in Russian (Русский), would you like to proceed with this language setting?</p>
175    </div>
176    <div class="lang zh-cn">
177      <p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language setting?</p>
178    </div>
179    <div class="lang zh-tw">
180      <p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this language setting?</p>
181    </div>
182    <a href="#" class="button yes" onclick="return false;">
183      <span class="lang en">Yes</span>
184      <span class="lang es">Sí</span>
185      <span class="lang ja">Yes</span>
186      <span class="lang ko">Yes</span>
187      <span class="lang ru">Yes</span>
188      <span class="lang zh-cn">是的</span>
189      <span class="lang zh-tw">没有</span>
190    </a>
191    <a href="#" class="button" onclick="$('#langMessage').hide();return false;">
192      <span class="lang en">No</span>
193      <span class="lang es">No</span>
194      <span class="lang ja">No</span>
195      <span class="lang ko">No</span>
196      <span class="lang ru">No</span>
197      <span class="lang zh-cn">没有</span>
198      <span class="lang zh-tw">没有</span>
199    </a>
200  </div>
201</div> -->
202
203
204  <!-- Header -->
205  <div id="header-wrapper">
206    <div id="header">
207
208
209
210
211      <div class="wrap" id="header-wrap">
212        <div class="col-3 logo">
213          <a href="../../../../../index.html">
214            <img src="../../../../../assets/images/dac_logo.png"
215                srcset="../../../../../assets/images/dac_logo@2x.png 2x"
216                width="123" height="25" alt="Android Developers" />
217          </a>
218          <div class="btn-quicknav" id="btn-quicknav">
219            <a href="#" class="arrow-inactive">Quicknav</a>
220            <a href="#" class="arrow-active">Quicknav</a>
221          </div>
222        </div>
223        <ul class="nav-x col-9">
224            <li class="design">
225              <a href="../../../../../design/index.html"
226              zh-tw-lang="設計"
227              zh-cn-lang="设计"
228              ru-lang="Проектирование"
229              ko-lang="디자인"
230              ja-lang="設計"
231              es-lang="Diseñar"
232              >Design</a></li>
233            <li class="develop"><a href="../../../../../develop/index.html"
234              zh-tw-lang="開發"
235              zh-cn-lang="开发"
236              ru-lang="Разработка"
237              ko-lang="개발"
238              ja-lang="開発"
239              es-lang="Desarrollar"
240              >Develop</a></li>
241            <li class="distribute last"><a href="../../../../../distribute/googleplay/index.html"
242              zh-tw-lang="發佈"
243              zh-cn-lang="分发"
244              ru-lang="Распространение"
245              ko-lang="배포"
246              ja-lang="配布"
247              es-lang="Distribuir"
248              >Distribute</a></li>
249        </ul>
250
251
252
253
254<div class="menu-container">
255  <div class="moremenu">
256    <div id="more-btn"></div>
257  </div>
258  <div class="morehover" id="moremenu">
259    <div class="top"></div>
260    <div class="mid">
261      <div class="header">Links</div>
262      <ul>
263        <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li>
264        <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li>
265        <li><a href="../../../../../about/index.html">About Android</a></li>
266      </ul>
267      <div class="header">Android Sites</div>
268      <ul>
269        <li><a href="http://www.android.com">Android.com</a></li>
270        <li class="active"><a>Android Developers</a></li>
271        <li><a href="http://source.android.com">Android Open Source Project</a></li>
272      </ul>
273
274
275
276
277      <br class="clearfix" />
278    </div><!-- end 'mid' -->
279    <div class="bottom"></div>
280  </div><!-- end 'moremenu' -->
281
282  <div class="search" id="search-container">
283    <div class="search-inner">
284      <div id="search-btn"></div>
285      <div class="left"></div>
286      <form onsubmit="return submit_search()">
287        <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
288          onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
289          onkeydown="return search_changed(event, true, '../../../../../')"
290          onkeyup="return search_changed(event, false, '../../../../../')" />
291      </form>
292      <div class="right"></div>
293      <a class="close hide">close</a>
294      <div class="left"></div>
295      <div class="right"></div>
296    </div><!-- end search-inner -->
297  </div><!-- end search-container -->
298
299  <div class="search_filtered_wrapper reference">
300    <div class="suggest-card reference no-display">
301      <ul class="search_filtered">
302      </ul>
303    </div>
304  </div>
305
306  <div class="search_filtered_wrapper docs">
307    <div class="suggest-card dummy no-display">&nbsp;</div>
308    <div class="suggest-card develop no-display">
309      <ul class="search_filtered">
310      </ul>
311      <div class="child-card guides no-display">
312      </div>
313      <div class="child-card training no-display">
314      </div>
315      <div class="child-card samples no-display">
316      </div>
317    </div>
318    <div class="suggest-card design no-display">
319      <ul class="search_filtered">
320      </ul>
321    </div>
322    <div class="suggest-card distribute no-display">
323      <ul class="search_filtered">
324      </ul>
325    </div>
326  </div>
327</div><!-- end menu-container (search and menu widget) -->
328
329
330
331        <!-- Expanded quicknav -->
332        <div id="quicknav" class="col-13">
333          <ul>
334            <li class="about">
335              <ul>
336                <li><a href="../../../../../about/index.html">About</a></li>
337                <li><a href="../../../../../wear/index.html">Wear</a></li>
338                <li><a href="../../../../../tv/index.html">TV</a></li>
339                <li><a href="../../../../../auto/index.html">Auto</a></li>
340              </ul>
341            </li>
342            <li class="design">
343              <ul>
344                <li><a href="../../../../../design/index.html">Get Started</a></li>
345                <li><a href="../../../../../design/devices.html">Devices</a></li>
346                <li><a href="../../../../../design/style/index.html">Style</a></li>
347                <li><a href="../../../../../design/patterns/index.html">Patterns</a></li>
348                <li><a href="../../../../../design/building-blocks/index.html">Building Blocks</a></li>
349                <li><a href="../../../../../design/downloads/index.html">Downloads</a></li>
350                <li><a href="../../../../../design/videos/index.html">Videos</a></li>
351              </ul>
352            </li>
353            <li class="develop">
354              <ul>
355                <li><a href="../../../../../training/index.html"
356                  zh-tw-lang="訓練課程"
357                  zh-cn-lang="培训"
358                  ru-lang="Курсы"
359                  ko-lang="교육"
360                  ja-lang="トレーニング"
361                  es-lang="Capacitación"
362                  >Training</a></li>
363                <li><a href="../../../../../guide/index.html"
364                  zh-tw-lang="API 指南"
365                  zh-cn-lang="API 指南"
366                  ru-lang="Руководства по API"
367                  ko-lang="API 가이드"
368                  ja-lang="API ガイド"
369                  es-lang="Guías de la API"
370                  >API Guides</a></li>
371                <li><a href="../../../../../reference/packages.html"
372                  zh-tw-lang="參考資源"
373                  zh-cn-lang="参考"
374                  ru-lang="Справочник"
375                  ko-lang="참조문서"
376                  ja-lang="リファレンス"
377                  es-lang="Referencia"
378                  >Reference</a></li>
379                <li><a href="../../../../../sdk/index.html"
380                  zh-tw-lang="相關工具"
381                  zh-cn-lang="工具"
382                  ru-lang="Инструменты"
383                  ko-lang="도구"
384                  ja-lang="ツール"
385                  es-lang="Herramientas"
386                  >Tools</a>
387                </li>
388                <li><a href="../../../../../google/index.html">Google Services</a>
389                </li>
390
391              </ul>
392            </li>
393            <li class="distribute last">
394              <ul>
395                <li><a href="../../../../../distribute/googleplay/index.html">Google Play</a></li>
396                <li><a href="../../../../../distribute/essentials/index.html">Essentials</a></li>
397                <li><a href="../../../../../distribute/users/index.html">Get Users</a></li>
398                <li><a href="../../../../../distribute/engage/index.html">Engage &amp; Retain</a></li>
399                <li><a href="../../../../../distribute/monetize/index.html">Monetize</a></li>
400                <li><a href="../../../../../distribute/tools/index.html">Tools &amp; Reference</a></li>
401                <li><a href="../../../../../distribute/stories/index.html">Developer Stories</a></li>
402              </ul>
403            </li>
404          </ul>
405        </div><!-- /Expanded quicknav -->
406      </div><!-- end header-wrap.wrap -->
407    </div><!-- end header -->
408
409
410    <!-- Secondary x-nav -->
411    <div id="nav-x">
412        <div class="wrap" style="position:relative;z-index:1">
413
414
415
416            <a id="helpoutsLink" class="resource resource-card resource-card-6x2x3 resource-card-6x2 helpouts-card"
417              href="http://helpouts.google.com/partner/landing/provider/googledevelopers?utm_source=dac&utm_medium=banner&utm_campaign=android_provider_banner3" target="_blank">
418              <div class="card-bg helpouts-card-bg"></div>
419              <div class="card-info">
420                <div class="helpouts-description">
421                  <div class="text">Help Android Wear and TV developers<br/>
422                    <span id="helpoutsLinkText" class="link-color"
423                    style="display:block;padding-top:5px;text-align:right">Learn more</span>
424                  </div>
425                </div>
426              </div>
427            </a>
428
429
430
431            <ul class="nav-x col-9 develop" style="width:100%">
432                <li class="training"><a href="../../../../../training/index.html"
433                  zh-tw-lang="訓練課程"
434                  zh-cn-lang="培训"
435                  ru-lang="Курсы"
436                  ko-lang="교육"
437                  ja-lang="トレーニング"
438                  es-lang="Capacitación"
439                  >Training</a></li>
440                <li class="guide"><a href="../../../../../guide/index.html"
441                  zh-tw-lang="API 指南"
442                  zh-cn-lang="API 指南"
443                  ru-lang="Руководства по API"
444                  ko-lang="API 가이드"
445                  ja-lang="API ガイド"
446                  es-lang="Guías de la API"
447                  >API Guides</a></li>
448                <li class="reference"><a href="../../../../../reference/packages.html"
449                  zh-tw-lang="參考資源"
450                  zh-cn-lang="参考"
451                  ru-lang="Справочник"
452                  ko-lang="참조문서"
453                  ja-lang="リファレンス"
454                  es-lang="Referencia"
455                  >Reference</a></li>
456                <li class="tools"><a href="../../../../../sdk/index.html"
457                  zh-tw-lang="相關工具"
458                  zh-cn-lang="工具"
459                  ru-lang="Инструменты"
460                  ko-lang="도구"
461                  ja-lang="ツール"
462                  es-lang="Herramientas"
463                  >Tools</a></li>
464                <li class="google"><a href="../../../../../google/index.html"
465                  >Google Services</a>
466                </li>
467
468            </ul>
469        </div>
470    </div>
471    <!-- /Sendondary x-nav DEVELOP -->
472
473
474
475    <div id="searchResults" class="wrap" style="display:none;">
476      <h2 id="searchTitle">Results</h2>
477      <div id="leftSearchControl" class="search-control">Loading...</div>
478    </div>
479  </div> <!--end header-wrapper -->
480
481  <div id="sticky-header">
482    <div>
483      <a class="logo" href="#top"></a>
484      <a class="top" href="#top"></a>
485      <ul class="breadcrumb">
486
487        <li class="current">WearableListView.OnCenterProximityListener</li>
488      </ul>
489    </div>
490  </div>
491
492
493
494
495
496  <div class="wrap clearfix" id="body-content">
497    <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
498      <div id="devdoc-nav">
499      <div id="api-nav-header">
500        <div id="api-level-toggle">
501          <label for="apiLevelCheckbox" class="disabled"
502            title="Select your target API level to dim unavailable APIs">API level: </label>
503          <div class="select-wrapper">
504            <select id="apiLevelSelector">
505              <!-- option elements added by buildApiLevelSelector() -->
506            </select>
507          </div>
508        </div><!-- end toggle -->
509        <div id="api-nav-title">Android APIs</div>
510        </div><!-- end nav header -->
511      <script>
512        var SINCE_DATA = [  ];
513        buildApiLevelSelector();
514      </script>
515
516      <div id="swapper">
517        <div id="nav-panels">
518          <div id="resize-packages-nav">
519            <div id="packages-nav" class="scroll-pane">
520
521              <ul>
522
523    <li class="api apilevel-">
524  <a href="../../../../../reference/android/support/wearable/package-summary.html">android.support.wearable</a></li>
525    <li class="api apilevel-">
526  <a href="../../../../../reference/android/support/wearable/activity/package-summary.html">android.support.wearable.activity</a></li>
527    <li class="api apilevel-">
528  <a href="../../../../../reference/android/support/wearable/companion/package-summary.html">android.support.wearable.companion</a></li>
529    <li class="api apilevel-">
530  <a href="../../../../../reference/android/support/wearable/provider/package-summary.html">android.support.wearable.provider</a></li>
531    <li class="selected api apilevel-">
532  <a href="../../../../../reference/android/support/wearable/view/package-summary.html">android.support.wearable.view</a></li>
533    <li class="api apilevel-">
534  <a href="../../../../../reference/android/support/wearable/watchface/package-summary.html">android.support.wearable.watchface</a></li>
535              </ul><br/>
536
537            </div> <!-- end packages-nav -->
538          </div> <!-- end resize-packages -->
539          <div id="classes-nav" class="scroll-pane">
540
541
542
543            <ul>
544
545
546    <li><h2>Interfaces</h2>
547      <ul>
548          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html">DelayedConfirmationView.DelayedConfirmationListener</a></li>
549          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridPageOptions.html">GridPageOptions</a></li>
550          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html">GridPageOptions.BackgroundListener</a></li>
551          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html">GridViewPager.OnAdapterChangeListener</a></li>
552          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html">GridViewPager.OnPageChangeListener</a></li>
553          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html">WatchViewStub.OnLayoutInflatedListener</a></li>
554          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.ClickListener.html">WearableListView.ClickListener</a></li>
555          <li class="selected api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html">WearableListView.OnCenterProximityListener</a></li>
556          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnScrollListener.html">WearableListView.OnScrollListener</a></li>
557      </ul>
558    </li>
559
560    <li><h2>Classes</h2>
561      <ul>
562          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/BoxInsetLayout.html">BoxInsetLayout</a></li>
563          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html">BoxInsetLayout.LayoutParams</a></li>
564          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CardFragment.html">CardFragment</a></li>
565          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CardFrame.html">CardFrame</a></li>
566          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CardScrollView.html">CardScrollView</a></li>
567          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CircledImageView.html">CircledImageView</a></li>
568          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/CrossfadeDrawable.html">CrossfadeDrawable</a></li>
569          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DelayedConfirmationView.html">DelayedConfirmationView</a></li>
570          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DismissOverlayView.html">DismissOverlayView</a></li>
571          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DotsPageIndicator.html">DotsPageIndicator</a></li>
572          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/FragmentGridPagerAdapter.html">FragmentGridPagerAdapter</a></li>
573          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a></li>
574          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></li>
575          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.LayoutParams.html">GridViewPager.LayoutParams</a></li>
576          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/SimpleAnimatorListener.html">SimpleAnimatorListener</a></li>
577          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WatchViewStub.html">WatchViewStub</a></li>
578          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.html">WearableListView</a></li>
579          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.Adapter.html">WearableListView.Adapter</a></li>
580          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.ViewHolder.html">WearableListView.ViewHolder</a></li>
581      </ul>
582    </li>
583
584
585
586            </ul><br/>
587
588
589          </div><!-- end classes -->
590        </div><!-- end nav-panels -->
591        <div id="nav-tree" style="display:none" class="scroll-pane">
592          <div id="tree-list"></div>
593        </div><!-- end nav-tree -->
594      </div><!-- end swapper -->
595      <div id="nav-swap">
596      <a class="fullscreen">fullscreen</a>
597      <a href='#' onclick='swapNav();return false;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>
598      </div>
599    </div> <!-- end devdoc-nav -->
600    </div> <!-- end side-nav -->
601    <script type="text/javascript">
602      // init fullscreen based on user pref
603      var fullscreen = readCookie("fullscreen");
604      if (fullscreen != 0) {
605        if (fullscreen == "false") {
606          toggleFullscreen(false);
607        } else {
608          toggleFullscreen(true);
609        }
610      }
611      // init nav version for mobile
612      if (isMobile) {
613        swapNav(); // tree view should be used on mobile
614        $('#nav-swap').hide();
615      } else {
616        chooseDefaultNav();
617        if ($("#nav-tree").is(':visible')) {
618          init_default_navtree("../../../../../");
619        }
620      }
621      // scroll the selected page into view
622      $(document).ready(function() {
623        scrollIntoView("packages-nav");
624        scrollIntoView("classes-nav");
625        });
626    </script>
627
628
629
630
631
632<div class="col-12"  id="doc-col">
633
634<div id="api-info-block">
635
636
637
638
639<div class="sum-details-links">
640
641</div><!-- end sum-details-links -->
642<div class="api-level">
643
644
645
646
647</div>
648</div><!-- end api-info-block -->
649
650
651<!-- ======== START OF CLASS DATA ======== -->
652
653<div id="jd-header">
654    public
655    static
656
657
658    interface
659<h1 itemprop="name">WearableListView.OnCenterProximityListener</h1>
660
661
662
663
664
665
666
667
668
669
670
671</div><!-- end header -->
672
673<div id="naMessage"></div>
674
675<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>
676<table class="jd-inheritance-table">
677
678
679    <tr>
680
681        <td colspan="1" class="jd-inheritance-class-cell">android.support.wearable.view.WearableListView.OnCenterProximityListener</td>
682    </tr>
683
684
685</table>
686
687
688
689
690
691
692
693<div class="jd-descr">
694
695
696<h2>Class Overview</h2>
697<p itemprop="articleBody">Interface for receiving callbacks when WearableListView children become or cease to be the
698 central item.
699</p>
700
701
702
703
704
705</div><!-- jd-descr -->
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722<div class="jd-descr">
723
724
725<h2>Summary</h2>
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753<!-- ========== METHOD SUMMARY =========== -->
754<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
755
756
757
758
759    <tr class="alt-color api apilevel-" >
760        <td class="jd-typecol"><nobr>
761            abstract
762
763
764
765
766            void</nobr>
767        </td>
768        <td class="jd-linkcol" width="100%"><nobr>
769        <span class="sympad"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html#onCenterPosition(boolean)">onCenterPosition</a></span>(boolean animate)</nobr>
770
771        <div class="jd-descrdiv">
772          Called when this view becomes central item of the WearableListView.
773
774
775
776        </div>
777
778  </td></tr>
779
780
781
782    <tr class=" api apilevel-" >
783        <td class="jd-typecol"><nobr>
784            abstract
785
786
787
788
789            void</nobr>
790        </td>
791        <td class="jd-linkcol" width="100%"><nobr>
792        <span class="sympad"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html#onNonCenterPosition(boolean)">onNonCenterPosition</a></span>(boolean animate)</nobr>
793
794        <div class="jd-descrdiv">
795          Called when this view stops being the central item of the WearableListView.
796
797
798
799        </div>
800
801  </td></tr>
802
803
804
805</table>
806
807
808
809
810
811
812
813</div><!-- jd-descr (summary) -->
814
815<!-- Details -->
816
817
818
819
820
821
822
823
824<!-- XML Attributes -->
825
826
827<!-- Enum Values -->
828
829
830<!-- Constants -->
831
832
833<!-- Fields -->
834
835
836<!-- Public ctors -->
837
838
839
840<!-- ========= CONSTRUCTOR DETAIL ======== -->
841<!-- Protected ctors -->
842
843
844
845<!-- ========= METHOD DETAIL ======== -->
846<!-- Public methdos -->
847
848<h2>Public Methods</h2>
849
850
851
852<A NAME="onCenterPosition(boolean)"></A>
853
854<div class="jd-details api apilevel-">
855    <h4 class="jd-details-title">
856      <span class="normal">
857        public
858
859
860        abstract
861
862        void
863      </span>
864      <span class="sympad">onCenterPosition</span>
865      <span class="normal">(boolean animate)</span>
866    </h4>
867      <div class="api-level">
868        <div></div>
869
870
871
872      </div>
873    <div class="jd-details-descr">
874
875
876
877
878  <div class="jd-tagdata jd-tagdescr"><p>Called when this view becomes central item of the WearableListView.</p></div>
879  <div class="jd-tagdata">
880      <h5 class="jd-tagtitle">Parameters</h5>
881      <table class="jd-tagtable">
882        <tr>
883          <th>animate</td>
884          <td>Whether you should animate your transition of the View to become the
885                central item. If false, this is the initial setting and you should
886                transition immediately.
887</td>
888        </tr>
889      </table>
890  </div>
891
892    </div>
893</div>
894
895
896<A NAME="onNonCenterPosition(boolean)"></A>
897
898<div class="jd-details api apilevel-">
899    <h4 class="jd-details-title">
900      <span class="normal">
901        public
902
903
904        abstract
905
906        void
907      </span>
908      <span class="sympad">onNonCenterPosition</span>
909      <span class="normal">(boolean animate)</span>
910    </h4>
911      <div class="api-level">
912        <div></div>
913
914
915
916      </div>
917    <div class="jd-details-descr">
918
919
920
921
922  <div class="jd-tagdata jd-tagdescr"><p>Called when this view stops being the central item of the WearableListView.</p></div>
923  <div class="jd-tagdata">
924      <h5 class="jd-tagtitle">Parameters</h5>
925      <table class="jd-tagtable">
926        <tr>
927          <th>animate</td>
928          <td>Whether you should animate your transition of the View to being
929                non central item. If false, this is the initial setting and you should
930                transition immediately.
931</td>
932        </tr>
933      </table>
934  </div>
935
936    </div>
937</div>
938
939
940
941
942
943<!-- ========= METHOD DETAIL ======== -->
944
945
946
947<!-- ========= END OF CLASS DATA ========= -->
948<A NAME="navbar_top"></A>
949
950<div id="footer" class="wrap" >
951
952
953  <div id="copyright">
954
955  Except as noted, this content is licensed under <a
956  href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
957  For details and restrictions, see the <a href="../../../../../license.html">
958  Content License</a>.
959  </div>
960  <div id="build_info">
961
962    Android Wearable Support&nbsp;r &mdash;
963<script src="../../../../../timestamp.js" type="text/javascript"></script>
964<script>document.write(BUILD_TIMESTAMP)</script>
965
966  </div>
967
968
969  <div id="footerlinks">
970
971  <p>
972    <a href="../../../../../about/index.html">About Android</a>&nbsp;&nbsp;|&nbsp;
973    <a href="../../../../../legal.html">Legal</a>&nbsp;&nbsp;|&nbsp;
974    <a href="../../../../../support.html">Support</a>
975  </p>
976  </div>
977
978</div> <!-- end footer -->
979</div> <!-- jd-content -->
980
981</div><!-- end doc-content -->
982
983</div> <!-- end body-content -->
984
985
986
987
988
989
990</body>
991</html>
992