1 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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119<!DOCTYPE html> 120<html devsite> 121<head> 122 123 124 <meta name="top_category" value="develop" /> 125 126 <meta name="subcategory" value="reference" /> 127 128 129 <meta name="book_path" value="/reference/android/support/wearable/_book.yaml" /> 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145<title>WearableListView.OnCenterProximityListener</title> 146 147 148</head> 149 150<body class="gc-documentation develop reference api apilevel-"> 151<div id="doc-api-level" class="" style="display:none"></div> 152 153 154 155 156<div id="naMessage"></div> 157 158<div id="api-info-block"> 159<div class="api-level"> 160 161 162 163 164</div> 165 166 167 168 169<div class="sum-details-links"> 170 171</div><!-- end sum-details-links --> 172</div><!-- end api-info-block --> 173 174<div class="api apilevel-" id="jd-content"> 175 176<!-- ======== START OF CLASS DATA ======== --> 177 178<h1 class="api-title">WearableListView.OnCenterProximityListener</h1> 179<p> 180<code class="api-signature"> 181 public 182 static 183 184 185 interface 186 WearableListView.OnCenterProximityListener 187</code> 188<br> 189 190 191<code class="api-signature"> 192 193 194 195</code> 196 197</p><table class="jd-inheritance-table"> 198 199 200 <tr> 201 202 <td colspan="1" class="jd-inheritance-class-cell">android.support.wearable.view.WearableListView.OnCenterProximityListener 203 </td> 204 </tr> 205 206 207</table> 208 209 210 211 212<br><hr> 213 214 215 <p>Interface for receiving callbacks when WearableListView children become or cease to be the 216 central item. 217</p> 218 219 220 221 222 223 224 225<h2 class="api-section">Summary</h2> 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253<!-- ========== METHOD SUMMARY =========== --> 254<table id="pubmethods" class="responsive methods"> 255<tr><th colspan="2"><h3>Public methods</h3></th></tr> 256 257 258 259 260 <tr class="api apilevel-" > 261 262 263 <td><code> 264 abstract 265 266 267 268 269 void</code> 270 </td> 271 272 <td width="100%"> 273 <code> 274 <a href="/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html#onCenterPosition(boolean)">onCenterPosition</a>(boolean animate) 275 </code> 276 277 <p>Called when this view becomes central item of the WearableListView. 278 279 280</p> 281 282 </td> 283 </tr> 284 285 286 287 <tr class="api apilevel-" > 288 289 290 <td><code> 291 abstract 292 293 294 295 296 void</code> 297 </td> 298 299 <td width="100%"> 300 <code> 301 <a href="/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html#onNonCenterPosition(boolean)">onNonCenterPosition</a>(boolean animate) 302 </code> 303 304 <p>Called when this view stops being the central item of the WearableListView. 305 306 307</p> 308 309 </td> 310 </tr> 311 312 313 314</table> 315 316 317 318 319 320 321 322 323<!-- XML Attributes --> 324 325 326<!-- Enum Values --> 327 328 329<!-- Constants --> 330 331 332<!-- Fields --> 333 334 335<!-- Public ctors --> 336 337 338 339<!-- ========= CONSTRUCTOR DETAIL ======== --> 340<!-- Protected ctors --> 341 342 343 344<!-- ========= METHOD DETAIL ======== --> 345<!-- Public methdos --> 346 347<h2 class="api-section">Public methods</h2> 348 349 350 351<A NAME="onCenterPosition(boolean)"></A> 352 353<div class="api apilevel-"> 354 <h3 class="api-name">onCenterPosition</h3> 355 <div class="api-level"> 356 <div></div> 357 358 359 360 </div> 361<pre class="api-signature no-pretty-print"> 362void onCenterPosition (boolean animate)</pre> 363 364 365 366 367 <p>Called when this view becomes central item of the WearableListView.</p> 368 <table class="responsive"> 369 <tr><th colspan=2>Parameters</th></tr> 370 <tr> 371 <td><code>animate</code></td> 372 <td width="100%"> 373 <code>boolean</code>: 374 Whether you should animate your transition of the View to become the 375 central item. If false, this is the initial setting and you should 376 transition immediately. 377</td> 378 </tr> 379 </table> 380 381</div> 382 383 384<A NAME="onNonCenterPosition(boolean)"></A> 385 386<div class="api apilevel-"> 387 <h3 class="api-name">onNonCenterPosition</h3> 388 <div class="api-level"> 389 <div></div> 390 391 392 393 </div> 394<pre class="api-signature no-pretty-print"> 395void onNonCenterPosition (boolean animate)</pre> 396 397 398 399 400 <p>Called when this view stops being the central item of the WearableListView.</p> 401 <table class="responsive"> 402 <tr><th colspan=2>Parameters</th></tr> 403 <tr> 404 <td><code>animate</code></td> 405 <td width="100%"> 406 <code>boolean</code>: 407 Whether you should animate your transition of the View to being 408 non central item. If false, this is the initial setting and you should 409 transition immediately. 410</td> 411 </tr> 412 </table> 413 414</div> 415 416 417 418 419 420<!-- ========= METHOD DETAIL ======== --> 421 422 423 424<!-- ========= END OF CLASS DATA ========= --> 425 426</div><!-- end jd-content --> 427 428 429 430<div class="data-reference-resources-wrapper"> 431 432 <ul data-reference-resources> 433 434 435 <li><h2>Interfaces</h2> 436 <ul> 437 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionChooserView.ActionChooserListener.html">ActionChooserView.ActionChooserListener</a></li> 438 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html">DelayedConfirmationView.DelayedConfirmationListener</a></li> 439 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPageOptions.html">GridPageOptions</a></li> 440 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html">GridPageOptions.BackgroundListener</a></li> 441 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html">GridViewPager.OnAdapterChangeListener</a></li> 442 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html">GridViewPager.OnPageChangeListener</a></li> 443 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html">WatchViewStub.OnLayoutInflatedListener</a></li> 444 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.ClickListener.html">WearableListView.ClickListener</a></li> 445 <li class="selected api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html">WearableListView.OnCenterProximityListener</a></li> 446 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnCentralPositionChangedListener.html">WearableListView.OnCentralPositionChangedListener</a></li> 447 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnScrollListener.html">WearableListView.OnScrollListener</a></li> 448 </ul> 449 </li> 450 451 <li><h2>Classes</h2> 452 <ul> 453 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionChooserView.html">ActionChooserView</a></li> 454 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionLabel.html">ActionLabel</a></li> 455 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionPage.html">ActionPage</a></li> 456 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/BoxInsetLayout.html">BoxInsetLayout</a></li> 457 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html">BoxInsetLayout.LayoutParams</a></li> 458 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardFragment.html">CardFragment</a></li> 459 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardFrame.html">CardFrame</a></li> 460 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardScrollView.html">CardScrollView</a></li> 461 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CircledImageView.html">CircledImageView</a></li> 462 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CircularButton.html">CircularButton</a></li> 463 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CrossfadeDrawable.html">CrossfadeDrawable</a></li> 464 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DelayedConfirmationView.html">DelayedConfirmationView</a></li> 465 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DismissOverlayView.html">DismissOverlayView</a></li> 466 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DotsPageIndicator.html">DotsPageIndicator</a></li> 467 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/FragmentGridPagerAdapter.html">FragmentGridPagerAdapter</a></li> 468 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a></li> 469 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></li> 470 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.LayoutParams.html">GridViewPager.LayoutParams</a></li> 471 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ProgressSpinner.html">ProgressSpinner</a></li> 472 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html">SimpleAnimatorListener</a></li> 473 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WatchViewStub.html">WatchViewStub</a></li> 474 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableFrameLayout.html">WearableFrameLayout</a></li> 475 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html">WearableFrameLayout.LayoutParams</a></li> 476 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.html">WearableListView</a></li> 477 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.Adapter.html">WearableListView.Adapter</a></li> 478 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.ViewHolder.html">WearableListView.ViewHolder</a></li> 479 </ul> 480 </li> 481 482 483 484 </ul> 485 486</div> 487 488 489 490</body> 491</html> 492