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.OnCentralPositionChangedListener | 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.OnCentralPositionChangedListener</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 &amp; Retain</a></li>
396          <li class="dac-nav-item monetize">
397            <a class="dac-nav-link" href="../../../../../distribute/monetize/index.html">Earn</a>
398          </li>
399          <li class="dac-nav-item analyze">
400            <a class="dac-nav-link" href="../../../../../distribute/analyze/index.html">Analyze</a>
401          </li>
402          <li class="dac-nav-item stories">
403            <a class="dac-nav-link" href="../../../../../distribute/stories/index.html">Stories</a>
404          </li>
405        </ul>
406      </li>
407    </ul>
408  </nav>
409  <!-- end navigation-->
410
411
412
413
414
415
416  <div class="wrap clearfix" id="body-content"><div class="cols">
417    <div class="col-4 dac-hidden-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
418      <div id="devdoc-nav">
419      <div id="api-nav-header">
420        <div id="api-level-toggle">
421          <label for="apiLevelCheckbox" class="disabled"
422            title="Select your target API level to dim unavailable APIs">API level: </label>
423          <div class="select-wrapper">
424            <select id="apiLevelSelector">
425              <!-- option elements added by buildApiLevelSelector() -->
426            </select>
427          </div>
428        </div><!-- end toggle -->
429        <div id="api-nav-title">Android APIs</div>
430        </div><!-- end nav header -->
431      <script>
432        var SINCE_DATA = [  ];
433        buildApiLevelSelector();
434      </script>
435
436      <div id="swapper">
437        <div id="nav-panels">
438          <div id="resize-packages-nav">
439            <div id="packages-nav" class="scroll-pane">
440
441              <ul>
442
443    <li class="api apilevel-">
444  <a href="../../../../../reference/android/support/wearable/package-summary.html">android.support.wearable</a></li>
445    <li class="api apilevel-">
446  <a href="../../../../../reference/android/support/wearable/activity/package-summary.html">android.support.wearable.activity</a></li>
447    <li class="api apilevel-">
448  <a href="../../../../../reference/android/support/wearable/companion/package-summary.html">android.support.wearable.companion</a></li>
449    <li class="api apilevel-">
450  <a href="../../../../../reference/android/support/wearable/input/package-summary.html">android.support.wearable.input</a></li>
451    <li class="api apilevel-">
452  <a href="../../../../../reference/android/support/wearable/media/package-summary.html">android.support.wearable.media</a></li>
453    <li class="api apilevel-">
454  <a href="../../../../../reference/android/support/wearable/provider/package-summary.html">android.support.wearable.provider</a></li>
455    <li class="selected api apilevel-">
456  <a href="../../../../../reference/android/support/wearable/view/package-summary.html">android.support.wearable.view</a></li>
457    <li class="api apilevel-">
458  <a href="../../../../../reference/android/support/wearable/watchface/package-summary.html">android.support.wearable.watchface</a></li>
459              </ul><br/>
460
461            </div> <!-- end packages-nav -->
462          </div> <!-- end resize-packages -->
463          <div id="classes-nav" class="scroll-pane">
464
465
466
467            <ul>
468
469
470    <li><h2>Interfaces</h2>
471      <ul>
472          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html">DelayedConfirmationView.DelayedConfirmationListener</a></li>
473          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridPageOptions.html">GridPageOptions</a></li>
474          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html">GridPageOptions.BackgroundListener</a></li>
475          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html">GridViewPager.OnAdapterChangeListener</a></li>
476          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html">GridViewPager.OnPageChangeListener</a></li>
477          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html">WatchViewStub.OnLayoutInflatedListener</a></li>
478          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.ClickListener.html">WearableListView.ClickListener</a></li>
479          <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html">WearableListView.OnCenterProximityListener</a></li>
480          <li class="selected 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.OnCentralPositionChangedListener</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.OnCentralPositionChangedListener</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">A listener interface that can be added to the WearableListView to get notified when the
629 central item is changed.
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.OnCentralPositionChangedListener.html#onCentralPositionChanged(int)">onCentralPositionChanged</a></span>(int centralPosition)</nobr>
701
702        <div class="jd-descrdiv">
703          Called when the central item of the WearableListView changes.
704
705
706
707        </div>
708
709  </td></tr>
710
711
712
713</table>
714
715
716
717
718
719
720
721</div><!-- jd-descr (summary) -->
722
723<!-- Details -->
724
725
726
727
728
729
730
731
732<!-- XML Attributes -->
733
734
735<!-- Enum Values -->
736
737
738<!-- Constants -->
739
740
741<!-- Fields -->
742
743
744<!-- Public ctors -->
745
746
747
748<!-- ========= CONSTRUCTOR DETAIL ======== -->
749<!-- Protected ctors -->
750
751
752
753<!-- ========= METHOD DETAIL ======== -->
754<!-- Public methdos -->
755
756<h2>Public Methods</h2>
757
758
759
760<A NAME="onCentralPositionChanged(int)"></A>
761
762<div class="jd-details api apilevel-">
763    <h4 class="jd-details-title">
764      <span class="normal">
765        public
766
767
768        abstract
769
770        void
771      </span>
772      <span class="sympad">onCentralPositionChanged</span>
773      <span class="normal">(int centralPosition)</span>
774    </h4>
775      <div class="api-level">
776        <div></div>
777
778
779
780      </div>
781    <div class="jd-details-descr">
782
783
784
785
786  <div class="jd-tagdata jd-tagdescr"><p>Called when the central item of the WearableListView changes.</p></div>
787  <div class="jd-tagdata">
788      <h5 class="jd-tagtitle">Parameters</h5>
789      <table class="jd-tagtable">
790        <tr>
791          <th>centralPosition</td>
792          <td>Position of the item in the Adapter.
793</td>
794        </tr>
795      </table>
796  </div>
797
798    </div>
799</div>
800
801
802
803
804
805<!-- ========= METHOD DETAIL ======== -->
806
807
808
809<!-- ========= END OF CLASS DATA ========= -->
810<A NAME="navbar_top"></A>
811</div> <!-- jd-content -->
812
813<div class="wrap">
814  <div class="dac-footer">
815    <div class="cols dac-footer-main">
816      <div class="col-1of2">
817        <a class="dac-footer-getnews" data-modal-toggle="newsletter" href="javascript:;">Get news &amp; tips <span
818          class="dac-fab dac-primary"><i class="dac-sprite dac-mail"></i></span></a>
819      </div>
820      <div class="col-1of2 dac-footer-reachout">
821        <div class="dac-footer-contact">
822          <a class="dac-footer-contact-link" href="http://android-developers.blogspot.com/">Blog</a>
823          <a class="dac-footer-contact-link" href="/support.html">Support</a>
824        </div>
825        <div class="dac-footer-social">
826          <a class="dac-fab dac-footer-social-link" href="https://www.youtube.com/user/androiddevelopers"><i class="dac-sprite dac-youtube"></i></a>
827          <a class="dac-fab dac-footer-social-link" href="https://plus.google.com/+AndroidDevelopers"><i class="dac-sprite dac-gplus"></i></a>
828          <a class="dac-fab dac-footer-social-link" href="https://twitter.com/AndroidDev"><i class="dac-sprite dac-twitter"></i></a>
829        </div>
830      </div>
831    </div>
832
833    <hr class="dac-footer-separator"/>
834
835
836      <p class="dac-footer-copyright">
837
838  Except as noted, this content is licensed under <a
839  href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
840  For details and restrictions, see the <a href="../../../../../license.html">
841  Content License</a>.
842      </p>
843      <p class="dac-footer-build">
844
845    Android Wearable Support&nbsp;r &mdash;
846<script src="../../../../../timestamp.js" type="text/javascript"></script>
847<script>document.write(BUILD_TIMESTAMP)</script>
848
849      </p>
850
851
852    <p class="dac-footer-links">
853      <a href="/about/index.html">About Android</a>
854      <a href="/auto/index.html">Auto</a>
855      <a href="/tv/index.html">TV</a>
856      <a href="/wear/index.html">Wear</a>
857      <a href="/legal.html">Legal</a>
858
859      <span id="language" class="locales">
860        <select name="language" onchange="changeLangPref(this.value, true)">
861          <option value="en" selected="selected">English</option>
862          <option value="es">Español</option>
863          <option value="ja">日本語</option>
864          <option value="ko">한국어</option>
865          <option value="pt-br">Português Brasileiro</option>
866          <option value="ru">Русский</option>
867          <option value="zh-cn">中文(简体)</option>
868          <option value="zh-tw">中文(繁體)</option>
869        </select>
870      </span>
871    </p>
872  </div>
873</div> <!-- end footer -->
874
875<div data-modal="newsletter" data-newsletter data-swap class="dac-modal newsletter">
876  <div class="dac-modal-container">
877    <div class="dac-modal-window">
878      <header class="dac-modal-header">
879        <button class="dac-modal-header-close" data-modal-toggle><i class="dac-sprite dac-close"></i></button>
880        <div class="dac-swap" data-swap-container>
881          <section class="dac-swap-section dac-active dac-down">
882            <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>
883            <p class="dac-modal-header-subtitle">&#42; Required Fields</p>
884          </section>
885          <section class="dac-swap-section dac-up">
886            <h2 class="norule dac-modal-header-title">Hooray!</h2>
887          </section>
888        </div>
889      </header>
890      <div class="dac-swap" data-swap-container>
891        <section class="dac-swap-section dac-active dac-left">
892          <form action="https://docs.google.com/forms/d/1QgnkzbEJIDu9lMEea0mxqWrXUJu0oBCLD7ar23V0Yys/formResponse" class="dac-form" method="post" target="dac-newsletter-iframe">
893            <section class="dac-modal-content">
894              <fieldset class="dac-form-fieldset">
895                <div class="cols">
896                  <div class="col-1of2 newsletter-leftCol">
897                    <div class="dac-form-input-group">
898                      <label for="newsletter-full-name" class="dac-form-floatlabel">Full name</label>
899                      <input type="text" class="dac-form-input" name="entry.1357890476" id="newsletter-full-name" required>
900                      <span class="dac-form-required">*</span>
901                    </div>
902                    <div class="dac-form-input-group">
903                      <label for="newsletter-email" class="dac-form-floatlabel">Email address</label>
904                      <input type="email" class="dac-form-input" name="entry.472100832" id="newsletter-email" required>
905                      <span class="dac-form-required">*</span>
906                    </div>
907                  </div>
908                  <div class="col-1of2 newsletter-rightCol">
909                    <div class="dac-form-input-group">
910                      <label for="newsletter-company" class="dac-form-floatlabel">Company / developer name</label>
911                      <input type="text" class="dac-form-input" name="entry.1664780309" id="newsletter-company">
912                    </div>
913                    <div class="dac-form-input-group">
914                      <label for="newsletter-play-store" class="dac-form-floatlabel">One of your Play Store app URLs</label>
915                      <input type="url" class="dac-form-input" name="entry.47013838" id="newsletter-play-store" required>
916                      <span class="dac-form-required">*</span>
917                    </div>
918                  </div>
919                </div>
920              </fieldset>
921              <fieldset class="dac-form-fieldset">
922                <div class="cols">
923                  <div class="col-1of2 newsletter-leftCol">
924                    <legend class="dac-form-legend">Which best describes your business:<span class="dac-form-required">*</span>
925                    </legend>
926                    <div class="dac-form-radio-group">
927                      <input type="radio" value="Apps" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-app" required>
928                      <label for="newsletter-business-type-app" class="dac-form-radio-button"></label>
929                      <label for="newsletter-business-type-app" class="dac-form-label">Apps</label>
930                    </div>
931                    <div class="dac-form-radio-group">
932                      <input type="radio" value="Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-games" required>
933                      <label for="newsletter-business-type-games" class="dac-form-radio-button"></label>
934                      <label for="newsletter-business-type-games" class="dac-form-label">Games</label>
935                    </div>
936                    <div class="dac-form-radio-group">
937                      <input type="radio" value="Apps and Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-appsgames" required>
938                      <label for="newsletter-business-type-appsgames" class="dac-form-radio-button"></label>
939                      <label for="newsletter-business-type-appsgames" class="dac-form-label">Apps &amp; Games</label>
940                    </div>
941                  </div>
942                  <div class="col-1of2 newsletter-rightCol newsletter-checkboxes">
943                    <div class="dac-form-radio-group">
944                      <div class="dac-media">
945                        <div class="dac-media-figure">
946                          <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.">
947                          <label for="newsletter-add" class="dac-form-checkbox-button"></label>
948                        </div>
949                        <div class="dac-media-body">
950                          <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>
951                        </div>
952                      </div>
953                    </div>
954                    <div class="dac-form-radio-group">
955                      <div class="dac-media">
956                        <div class="dac-media-figure">
957                          <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/).">
958                          <label for="newsletter-terms" class="dac-form-checkbox-button"></label>
959                        </div>
960                        <div class="dac-media-body">
961                          <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>
962                        </div>
963                      </div>
964                    </div>
965                  </div>
966                </div>
967              </fieldset>
968            </section>
969            <footer class="dac-modal-footer">
970              <div class="cols">
971                <div class="col-2of5">
972                </div>
973              </div>
974              <button type="submit" value="Submit" class="dac-fab dac-primary dac-large dac-modal-action"><i class="dac-sprite dac-arrow-right"></i></button>
975            </footer>
976          </form>
977        </section>
978        <section class="dac-swap-section dac-right">
979          <div class="dac-modal-content">
980            <p class="newsletter-success-message">
981              You have successfully signed up for the latest Android developer news and tips.
982            </p>
983          </div>
984        </section>
985      </div>
986    </div>
987  </div>
988</div> <!-- end footer -->
989
990</div><!-- end doc-content -->
991
992</div> <!-- end .cols -->
993</div> <!-- end body-content -->
994
995
996
997
998
999
1000</body>
1001</html>
1002