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.ClickListener</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.ClickListener</h1> 179<p> 180<code class="api-signature"> 181 public 182 static 183 184 185 interface 186 WearableListView.ClickListener 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.ClickListener 203 </td> 204 </tr> 205 206 207</table> 208 209 210 211 212<br><hr> 213 214 215 <p>Interface for listening for click events on WearableListView. 216</p> 217 218 219 220 221 222 223 224<h2 class="api-section">Summary</h2> 225 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<!-- ========== METHOD SUMMARY =========== --> 253<table id="pubmethods" class="responsive methods"> 254<tr><th colspan="2"><h3>Public methods</h3></th></tr> 255 256 257 258 259 <tr class="api apilevel-" > 260 261 262 <td><code> 263 abstract 264 265 266 267 268 void</code> 269 </td> 270 271 <td width="100%"> 272 <code> 273 <a href="/reference/android/support/wearable/view/WearableListView.ClickListener.html#onClick(android.support.wearable.view.WearableListView.ViewHolder)">onClick</a>(<a href="/reference/android/support/wearable/view/WearableListView.ViewHolder.html">WearableListView.ViewHolder</a> view) 274 </code> 275 276 <p>Called when the central child of the WearableListView is tapped. 277 278 279</p> 280 281 </td> 282 </tr> 283 284 285 286 <tr class="api apilevel-" > 287 288 289 <td><code> 290 abstract 291 292 293 294 295 void</code> 296 </td> 297 298 <td width="100%"> 299 <code> 300 <a href="/reference/android/support/wearable/view/WearableListView.ClickListener.html#onTopEmptyRegionClick()">onTopEmptyRegionClick</a>() 301 </code> 302 303 <p>Called when the user taps the top third of the WearableListView and no item is present 304 there. 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="onClick(android.support.wearable.view.WearableListView.ViewHolder)"></A> 352 353<div class="api apilevel-"> 354 <h3 class="api-name">onClick</h3> 355 <div class="api-level"> 356 <div></div> 357 358 359 360 </div> 361<pre class="api-signature no-pretty-print"> 362void onClick (<a href="/reference/android/support/wearable/view/WearableListView.ViewHolder.html">WearableListView.ViewHolder</a> view)</pre> 363 364 365 366 367 <p>Called when the central child of the WearableListView is tapped.</p> 368 <table class="responsive"> 369 <tr><th colspan=2>Parameters</th></tr> 370 <tr> 371 <td><code>view</code></td> 372 <td width="100%"> 373 <code>WearableListView.ViewHolder</code>: 374 View that was clicked. 375</td> 376 </tr> 377 </table> 378 379</div> 380 381 382<A NAME="onTopEmptyRegionClick()"></A> 383 384<div class="api apilevel-"> 385 <h3 class="api-name">onTopEmptyRegionClick</h3> 386 <div class="api-level"> 387 <div></div> 388 389 390 391 </div> 392<pre class="api-signature no-pretty-print"> 393void onTopEmptyRegionClick ()</pre> 394 395 396 397 398 <p>Called when the user taps the top third of the WearableListView and no item is present 399 there. This can happen when you are in initial state and the first, top-most item of the 400 WearableListView is centered. 401</p> 402 403</div> 404 405 406 407 408 409<!-- ========= METHOD DETAIL ======== --> 410 411 412 413<!-- ========= END OF CLASS DATA ========= --> 414 415</div><!-- end jd-content --> 416 417 418 419<div class="data-reference-resources-wrapper"> 420 421 <ul data-reference-resources> 422 423 424 <li><h2>Interfaces</h2> 425 <ul> 426 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionChooserView.ActionChooserListener.html">ActionChooserView.ActionChooserListener</a></li> 427 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html">DelayedConfirmationView.DelayedConfirmationListener</a></li> 428 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPageOptions.html">GridPageOptions</a></li> 429 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html">GridPageOptions.BackgroundListener</a></li> 430 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html">GridViewPager.OnAdapterChangeListener</a></li> 431 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html">GridViewPager.OnPageChangeListener</a></li> 432 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html">WatchViewStub.OnLayoutInflatedListener</a></li> 433 <li class="selected api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.ClickListener.html">WearableListView.ClickListener</a></li> 434 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html">WearableListView.OnCenterProximityListener</a></li> 435 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnCentralPositionChangedListener.html">WearableListView.OnCentralPositionChangedListener</a></li> 436 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.OnScrollListener.html">WearableListView.OnScrollListener</a></li> 437 </ul> 438 </li> 439 440 <li><h2>Classes</h2> 441 <ul> 442 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionChooserView.html">ActionChooserView</a></li> 443 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionLabel.html">ActionLabel</a></li> 444 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ActionPage.html">ActionPage</a></li> 445 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/BoxInsetLayout.html">BoxInsetLayout</a></li> 446 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html">BoxInsetLayout.LayoutParams</a></li> 447 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardFragment.html">CardFragment</a></li> 448 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardFrame.html">CardFrame</a></li> 449 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CardScrollView.html">CardScrollView</a></li> 450 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CircledImageView.html">CircledImageView</a></li> 451 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CircularButton.html">CircularButton</a></li> 452 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/CrossfadeDrawable.html">CrossfadeDrawable</a></li> 453 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DelayedConfirmationView.html">DelayedConfirmationView</a></li> 454 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DismissOverlayView.html">DismissOverlayView</a></li> 455 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/DotsPageIndicator.html">DotsPageIndicator</a></li> 456 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/FragmentGridPagerAdapter.html">FragmentGridPagerAdapter</a></li> 457 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridPagerAdapter.html">GridPagerAdapter</a></li> 458 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.html">GridViewPager</a></li> 459 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/GridViewPager.LayoutParams.html">GridViewPager.LayoutParams</a></li> 460 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/ProgressSpinner.html">ProgressSpinner</a></li> 461 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/SimpleAnimatorListener.html">SimpleAnimatorListener</a></li> 462 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WatchViewStub.html">WatchViewStub</a></li> 463 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableFrameLayout.html">WearableFrameLayout</a></li> 464 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableFrameLayout.LayoutParams.html">WearableFrameLayout.LayoutParams</a></li> 465 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.html">WearableListView</a></li> 466 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.Adapter.html">WearableListView.Adapter</a></li> 467 <li class="api apilevel-"><a href="/reference/android/support/wearable/view/WearableListView.ViewHolder.html">WearableListView.ViewHolder</a></li> 468 </ul> 469 </li> 470 471 472 473 </ul> 474 475</div> 476 477 478 479</body> 480</html> 481