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>GridViewPager.OnAdapterChangeListener</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 171Summary: 172 173 174 175 176 177 178 179 180 181 182 183 <a href="#pubmethods">Methods</a> 184 185 186 187 188| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 189 190</div><!-- end sum-details-links --> 191</div><!-- end api-info-block --> 192 193<div class="api apilevel-" id="jd-content"> 194 195<!-- ======== START OF CLASS DATA ======== --> 196 197<h1 class="api-title">GridViewPager.OnAdapterChangeListener</h1> 198<p> 199<code class="api-signature"> 200 public 201 static 202 203 204 interface 205 GridViewPager.OnAdapterChangeListener 206</code> 207<br> 208 209 210<code class="api-signature"> 211 212 213 214</code> 215 216</p><table class="jd-inheritance-table"> 217 218 219 <tr> 220 221 <td colspan="1" class="jd-inheritance-class-cell">android.support.wearable.view.GridViewPager.OnAdapterChangeListener 222 </td> 223 </tr> 224 225 226</table> 227 228 <table class="jd-sumtable jd-sumtable-subclasses"><tr><td colspan="2" style="border:none;margin:0;padding:0;"> 229 230 <a href="#" onclick="return toggleInherited(this, null)" id="subclasses-indirect" class="jd-expando-trigger closed" 231 ><img height="34" id="subclasses-indirect-trigger" 232 src="/assets/images/styles/disclosure_down.png" 233 class="jd-expando-trigger-img" /></a>Known Indirect Subclasses 234 235 <div id="subclasses-indirect"> 236 <div id="subclasses-indirect-list" 237 class="jd-inheritedlinks" 238 239 > 240 241 242 <a href="/reference/android/support/wearable/view/DotsPageIndicator.html">DotsPageIndicator</a> 243 244 245 </div> 246 <div id="subclasses-indirect-summary" 247 style="display: none;" 248 > 249 250 <table class="jd-sumtable-expando"> 251 252 <tr class="alt-color api apilevel-" > 253 <td class="jd-linkcol"><a href="/reference/android/support/wearable/view/DotsPageIndicator.html">DotsPageIndicator</a></td> 254 <td class="jd-descrcol" width="100%"> 255 A page indicator for <code><a href="/reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></code> which identifies the current page in relation to all 256 available pages on the current row. 257 258 259 260 </td> 261 </tr> 262 263 264 </table> 265 266 </div> 267 </div> 268 </td></tr></table> 269 270 271 272<br><hr> 273 274 275 <p>Callback interface for responding to a replaced or removed adapter. 276</p> 277 278 279 280 281 282 283 284<h2 class="api-section">Summary</h2> 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312<!-- ========== METHOD SUMMARY =========== --> 313<table id="pubmethods" class="responsive methods"> 314<tr><th colspan="2"><h3>Public methods</h3></th></tr> 315 316 317 318 319 <tr class="api apilevel-" > 320 321 322 <td><code> 323 abstract 324 325 326 327 328 void</code> 329 </td> 330 331 <td width="100%"> 332 <code> 333 <a href="/reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html#onAdapterChanged(android.support.wearable.view.GridPagerAdapter, android.support.wearable.view.GridPagerAdapter)">onAdapterChanged</a>(<a href="/reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a> oldAdapter, <a href="/reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a> newAdapter) 334 </code> 335 336 <p>Called when the adapter is changed with <code><a href="/reference/android/support/wearable/view/GridViewPager.html#setAdapter(android.support.wearable.view.GridPagerAdapter)">setAdapter(GridPagerAdapter)</a></code>. 337 338 339</p> 340 341 </td> 342 </tr> 343 344 345 346 <tr class="api apilevel-" > 347 348 349 <td><code> 350 abstract 351 352 353 354 355 void</code> 356 </td> 357 358 <td width="100%"> 359 <code> 360 <a href="/reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html#onDataSetChanged()">onDataSetChanged</a>() 361 </code> 362 363 <p>Called when a change is made to the content of the current adapter. 364 365 366</p> 367 368 </td> 369 </tr> 370 371 372 373</table> 374 375 376 377 378 379 380 381 382<!-- XML Attributes --> 383 384 385<!-- Enum Values --> 386 387 388<!-- Constants --> 389 390 391<!-- Fields --> 392 393 394<!-- Public ctors --> 395 396 397 398<!-- ========= CONSTRUCTOR DETAIL ======== --> 399<!-- Protected ctors --> 400 401 402 403<!-- ========= METHOD DETAIL ======== --> 404<!-- Public methdos --> 405 406<h2 class="api-section">Public methods</h2> 407 408 409 410<A NAME="onAdapterChanged(android.support.wearable.view.GridPagerAdapter, android.support.wearable.view.GridPagerAdapter)"></A> 411 412<div class="api apilevel-"> 413 <h3 class="api-name">onAdapterChanged</h3> 414 <div class="api-level"> 415 <div></div> 416 417 418 419 </div> 420<pre class="api-signature no-pretty-print"> 421void onAdapterChanged (<a href="/reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a> oldAdapter, 422 <a href="/reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a> newAdapter)</pre> 423 424 425 426 427 <p>Called when the adapter is changed with <code><a href="/reference/android/support/wearable/view/GridViewPager.html#setAdapter(android.support.wearable.view.GridPagerAdapter)">setAdapter(GridPagerAdapter)</a></code>. 428</p> 429 <table class="responsive"> 430 <tr><th colspan=2>Parameters</th></tr> 431 <tr> 432 <td><code>oldAdapter</code></td> 433 <td width="100%"> 434 <code>GridPagerAdapter</code> 435 <!-- no parameter comment --></td> 436 </tr> 437 <tr> 438 <td><code>newAdapter</code></td> 439 <td width="100%"> 440 <code>GridPagerAdapter</code> 441 <!-- no parameter comment --></td> 442 </tr> 443 </table> 444 445</div> 446 447 448<A NAME="onDataSetChanged()"></A> 449 450<div class="api apilevel-"> 451 <h3 class="api-name">onDataSetChanged</h3> 452 <div class="api-level"> 453 <div></div> 454 455 456 457 </div> 458<pre class="api-signature no-pretty-print"> 459void onDataSetChanged ()</pre> 460 461 462 463 464 <p>Called when a change is made to the content of the current adapter. 465</p> 466 467</div> 468 469 470 471 472 473<!-- ========= METHOD DETAIL ======== --> 474 475 476 477<!-- ========= END OF CLASS DATA ========= --> 478 479</div><!-- end jd-content --> 480 481 482 483<div class="data-reference-resources-wrapper"> 484 485 <ul data-reference-resources> 486 487 488 <li><h2>Interfaces</h2> 489 <ul> 490 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionChooserView.ActionChooserListener.html">ActionChooserView.ActionChooserListener</a></li> 491 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html">DelayedConfirmationView.DelayedConfirmationListener</a></li> 492 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPageOptions.html">GridPageOptions</a></li> 493 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html">GridPageOptions.BackgroundListener</a></li> 494 <li class="selected api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html">GridViewPager.OnAdapterChangeListener</a></li> 495 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html">GridViewPager.OnPageChangeListener</a></li> 496 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html">WatchViewStub.OnLayoutInflatedListener</a></li> 497 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.ClickListener.html">WearableListView.ClickListener</a></li> 498 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html">WearableListView.OnCenterProximityListener</a></li> 499 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnCentralPositionChangedListener.html">WearableListView.OnCentralPositionChangedListener</a></li> 500 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnScrollListener.html">WearableListView.OnScrollListener</a></li> 501 </ul> 502 </li> 503 504 <li><h2>Classes</h2> 505 <ul> 506 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionChooserView.html">ActionChooserView</a></li> 507 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionLabel.html">ActionLabel</a></li> 508 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionPage.html">ActionPage</a></li> 509 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/BoxInsetLayout.html">BoxInsetLayout</a></li> 510 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html">BoxInsetLayout.LayoutParams</a></li> 511 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardFragment.html">CardFragment</a></li> 512 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardFrame.html">CardFrame</a></li> 513 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardScrollView.html">CardScrollView</a></li> 514 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CircledImageView.html">CircledImageView</a></li> 515 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CircularButton.html">CircularButton</a></li> 516 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CrossfadeDrawable.html">CrossfadeDrawable</a></li> 517 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DelayedConfirmationView.html">DelayedConfirmationView</a></li> 518 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DismissOverlayView.html">DismissOverlayView</a></li> 519 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DotsPageIndicator.html">DotsPageIndicator</a></li> 520 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/FragmentGridPagerAdapter.html">FragmentGridPagerAdapter</a></li> 521 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a></li> 522 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></li> 523 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.LayoutParams.html">GridViewPager.LayoutParams</a></li> 524 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ProgressSpinner.html">ProgressSpinner</a></li> 525 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html">SimpleAnimatorListener</a></li> 526 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WatchViewStub.html">WatchViewStub</a></li> 527 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableFrameLayout.html">WearableFrameLayout</a></li> 528 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html">WearableFrameLayout.LayoutParams</a></li> 529 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.html">WearableListView</a></li> 530 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.Adapter.html">WearableListView.Adapter</a></li> 531 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.ViewHolder.html">WearableListView.ViewHolder</a></li> 532 </ul> 533 </li> 534 535 536 537 </ul> 538 539</div> 540 541 542 543</body> 544</html> 545