Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 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 | |
Quddus Chong | 900831f | 2015-04-17 15:01:16 -0700 | [diff] [blame] | 98 | |
Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 99 | <html> |
| 100 | <head> |
| 101 | |
| 102 | |
| 103 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 104 | <meta name="viewport" content="width=device-width" /> |
| 105 | |
| 106 | <link rel="shortcut icon" type="image/x-icon" href="../../../../../favicon.ico" /> |
| 107 | <title>UiScrollable | Android Developers</title> |
| 108 | |
| 109 | <!-- STYLESHEETS --> |
| 110 | <link rel="stylesheet" |
| 111 | href="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"> |
Quddus Chong | 900831f | 2015-04-17 15:01:16 -0700 | [diff] [blame] | 114 | <link href="../../../../../assets/css/default.css?v=5" rel="stylesheet" type="text/css"> |
Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 115 | |
| 116 | |
| 117 | <!-- FULLSCREEN STYLESHEET --> |
| 118 | <link href="../../../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen" |
| 119 | type="text/css"> |
| 120 | |
| 121 | |
| 122 | <!-- JAVASCRIPT --> |
| 123 | <script src="http://www.google.com/jsapi" type="text/javascript"></script> |
| 124 | <script src="../../../../../assets/js/android_3p-bundle.js" type="text/javascript"></script> |
| 125 | <script type="text/javascript"> |
| 126 | var toRoot = "../../../../../"; |
| 127 | var metaTags = []; |
| 128 | var devsite = false; |
| 129 | </script> |
Quddus Chong | 900831f | 2015-04-17 15:01:16 -0700 | [diff] [blame] | 130 | <script src="../../../../../assets/js/docs.js?v=3" type="text/javascript"></script> |
| 131 | |
| 132 | |
Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 133 | |
| 134 | <script> |
| 135 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 136 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 137 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 138 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| 139 | |
| 140 | ga('create', 'UA-5831155-1', 'android.com'); |
| 141 | ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker); |
| 142 | ga('send', 'pageview'); |
| 143 | ga('universal.send', 'pageview'); // Send page view for new tracker. |
| 144 | </script> |
| 145 | |
| 146 | </head> |
| 147 | |
| 148 | <body class="gc-documentation |
| 149 | develop reference" itemscope itemtype="http://schema.org/Article"> |
| 150 | <div id="doc-api-level" class="" style="display:none"></div> |
| 151 | <a name="top"></a> |
| 152 | |
| 153 | |
| 154 | <a name="top"></a> |
| 155 | |
Quddus Chong | 900831f | 2015-04-17 15:01:16 -0700 | [diff] [blame] | 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 | |
Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 202 | <!-- Header --> |
| 203 | <div id="header-wrapper"> |
| 204 | <div id="header"> |
| 205 | |
| 206 | |
| 207 | |
| 208 | |
| 209 | <div class="wrap" id="header-wrap"> |
| 210 | <div class="col-3 logo"> |
| 211 | <a href="../../../../../index.html"> |
| 212 | <img src="../../../../../assets/images/dac_logo.png" |
| 213 | srcset="../../../../../assets/images/dac_logo@2x.png 2x" |
| 214 | width="123" height="25" alt="Android Developers" /> |
| 215 | </a> |
| 216 | <div class="btn-quicknav" id="btn-quicknav"> |
| 217 | <a href="#" class="arrow-inactive">Quicknav</a> |
| 218 | <a href="#" class="arrow-active">Quicknav</a> |
| 219 | </div> |
| 220 | </div> |
| 221 | <ul class="nav-x col-9"> |
| 222 | <li class="design"> |
| 223 | <a href="../../../../../design/index.html" |
| 224 | zh-tw-lang="設計" |
| 225 | zh-cn-lang="设计" |
| 226 | ru-lang="Проектирование" |
| 227 | ko-lang="디자인" |
| 228 | ja-lang="設計" |
| 229 | es-lang="Diseñar" |
| 230 | >Design</a></li> |
| 231 | <li class="develop"><a href="../../../../../develop/index.html" |
| 232 | zh-tw-lang="開發" |
| 233 | zh-cn-lang="开发" |
| 234 | ru-lang="Разработка" |
| 235 | ko-lang="개발" |
| 236 | ja-lang="開発" |
| 237 | es-lang="Desarrollar" |
| 238 | >Develop</a></li> |
| 239 | <li class="distribute last"><a href="../../../../../distribute/index.html" |
| 240 | zh-tw-lang="發佈" |
| 241 | zh-cn-lang="分发" |
| 242 | ru-lang="Распространение" |
| 243 | ko-lang="배포" |
| 244 | ja-lang="配布" |
| 245 | es-lang="Distribuir" |
| 246 | >Distribute</a></li> |
| 247 | </ul> |
| 248 | |
| 249 | |
| 250 | |
| 251 | |
| 252 | <div class="menu-container"> |
| 253 | <div class="moremenu"> |
| 254 | <div id="more-btn"></div> |
| 255 | </div> |
| 256 | <div class="morehover" id="moremenu"> |
| 257 | <div class="top"></div> |
| 258 | <div class="mid"> |
| 259 | <div class="header">Links</div> |
| 260 | <ul> |
| 261 | <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li> |
| 262 | <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> |
| 263 | <li><a href="../../../../../about/index.html">About Android</a></li> |
| 264 | </ul> |
| 265 | <div class="header">Android Sites</div> |
| 266 | <ul> |
| 267 | <li><a href="http://www.android.com">Android.com</a></li> |
| 268 | <li class="active"><a>Android Developers</a></li> |
| 269 | <li><a href="http://source.android.com">Android Open Source Project</a></li> |
| 270 | </ul> |
| 271 | |
| 272 | |
| 273 | |
| 274 | |
| 275 | <br class="clearfix" /> |
| 276 | </div><!-- end 'mid' --> |
| 277 | <div class="bottom"></div> |
| 278 | </div><!-- end 'moremenu' --> |
| 279 | |
| 280 | <div class="search" id="search-container"> |
| 281 | <div class="search-inner"> |
| 282 | <div id="search-btn"></div> |
| 283 | <div class="left"></div> |
| 284 | <form onsubmit="return submit_search()"> |
| 285 | <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" |
| 286 | onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" |
| 287 | onkeydown="return search_changed(event, true, '../../../../../')" |
| 288 | onkeyup="return search_changed(event, false, '../../../../../')" /> |
| 289 | </form> |
| 290 | <div class="right"></div> |
| 291 | <a class="close hide">close</a> |
| 292 | <div class="left"></div> |
| 293 | <div class="right"></div> |
| 294 | </div><!-- end search-inner --> |
| 295 | </div><!-- end search-container --> |
| 296 | |
| 297 | <div class="search_filtered_wrapper reference"> |
| 298 | <div class="suggest-card reference no-display"> |
| 299 | <ul class="search_filtered"> |
| 300 | </ul> |
| 301 | </div> |
| 302 | </div> |
| 303 | |
| 304 | <div class="search_filtered_wrapper docs"> |
| 305 | <div class="suggest-card dummy no-display"> </div> |
| 306 | <div class="suggest-card develop no-display"> |
| 307 | <ul class="search_filtered"> |
| 308 | </ul> |
| 309 | <div class="child-card guides no-display"> |
| 310 | </div> |
| 311 | <div class="child-card training no-display"> |
| 312 | </div> |
| 313 | <div class="child-card samples no-display"> |
| 314 | </div> |
| 315 | </div> |
| 316 | <div class="suggest-card design no-display"> |
| 317 | <ul class="search_filtered"> |
| 318 | </ul> |
| 319 | </div> |
| 320 | <div class="suggest-card distribute no-display"> |
| 321 | <ul class="search_filtered"> |
| 322 | </ul> |
| 323 | </div> |
| 324 | </div> |
| 325 | </div><!-- end menu-container (search and menu widget) --> |
| 326 | |
| 327 | |
| 328 | |
| 329 | <!-- Expanded quicknav --> |
| 330 | <div id="quicknav" class="col-13"> |
| 331 | <ul> |
| 332 | <li class="about"> |
| 333 | <ul> |
| 334 | <li><a href="../../../../../about/index.html">About</a></li> |
| 335 | <li><a href="../../../../../wear/index.html">Wear</a></li> |
| 336 | <li><a href="../../../../../tv/index.html">TV</a></li> |
| 337 | <li><a href="../../../../../auto/index.html">Auto</a></li> |
| 338 | </ul> |
| 339 | </li> |
| 340 | <li class="design"> |
| 341 | <ul> |
| 342 | <li><a href="../../../../../design/index.html">Get Started</a></li> |
| 343 | <li><a href="../../../../../design/devices.html">Devices</a></li> |
| 344 | <li><a href="../../../../../design/style/index.html">Style</a></li> |
| 345 | <li><a href="../../../../../design/patterns/index.html">Patterns</a></li> |
| 346 | <li><a href="../../../../../design/building-blocks/index.html">Building Blocks</a></li> |
| 347 | <li><a href="../../../../../design/downloads/index.html">Downloads</a></li> |
| 348 | <li><a href="../../../../../design/videos/index.html">Videos</a></li> |
| 349 | </ul> |
| 350 | </li> |
| 351 | <li class="develop"> |
| 352 | <ul> |
| 353 | <li><a href="../../../../../training/index.html" |
| 354 | zh-tw-lang="訓練課程" |
| 355 | zh-cn-lang="培训" |
| 356 | ru-lang="Курсы" |
| 357 | ko-lang="교육" |
| 358 | ja-lang="トレーニング" |
| 359 | es-lang="Capacitación" |
| 360 | >Training</a></li> |
| 361 | <li><a href="../../../../../guide/index.html" |
| 362 | zh-tw-lang="API 指南" |
| 363 | zh-cn-lang="API 指南" |
| 364 | ru-lang="Руководства по API" |
| 365 | ko-lang="API 가이드" |
| 366 | ja-lang="API ガイド" |
| 367 | es-lang="Guías de la API" |
| 368 | >API Guides</a></li> |
| 369 | <li><a href="../../../../../reference/packages.html" |
| 370 | zh-tw-lang="參考資源" |
| 371 | zh-cn-lang="参考" |
| 372 | ru-lang="Справочник" |
| 373 | ko-lang="참조문서" |
| 374 | ja-lang="リファレンス" |
| 375 | es-lang="Referencia" |
| 376 | >Reference</a></li> |
| 377 | <li><a href="../../../../../sdk/index.html" |
| 378 | zh-tw-lang="相關工具" |
| 379 | zh-cn-lang="工具" |
| 380 | ru-lang="Инструменты" |
| 381 | ko-lang="도구" |
| 382 | ja-lang="ツール" |
| 383 | es-lang="Herramientas" |
| 384 | >Tools</a> |
| 385 | </li> |
| 386 | <li><a href="../../../../../google/index.html">Google Services</a> |
| 387 | </li> |
| 388 | |
| 389 | </ul> |
| 390 | </li> |
| 391 | <li class="distribute last"> |
| 392 | <ul> |
| 393 | <li><a href="../../../../../distribute/googleplay/index.html">Google Play</a></li> |
| 394 | <li><a href="../../../../../distribute/essentials/index.html">Essentials</a></li> |
| 395 | <li><a href="../../../../../distribute/users/index.html">Get Users</a></li> |
| 396 | <li><a href="../../../../../distribute/engage/index.html">Engage & Retain</a></li> |
| 397 | <li><a href="../../../../../distribute/monetize/index.html">Monetize</a></li> |
Quddus Chong | 900831f | 2015-04-17 15:01:16 -0700 | [diff] [blame] | 398 | <li><a href="../../../../../distribute/analyze/index.html">Analyze</a></li> |
Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 399 | <li><a href="../../../../../distribute/tools/index.html">Tools & Reference</a></li> |
| 400 | <li><a href="../../../../../distribute/stories/index.html">Developer Stories</a></li> |
| 401 | </ul> |
| 402 | </li> |
| 403 | </ul> |
| 404 | </div><!-- /Expanded quicknav --> |
| 405 | </div><!-- end header-wrap.wrap --> |
| 406 | </div><!-- end header --> |
| 407 | |
| 408 | |
| 409 | <!-- Secondary x-nav --> |
| 410 | <div id="nav-x"> |
| 411 | <div class="wrap" style="position:relative;z-index:1"> |
| 412 | |
| 413 | |
Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 414 | |
Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 415 | |
| 416 | |
| 417 | <ul class="nav-x col-9 develop" style="width:100%"> |
| 418 | <li class="training"><a href="../../../../../training/index.html" |
| 419 | zh-tw-lang="訓練課程" |
| 420 | zh-cn-lang="培训" |
| 421 | ru-lang="Курсы" |
| 422 | ko-lang="교육" |
| 423 | ja-lang="トレーニング" |
| 424 | es-lang="Capacitación" |
| 425 | >Training</a></li> |
| 426 | <li class="guide"><a href="../../../../../guide/index.html" |
| 427 | zh-tw-lang="API 指南" |
| 428 | zh-cn-lang="API 指南" |
| 429 | ru-lang="Руководства по API" |
| 430 | ko-lang="API 가이드" |
| 431 | ja-lang="API ガイド" |
| 432 | es-lang="Guías de la API" |
| 433 | >API Guides</a></li> |
| 434 | <li class="reference"><a href="../../../../../reference/packages.html" |
| 435 | zh-tw-lang="參考資源" |
| 436 | zh-cn-lang="参考" |
| 437 | ru-lang="Справочник" |
| 438 | ko-lang="참조문서" |
| 439 | ja-lang="リファレンス" |
| 440 | es-lang="Referencia" |
| 441 | >Reference</a></li> |
| 442 | <li class="tools"><a href="../../../../../sdk/index.html" |
| 443 | zh-tw-lang="相關工具" |
| 444 | zh-cn-lang="工具" |
| 445 | ru-lang="Инструменты" |
| 446 | ko-lang="도구" |
| 447 | ja-lang="ツール" |
| 448 | es-lang="Herramientas" |
| 449 | >Tools</a></li> |
| 450 | <li class="google"><a href="../../../../../google/index.html" |
| 451 | >Google Services</a> |
| 452 | </li> |
| 453 | |
| 454 | </ul> |
| 455 | </div> |
| 456 | </div> |
| 457 | <!-- /Sendondary x-nav DEVELOP --> |
| 458 | |
| 459 | |
| 460 | |
| 461 | <div id="searchResults" class="wrap" style="display:none;"> |
| 462 | <h2 id="searchTitle">Results</h2> |
| 463 | <div id="leftSearchControl" class="search-control">Loading...</div> |
| 464 | </div> |
| 465 | </div> <!--end header-wrapper --> |
| 466 | |
| 467 | <div id="sticky-header"> |
| 468 | <div> |
| 469 | <a class="logo" href="#top"></a> |
| 470 | <a class="top" href="#top"></a> |
| 471 | <ul class="breadcrumb"> |
| 472 | |
| 473 | <li class="current">UiScrollable</li> |
| 474 | </ul> |
| 475 | </div> |
| 476 | </div> |
| 477 | |
| 478 | |
| 479 | |
| 480 | |
| 481 | |
| 482 | <div class="wrap clearfix" id="body-content"> |
| 483 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 484 | <div id="devdoc-nav"> |
| 485 | <div id="api-nav-header"> |
| 486 | <div id="api-level-toggle"> |
| 487 | <label for="apiLevelCheckbox" class="disabled" |
| 488 | title="Select your target API level to dim unavailable APIs">API level: </label> |
| 489 | <div class="select-wrapper"> |
| 490 | <select id="apiLevelSelector"> |
| 491 | <!-- option elements added by buildApiLevelSelector() --> |
| 492 | </select> |
| 493 | </div> |
| 494 | </div><!-- end toggle --> |
| 495 | <div id="api-nav-title">Android APIs</div> |
| 496 | </div><!-- end nav header --> |
| 497 | <script> |
| 498 | var SINCE_DATA = [ ]; |
| 499 | buildApiLevelSelector(); |
| 500 | </script> |
| 501 | |
| 502 | <div id="swapper"> |
| 503 | <div id="nav-panels"> |
| 504 | <div id="resize-packages-nav"> |
| 505 | <div id="packages-nav" class="scroll-pane"> |
| 506 | |
| 507 | <ul> |
| 508 | |
| 509 | <li class="api apilevel-"> |
| 510 | <a href="../../../../../reference/android/support/test/package-summary.html">android.support.test</a></li> |
| 511 | <li class="api apilevel-"> |
Quddus Chong | 900831f | 2015-04-17 15:01:16 -0700 | [diff] [blame] | 512 | <a href="../../../../../reference/android/support/test/annotation/package-summary.html">android.support.test.annotation</a></li> |
| 513 | <li class="api apilevel-"> |
Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 514 | <a href="../../../../../reference/android/support/test/espresso/package-summary.html">android.support.test.espresso</a></li> |
| 515 | <li class="api apilevel-"> |
| 516 | <a href="../../../../../reference/android/support/test/espresso/action/package-summary.html">android.support.test.espresso.action</a></li> |
| 517 | <li class="api apilevel-"> |
| 518 | <a href="../../../../../reference/android/support/test/espresso/assertion/package-summary.html">android.support.test.espresso.assertion</a></li> |
| 519 | <li class="api apilevel-"> |
| 520 | <a href="../../../../../reference/android/support/test/espresso/base/package-summary.html">android.support.test.espresso.base</a></li> |
| 521 | <li class="api apilevel-"> |
| 522 | <a href="../../../../../reference/android/support/test/espresso/contrib/package-summary.html">android.support.test.espresso.contrib</a></li> |
| 523 | <li class="api apilevel-"> |
Quddus Chong | 900831f | 2015-04-17 15:01:16 -0700 | [diff] [blame] | 524 | <a href="../../../../../reference/android/support/test/espresso/intent/package-summary.html">android.support.test.espresso.intent</a></li> |
| 525 | <li class="api apilevel-"> |
| 526 | <a href="../../../../../reference/android/support/test/espresso/intent/matcher/package-summary.html">android.support.test.espresso.intent.matcher</a></li> |
| 527 | <li class="api apilevel-"> |
| 528 | <a href="../../../../../reference/android/support/test/espresso/intent/rule/package-summary.html">android.support.test.espresso.intent.rule</a></li> |
| 529 | <li class="api apilevel-"> |
Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 530 | <a href="../../../../../reference/android/support/test/espresso/matcher/package-summary.html">android.support.test.espresso.matcher</a></li> |
| 531 | <li class="api apilevel-"> |
| 532 | <a href="../../../../../reference/android/support/test/espresso/util/package-summary.html">android.support.test.espresso.util</a></li> |
| 533 | <li class="api apilevel-"> |
| 534 | <a href="../../../../../reference/android/support/test/filters/package-summary.html">android.support.test.filters</a></li> |
| 535 | <li class="api apilevel-"> |
Quddus Chong | 900831f | 2015-04-17 15:01:16 -0700 | [diff] [blame] | 536 | <a href="../../../../../reference/android/support/test/rule/package-summary.html">android.support.test.rule</a></li> |
| 537 | <li class="api apilevel-"> |
Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 538 | <a href="../../../../../reference/android/support/test/runner/package-summary.html">android.support.test.runner</a></li> |
| 539 | <li class="api apilevel-"> |
Quddus Chong | 900831f | 2015-04-17 15:01:16 -0700 | [diff] [blame] | 540 | <a href="../../../../../reference/android/support/test/runner/intent/package-summary.html">android.support.test.runner.intent</a></li> |
| 541 | <li class="api apilevel-"> |
Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame] | 542 | <a href="../../../../../reference/android/support/test/runner/lifecycle/package-summary.html">android.support.test.runner.lifecycle</a></li> |
| 543 | <li class="selected api apilevel-"> |
| 544 | <a href="../../../../../reference/android/support/test/uiautomator/package-summary.html">android.support.test.uiautomator</a></li> |
| 545 | </ul><br/> |
| 546 | |
| 547 | </div> <!-- end packages-nav --> |
| 548 | </div> <!-- end resize-packages --> |
| 549 | <div id="classes-nav" class="scroll-pane"> |
| 550 | |
| 551 | |
| 552 | |
| 553 | <ul> |
| 554 | |
| 555 | |
| 556 | <li><h2>Interfaces</h2> |
| 557 | <ul> |
| 558 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/IAutomationSupport.html">IAutomationSupport</a></li> |
| 559 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiWatcher.html">UiWatcher</a></li> |
| 560 | </ul> |
| 561 | </li> |
| 562 | |
| 563 | <li><h2>Classes</h2> |
| 564 | <ul> |
| 565 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/By.html">By</a></li> |
| 566 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/BySelector.html">BySelector</a></li> |
| 567 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/Configurator.html">Configurator</a></li> |
| 568 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/EventCondition.html">EventCondition</a></li> |
| 569 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></li> |
| 570 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiAutomatorInstrumentationTestRunner.html">UiAutomatorInstrumentationTestRunner</a></li> |
| 571 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiAutomatorTestCase.html">UiAutomatorTestCase</a></li> |
| 572 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html">UiCollection</a></li> |
| 573 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiDevice.html">UiDevice</a></li> |
| 574 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></li> |
| 575 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></li> |
| 576 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a></li> |
| 577 | <li class="selected api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a></li> |
| 578 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></li> |
| 579 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/Until.html">Until</a></li> |
| 580 | </ul> |
| 581 | </li> |
| 582 | |
| 583 | <li><h2>Enums</h2> |
| 584 | <ul> |
| 585 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/Direction.html">Direction</a></li> |
| 586 | </ul> |
| 587 | </li> |
| 588 | |
| 589 | <li><h2>Exceptions</h2> |
| 590 | <ul> |
| 591 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/StaleObjectException.html">StaleObjectException</a></li> |
| 592 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></li> |
| 593 | </ul> |
| 594 | </li> |
| 595 | |
| 596 | </ul><br/> |
| 597 | |
| 598 | |
| 599 | </div><!-- end classes --> |
| 600 | </div><!-- end nav-panels --> |
| 601 | <div id="nav-tree" style="display:none" class="scroll-pane"> |
| 602 | <div id="tree-list"></div> |
| 603 | </div><!-- end nav-tree --> |
| 604 | </div><!-- end swapper --> |
| 605 | <div id="nav-swap"> |
| 606 | <a class="fullscreen">fullscreen</a> |
| 607 | <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> |
| 608 | </div> |
| 609 | </div> <!-- end devdoc-nav --> |
| 610 | </div> <!-- end side-nav --> |
| 611 | <script type="text/javascript"> |
| 612 | // init fullscreen based on user pref |
| 613 | var fullscreen = readCookie("fullscreen"); |
| 614 | if (fullscreen != 0) { |
| 615 | if (fullscreen == "false") { |
| 616 | toggleFullscreen(false); |
| 617 | } else { |
| 618 | toggleFullscreen(true); |
| 619 | } |
| 620 | } |
| 621 | // init nav version for mobile |
| 622 | if (isMobile) { |
| 623 | swapNav(); // tree view should be used on mobile |
| 624 | $('#nav-swap').hide(); |
| 625 | } else { |
| 626 | chooseDefaultNav(); |
| 627 | if ($("#nav-tree").is(':visible')) { |
| 628 | init_default_navtree("../../../../../"); |
| 629 | } |
| 630 | } |
| 631 | // scroll the selected page into view |
| 632 | $(document).ready(function() { |
| 633 | scrollIntoView("packages-nav"); |
| 634 | scrollIntoView("classes-nav"); |
| 635 | }); |
| 636 | </script> |
| 637 | |
| 638 | |
| 639 | |
| 640 | |
| 641 | |
| 642 | <div class="col-12" id="doc-col"> |
| 643 | |
| 644 | <div id="api-info-block"> |
| 645 | |
| 646 | |
| 647 | |
| 648 | |
| 649 | |
| 650 | |
| 651 | |
| 652 | |
| 653 | |
| 654 | |
| 655 | |
| 656 | |
| 657 | |
| 658 | |
| 659 | |
| 660 | |
| 661 | |
| 662 | |
| 663 | |
| 664 | |
| 665 | |
| 666 | |
| 667 | |
| 668 | |
| 669 | |
| 670 | |
| 671 | |
| 672 | <div class="sum-details-links"> |
| 673 | |
| 674 | Summary: |
| 675 | |
| 676 | |
| 677 | |
| 678 | |
| 679 | |
| 680 | |
| 681 | <a href="#inhconstants">Inherited Constants</a> |
| 682 | |
| 683 | |
| 684 | |
| 685 | |
| 686 | |
| 687 | | <a href="#pubctors">Ctors</a> |
| 688 | |
| 689 | |
| 690 | |
| 691 | |
| 692 | | <a href="#pubmethods">Methods</a> |
| 693 | |
| 694 | |
| 695 | |
| 696 | | <a href="#promethods">Protected Methods</a> |
| 697 | |
| 698 | |
| 699 | |
| 700 | | <a href="#inhmethods">Inherited Methods</a> |
| 701 | |
| 702 | | <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> |
| 703 | |
| 704 | </div><!-- end sum-details-links --> |
| 705 | <div class="api-level"> |
| 706 | |
| 707 | |
| 708 | |
| 709 | |
| 710 | </div> |
| 711 | </div><!-- end api-info-block --> |
| 712 | |
| 713 | |
| 714 | <!-- ======== START OF CLASS DATA ======== --> |
| 715 | |
| 716 | <div id="jd-header"> |
| 717 | public |
| 718 | |
| 719 | |
| 720 | |
| 721 | class |
| 722 | <h1 itemprop="name">UiScrollable</h1> |
| 723 | |
| 724 | |
| 725 | |
| 726 | |
| 727 | |
| 728 | |
| 729 | |
| 730 | |
| 731 | |
| 732 | |
| 733 | |
| 734 | |
| 735 | extends <a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html">UiCollection</a><br/> |
| 736 | |
| 737 | |
| 738 | |
| 739 | |
| 740 | |
| 741 | |
| 742 | |
| 743 | |
| 744 | |
| 745 | |
| 746 | |
| 747 | |
| 748 | </div><!-- end header --> |
| 749 | |
| 750 | <div id="naMessage"></div> |
| 751 | |
| 752 | <div id="jd-content" class="api apilevel-"> |
| 753 | <table class="jd-inheritance-table"> |
| 754 | |
| 755 | |
| 756 | <tr> |
| 757 | |
| 758 | <td colspan="4" class="jd-inheritance-class-cell">java.lang.Object</td> |
| 759 | </tr> |
| 760 | |
| 761 | |
| 762 | <tr> |
| 763 | |
| 764 | <td class="jd-inheritance-space"> ↳</td> |
| 765 | |
| 766 | <td colspan="3" class="jd-inheritance-class-cell"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">android.support.test.uiautomator.UiObject</a></td> |
| 767 | </tr> |
| 768 | |
| 769 | |
| 770 | <tr> |
| 771 | |
| 772 | <td class="jd-inheritance-space"> </td> |
| 773 | |
| 774 | <td class="jd-inheritance-space"> ↳</td> |
| 775 | |
| 776 | <td colspan="2" class="jd-inheritance-class-cell"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html">android.support.test.uiautomator.UiCollection</a></td> |
| 777 | </tr> |
| 778 | |
| 779 | |
| 780 | <tr> |
| 781 | |
| 782 | <td class="jd-inheritance-space"> </td> |
| 783 | |
| 784 | <td class="jd-inheritance-space"> </td> |
| 785 | |
| 786 | <td class="jd-inheritance-space"> ↳</td> |
| 787 | |
| 788 | <td colspan="1" class="jd-inheritance-class-cell">android.support.test.uiautomator.UiScrollable</td> |
| 789 | </tr> |
| 790 | |
| 791 | |
| 792 | </table> |
| 793 | |
| 794 | |
| 795 | |
| 796 | |
| 797 | |
| 798 | |
| 799 | |
| 800 | <div class="jd-descr"> |
| 801 | |
| 802 | |
| 803 | <h2>Class Overview</h2> |
| 804 | <p itemprop="articleBody">UiScrollable is a <code><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html">UiCollection</a></code> and provides support for searching |
| 805 | for items in scrollable layout elements. This class can be used with |
| 806 | horizontally or vertically scrollable controls.</p> |
| 807 | |
| 808 | |
| 809 | |
| 810 | |
| 811 | |
| 812 | </div><!-- jd-descr --> |
| 813 | |
| 814 | |
| 815 | |
| 816 | |
| 817 | |
| 818 | |
| 819 | |
| 820 | |
| 821 | |
| 822 | |
| 823 | |
| 824 | |
| 825 | |
| 826 | |
| 827 | |
| 828 | |
| 829 | <div class="jd-descr"> |
| 830 | |
| 831 | |
| 832 | <h2>Summary</h2> |
| 833 | |
| 834 | |
| 835 | |
| 836 | |
| 837 | |
| 838 | |
| 839 | |
| 840 | |
| 841 | |
| 842 | |
| 843 | |
| 844 | |
| 845 | |
| 846 | |
| 847 | |
| 848 | |
| 849 | <!-- =========== ENUM CONSTANT SUMMARY =========== --> |
| 850 | <table id="inhconstants" class="jd-sumtable"><tr><th> |
| 851 | <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> |
| 852 | <div style="clear:left;">Inherited Constants</div></th></tr> |
| 853 | |
| 854 | |
| 855 | |
| 856 | |
| 857 | <tr class="api apilevel-" > |
| 858 | <td colspan="12"> |
| 859 | |
| 860 | <a href="#" onclick="return toggleInherited(this, null)" id="inherited-constants-android.support.test.uiautomator.UiObject" class="jd-expando-trigger closed" |
| 861 | ><img id="inherited-constants-android.support.test.uiautomator.UiObject-trigger" |
| 862 | src="../../../../../assets/images/triangle-closed.png" |
| 863 | class="jd-expando-trigger-img" /></a>From class |
| 864 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">android.support.test.uiautomator.UiObject</a> |
| 865 | <div id="inherited-constants-android.support.test.uiautomator.UiObject"> |
| 866 | <div id="inherited-constants-android.support.test.uiautomator.UiObject-list" |
| 867 | class="jd-inheritedlinks"> |
| 868 | </div> |
| 869 | <div id="inherited-constants-android.support.test.uiautomator.UiObject-summary" style="display: none;"> |
| 870 | <table class="jd-sumtable-expando"> |
| 871 | |
| 872 | |
| 873 | |
| 874 | <tr class="alt-color api apilevel-" > |
| 875 | <td class="jd-typecol">int</td> |
| 876 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#FINGER_TOUCH_HALF_WIDTH">FINGER_TOUCH_HALF_WIDTH</a></td> |
| 877 | <td class="jd-descrcol" width="100%"> |
| 878 | |
| 879 | |
| 880 | |
| 881 | |
| 882 | </td> |
| 883 | </tr> |
| 884 | |
| 885 | |
| 886 | <tr class=" api apilevel-" > |
| 887 | <td class="jd-typecol">int</td> |
| 888 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#SWIPE_MARGIN_LIMIT">SWIPE_MARGIN_LIMIT</a></td> |
| 889 | <td class="jd-descrcol" width="100%"> |
| 890 | |
| 891 | |
| 892 | |
| 893 | |
| 894 | </td> |
| 895 | </tr> |
| 896 | |
| 897 | |
| 898 | <tr class="alt-color api apilevel-" > |
| 899 | <td class="jd-typecol">long</td> |
| 900 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#WAIT_FOR_EVENT_TMEOUT">WAIT_FOR_EVENT_TMEOUT</a></td> |
| 901 | <td class="jd-descrcol" width="100%"> |
| 902 | <em> |
| 903 | This constant is deprecated. |
| 904 | use <code><a href="../../../../../reference/android/support/test/uiautomator/Configurator.html#setScrollAcknowledgmentTimeout(long)">setScrollAcknowledgmentTimeout(long)</a></code> |
| 905 | </em> |
| 906 | |
| 907 | |
| 908 | |
| 909 | </td> |
| 910 | </tr> |
| 911 | |
| 912 | |
| 913 | <tr class=" api apilevel-" > |
| 914 | <td class="jd-typecol">long</td> |
| 915 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#WAIT_FOR_SELECTOR_POLL">WAIT_FOR_SELECTOR_POLL</a></td> |
| 916 | <td class="jd-descrcol" width="100%"> |
| 917 | |
| 918 | |
| 919 | |
| 920 | |
| 921 | </td> |
| 922 | </tr> |
| 923 | |
| 924 | |
| 925 | <tr class="alt-color api apilevel-" > |
| 926 | <td class="jd-typecol">long</td> |
| 927 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#WAIT_FOR_SELECTOR_TIMEOUT">WAIT_FOR_SELECTOR_TIMEOUT</a></td> |
| 928 | <td class="jd-descrcol" width="100%"> |
| 929 | <em> |
| 930 | This constant is deprecated. |
| 931 | use <code><a href="../../../../../reference/android/support/test/uiautomator/Configurator.html#setWaitForSelectorTimeout(long)">setWaitForSelectorTimeout(long)</a></code> |
| 932 | </em> |
| 933 | |
| 934 | |
| 935 | |
| 936 | </td> |
| 937 | </tr> |
| 938 | |
| 939 | |
| 940 | <tr class=" api apilevel-" > |
| 941 | <td class="jd-typecol">long</td> |
| 942 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#WAIT_FOR_WINDOW_TMEOUT">WAIT_FOR_WINDOW_TMEOUT</a></td> |
| 943 | <td class="jd-descrcol" width="100%"> |
| 944 | |
| 945 | |
| 946 | |
| 947 | |
| 948 | </td> |
| 949 | </tr> |
| 950 | |
| 951 | |
| 952 | </table> |
| 953 | </div> |
| 954 | </div> |
| 955 | </td></tr> |
| 956 | |
| 957 | |
| 958 | |
| 959 | |
| 960 | </table> |
| 961 | |
| 962 | |
| 963 | |
| 964 | |
| 965 | |
| 966 | |
| 967 | |
| 968 | |
| 969 | |
| 970 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| 971 | <table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr> |
| 972 | |
| 973 | |
| 974 | |
| 975 | |
| 976 | <tr class="alt-color api apilevel-" > |
| 977 | <td class="jd-typecol"><nobr> |
| 978 | |
| 979 | |
| 980 | |
| 981 | |
| 982 | |
| 983 | </nobr> |
| 984 | </td> |
| 985 | <td class="jd-linkcol" width="100%"><nobr> |
| 986 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#UiScrollable(android.support.test.uiautomator.UiSelector)">UiScrollable</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> container)</nobr> |
| 987 | |
| 988 | <div class="jd-descrdiv"> |
| 989 | Constructor. |
| 990 | |
| 991 | |
| 992 | |
| 993 | </div> |
| 994 | |
| 995 | </td></tr> |
| 996 | |
| 997 | |
| 998 | |
| 999 | </table> |
| 1000 | |
| 1001 | |
| 1002 | |
| 1003 | |
| 1004 | |
| 1005 | |
| 1006 | <!-- ========== METHOD SUMMARY =========== --> |
| 1007 | <table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr> |
| 1008 | |
| 1009 | |
| 1010 | |
| 1011 | |
| 1012 | <tr class="alt-color api apilevel-" > |
| 1013 | <td class="jd-typecol"><nobr> |
| 1014 | |
| 1015 | |
| 1016 | |
| 1017 | |
| 1018 | |
| 1019 | boolean</nobr> |
| 1020 | </td> |
| 1021 | <td class="jd-linkcol" width="100%"><nobr> |
| 1022 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#flingBackward()">flingBackward</a></span>()</nobr> |
| 1023 | |
| 1024 | <div class="jd-descrdiv"> |
| 1025 | Performs a backwards fling action with the default number of fling |
| 1026 | steps (5). |
| 1027 | |
| 1028 | |
| 1029 | |
| 1030 | </div> |
| 1031 | |
| 1032 | </td></tr> |
| 1033 | |
| 1034 | |
| 1035 | |
| 1036 | <tr class=" api apilevel-" > |
| 1037 | <td class="jd-typecol"><nobr> |
| 1038 | |
| 1039 | |
| 1040 | |
| 1041 | |
| 1042 | |
| 1043 | boolean</nobr> |
| 1044 | </td> |
| 1045 | <td class="jd-linkcol" width="100%"><nobr> |
| 1046 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#flingForward()">flingForward</a></span>()</nobr> |
| 1047 | |
| 1048 | <div class="jd-descrdiv"> |
| 1049 | Performs a forward fling with the default number of fling steps (5). |
| 1050 | |
| 1051 | |
| 1052 | |
| 1053 | </div> |
| 1054 | |
| 1055 | </td></tr> |
| 1056 | |
| 1057 | |
| 1058 | |
| 1059 | <tr class="alt-color api apilevel-" > |
| 1060 | <td class="jd-typecol"><nobr> |
| 1061 | |
| 1062 | |
| 1063 | |
| 1064 | |
| 1065 | |
| 1066 | boolean</nobr> |
| 1067 | </td> |
| 1068 | <td class="jd-linkcol" width="100%"><nobr> |
| 1069 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#flingToBeginning(int)">flingToBeginning</a></span>(int maxSwipes)</nobr> |
| 1070 | |
| 1071 | <div class="jd-descrdiv"> |
| 1072 | Performs a fling gesture to reach the beginning of a scrollable layout element. |
| 1073 | |
| 1074 | |
| 1075 | |
| 1076 | </div> |
| 1077 | |
| 1078 | </td></tr> |
| 1079 | |
| 1080 | |
| 1081 | |
| 1082 | <tr class=" api apilevel-" > |
| 1083 | <td class="jd-typecol"><nobr> |
| 1084 | |
| 1085 | |
| 1086 | |
| 1087 | |
| 1088 | |
| 1089 | boolean</nobr> |
| 1090 | </td> |
| 1091 | <td class="jd-linkcol" width="100%"><nobr> |
| 1092 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#flingToEnd(int)">flingToEnd</a></span>(int maxSwipes)</nobr> |
| 1093 | |
| 1094 | <div class="jd-descrdiv"> |
| 1095 | Performs a fling gesture to reach the end of a scrollable layout element. |
| 1096 | |
| 1097 | |
| 1098 | |
| 1099 | </div> |
| 1100 | |
| 1101 | </td></tr> |
| 1102 | |
| 1103 | |
| 1104 | |
| 1105 | <tr class="alt-color api apilevel-" > |
| 1106 | <td class="jd-typecol"><nobr> |
| 1107 | |
| 1108 | |
| 1109 | |
| 1110 | |
| 1111 | |
| 1112 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1113 | </td> |
| 1114 | <td class="jd-linkcol" width="100%"><nobr> |
| 1115 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getChildByDescription(android.support.test.uiautomator.UiSelector, java.lang.String)">getChildByDescription</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text)</nobr> |
| 1116 | |
| 1117 | <div class="jd-descrdiv"> |
| 1118 | Searches for a child element in the present scrollable container. |
| 1119 | |
| 1120 | |
| 1121 | |
| 1122 | </div> |
| 1123 | |
| 1124 | </td></tr> |
| 1125 | |
| 1126 | |
| 1127 | |
| 1128 | <tr class=" api apilevel-" > |
| 1129 | <td class="jd-typecol"><nobr> |
| 1130 | |
| 1131 | |
| 1132 | |
| 1133 | |
| 1134 | |
| 1135 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1136 | </td> |
| 1137 | <td class="jd-linkcol" width="100%"><nobr> |
| 1138 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getChildByDescription(android.support.test.uiautomator.UiSelector, java.lang.String, boolean)">getChildByDescription</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text, boolean allowScrollSearch)</nobr> |
| 1139 | |
| 1140 | <div class="jd-descrdiv"> |
| 1141 | Searches for a child element in the present scrollable container. |
| 1142 | |
| 1143 | |
| 1144 | |
| 1145 | </div> |
| 1146 | |
| 1147 | </td></tr> |
| 1148 | |
| 1149 | |
| 1150 | |
| 1151 | <tr class="alt-color api apilevel-" > |
| 1152 | <td class="jd-typecol"><nobr> |
| 1153 | |
| 1154 | |
| 1155 | |
| 1156 | |
| 1157 | |
| 1158 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1159 | </td> |
| 1160 | <td class="jd-linkcol" width="100%"><nobr> |
| 1161 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getChildByInstance(android.support.test.uiautomator.UiSelector, int)">getChildByInstance</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, int instance)</nobr> |
| 1162 | |
| 1163 | <div class="jd-descrdiv"> |
| 1164 | Searches for a child element in the present scrollable container that |
| 1165 | matches the selector you provided. |
| 1166 | |
| 1167 | |
| 1168 | |
| 1169 | </div> |
| 1170 | |
| 1171 | </td></tr> |
| 1172 | |
| 1173 | |
| 1174 | |
| 1175 | <tr class=" api apilevel-" > |
| 1176 | <td class="jd-typecol"><nobr> |
| 1177 | |
| 1178 | |
| 1179 | |
| 1180 | |
| 1181 | |
| 1182 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1183 | </td> |
| 1184 | <td class="jd-linkcol" width="100%"><nobr> |
| 1185 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getChildByText(android.support.test.uiautomator.UiSelector, java.lang.String)">getChildByText</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text)</nobr> |
| 1186 | |
| 1187 | <div class="jd-descrdiv"> |
| 1188 | Searches for a child element in the present scrollable |
| 1189 | container. |
| 1190 | |
| 1191 | |
| 1192 | |
| 1193 | </div> |
| 1194 | |
| 1195 | </td></tr> |
| 1196 | |
| 1197 | |
| 1198 | |
| 1199 | <tr class="alt-color api apilevel-" > |
| 1200 | <td class="jd-typecol"><nobr> |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1207 | </td> |
| 1208 | <td class="jd-linkcol" width="100%"><nobr> |
| 1209 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getChildByText(android.support.test.uiautomator.UiSelector, java.lang.String, boolean)">getChildByText</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text, boolean allowScrollSearch)</nobr> |
| 1210 | |
| 1211 | <div class="jd-descrdiv"> |
| 1212 | Searches for a child element in the present scrollable container. |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | </div> |
| 1217 | |
| 1218 | </td></tr> |
| 1219 | |
| 1220 | |
| 1221 | |
| 1222 | <tr class=" api apilevel-" > |
| 1223 | <td class="jd-typecol"><nobr> |
| 1224 | |
| 1225 | |
| 1226 | |
| 1227 | |
| 1228 | |
| 1229 | int</nobr> |
| 1230 | </td> |
| 1231 | <td class="jd-linkcol" width="100%"><nobr> |
| 1232 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getMaxSearchSwipes()">getMaxSearchSwipes</a></span>()</nobr> |
| 1233 | |
| 1234 | <div class="jd-descrdiv"> |
| 1235 | Gets the maximum number of scrolls allowed when performing a |
| 1236 | scroll action in search of a child element. |
| 1237 | |
| 1238 | |
| 1239 | |
| 1240 | </div> |
| 1241 | |
| 1242 | </td></tr> |
| 1243 | |
| 1244 | |
| 1245 | |
| 1246 | <tr class="alt-color api apilevel-" > |
| 1247 | <td class="jd-typecol"><nobr> |
| 1248 | |
| 1249 | |
| 1250 | |
| 1251 | |
| 1252 | |
| 1253 | double</nobr> |
| 1254 | </td> |
| 1255 | <td class="jd-linkcol" width="100%"><nobr> |
| 1256 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getSwipeDeadZonePercentage()">getSwipeDeadZonePercentage</a></span>()</nobr> |
| 1257 | |
| 1258 | <div class="jd-descrdiv"> |
| 1259 | Returns the percentage of a widget's size that's considered as a no-touch |
| 1260 | zone when swiping. |
| 1261 | |
| 1262 | |
| 1263 | |
| 1264 | </div> |
| 1265 | |
| 1266 | </td></tr> |
| 1267 | |
| 1268 | |
| 1269 | |
| 1270 | <tr class=" api apilevel-" > |
| 1271 | <td class="jd-typecol"><nobr> |
| 1272 | |
| 1273 | |
| 1274 | |
| 1275 | |
| 1276 | |
| 1277 | boolean</nobr> |
| 1278 | </td> |
| 1279 | <td class="jd-linkcol" width="100%"><nobr> |
| 1280 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollBackward(int)">scrollBackward</a></span>(int steps)</nobr> |
| 1281 | |
| 1282 | <div class="jd-descrdiv"> |
| 1283 | Performs a backward scroll. |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | </div> |
| 1288 | |
| 1289 | </td></tr> |
| 1290 | |
| 1291 | |
| 1292 | |
| 1293 | <tr class="alt-color api apilevel-" > |
| 1294 | <td class="jd-typecol"><nobr> |
| 1295 | |
| 1296 | |
| 1297 | |
| 1298 | |
| 1299 | |
| 1300 | boolean</nobr> |
| 1301 | </td> |
| 1302 | <td class="jd-linkcol" width="100%"><nobr> |
| 1303 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollBackward()">scrollBackward</a></span>()</nobr> |
| 1304 | |
| 1305 | <div class="jd-descrdiv"> |
| 1306 | Performs a backward scroll with the default number of scroll steps (55). |
| 1307 | |
| 1308 | |
| 1309 | |
| 1310 | </div> |
| 1311 | |
| 1312 | </td></tr> |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | <tr class=" api apilevel-" > |
| 1317 | <td class="jd-typecol"><nobr> |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | boolean</nobr> |
| 1324 | </td> |
| 1325 | <td class="jd-linkcol" width="100%"><nobr> |
| 1326 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollDescriptionIntoView(java.lang.String)">scrollDescriptionIntoView</a></span>(String text)</nobr> |
| 1327 | |
| 1328 | <div class="jd-descrdiv"> |
| 1329 | Performs a forward scroll action on the scrollable layout element until |
| 1330 | the content-description is found, or until swipe attempts have been exhausted. |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | </div> |
| 1335 | |
| 1336 | </td></tr> |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | <tr class="alt-color api apilevel-" > |
| 1341 | <td class="jd-typecol"><nobr> |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | |
| 1346 | |
| 1347 | boolean</nobr> |
| 1348 | </td> |
| 1349 | <td class="jd-linkcol" width="100%"><nobr> |
| 1350 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollForward()">scrollForward</a></span>()</nobr> |
| 1351 | |
| 1352 | <div class="jd-descrdiv"> |
| 1353 | Performs a forward scroll with the default number of scroll steps (55). |
| 1354 | |
| 1355 | |
| 1356 | |
| 1357 | </div> |
| 1358 | |
| 1359 | </td></tr> |
| 1360 | |
| 1361 | |
| 1362 | |
| 1363 | <tr class=" api apilevel-" > |
| 1364 | <td class="jd-typecol"><nobr> |
| 1365 | |
| 1366 | |
| 1367 | |
| 1368 | |
| 1369 | |
| 1370 | boolean</nobr> |
| 1371 | </td> |
| 1372 | <td class="jd-linkcol" width="100%"><nobr> |
| 1373 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollForward(int)">scrollForward</a></span>(int steps)</nobr> |
| 1374 | |
| 1375 | <div class="jd-descrdiv"> |
| 1376 | Performs a forward scroll. |
| 1377 | |
| 1378 | |
| 1379 | |
| 1380 | </div> |
| 1381 | |
| 1382 | </td></tr> |
| 1383 | |
| 1384 | |
| 1385 | |
| 1386 | <tr class="alt-color api apilevel-" > |
| 1387 | <td class="jd-typecol"><nobr> |
| 1388 | |
| 1389 | |
| 1390 | |
| 1391 | |
| 1392 | |
| 1393 | boolean</nobr> |
| 1394 | </td> |
| 1395 | <td class="jd-linkcol" width="100%"><nobr> |
| 1396 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollIntoView(android.support.test.uiautomator.UiSelector)">scrollIntoView</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</nobr> |
| 1397 | |
| 1398 | <div class="jd-descrdiv"> |
| 1399 | Perform a scroll forward action to move through the scrollable layout |
| 1400 | element until a visible item that matches the selector is found. |
| 1401 | |
| 1402 | |
| 1403 | |
| 1404 | </div> |
| 1405 | |
| 1406 | </td></tr> |
| 1407 | |
| 1408 | |
| 1409 | |
| 1410 | <tr class=" api apilevel-" > |
| 1411 | <td class="jd-typecol"><nobr> |
| 1412 | |
| 1413 | |
| 1414 | |
| 1415 | |
| 1416 | |
| 1417 | boolean</nobr> |
| 1418 | </td> |
| 1419 | <td class="jd-linkcol" width="100%"><nobr> |
| 1420 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollIntoView(android.support.test.uiautomator.UiObject)">scrollIntoView</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> obj)</nobr> |
| 1421 | |
| 1422 | <div class="jd-descrdiv"> |
| 1423 | Perform a forward scroll action to move through the scrollable layout element until |
| 1424 | a visible item that matches the <code><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></code> is found. |
| 1425 | |
| 1426 | |
| 1427 | |
| 1428 | </div> |
| 1429 | |
| 1430 | </td></tr> |
| 1431 | |
| 1432 | |
| 1433 | |
| 1434 | <tr class="alt-color api apilevel-" > |
| 1435 | <td class="jd-typecol"><nobr> |
| 1436 | |
| 1437 | |
| 1438 | |
| 1439 | |
| 1440 | |
| 1441 | boolean</nobr> |
| 1442 | </td> |
| 1443 | <td class="jd-linkcol" width="100%"><nobr> |
| 1444 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollTextIntoView(java.lang.String)">scrollTextIntoView</a></span>(String text)</nobr> |
| 1445 | |
| 1446 | <div class="jd-descrdiv"> |
| 1447 | Performs a forward scroll action on the scrollable layout element until |
| 1448 | the text you provided is visible, or until swipe attempts have been exhausted. |
| 1449 | |
| 1450 | |
| 1451 | |
| 1452 | </div> |
| 1453 | |
| 1454 | </td></tr> |
| 1455 | |
| 1456 | |
| 1457 | |
| 1458 | <tr class=" api apilevel-" > |
| 1459 | <td class="jd-typecol"><nobr> |
| 1460 | |
| 1461 | |
| 1462 | |
| 1463 | |
| 1464 | |
| 1465 | boolean</nobr> |
| 1466 | </td> |
| 1467 | <td class="jd-linkcol" width="100%"><nobr> |
| 1468 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollToBeginning(int)">scrollToBeginning</a></span>(int maxSwipes)</nobr> |
| 1469 | |
| 1470 | <div class="jd-descrdiv"> |
| 1471 | Scrolls to the beginning of a scrollable layout element. |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | </div> |
| 1476 | |
| 1477 | </td></tr> |
| 1478 | |
| 1479 | |
| 1480 | |
| 1481 | <tr class="alt-color api apilevel-" > |
| 1482 | <td class="jd-typecol"><nobr> |
| 1483 | |
| 1484 | |
| 1485 | |
| 1486 | |
| 1487 | |
| 1488 | boolean</nobr> |
| 1489 | </td> |
| 1490 | <td class="jd-linkcol" width="100%"><nobr> |
| 1491 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollToBeginning(int, int)">scrollToBeginning</a></span>(int maxSwipes, int steps)</nobr> |
| 1492 | |
| 1493 | <div class="jd-descrdiv"> |
| 1494 | Scrolls to the beginning of a scrollable layout element. |
| 1495 | |
| 1496 | |
| 1497 | |
| 1498 | </div> |
| 1499 | |
| 1500 | </td></tr> |
| 1501 | |
| 1502 | |
| 1503 | |
| 1504 | <tr class=" api apilevel-" > |
| 1505 | <td class="jd-typecol"><nobr> |
| 1506 | |
| 1507 | |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | boolean</nobr> |
| 1512 | </td> |
| 1513 | <td class="jd-linkcol" width="100%"><nobr> |
| 1514 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollToEnd(int, int)">scrollToEnd</a></span>(int maxSwipes, int steps)</nobr> |
| 1515 | |
| 1516 | <div class="jd-descrdiv"> |
| 1517 | Scrolls to the end of a scrollable layout element. |
| 1518 | |
| 1519 | |
| 1520 | |
| 1521 | </div> |
| 1522 | |
| 1523 | </td></tr> |
| 1524 | |
| 1525 | |
| 1526 | |
| 1527 | <tr class="alt-color api apilevel-" > |
| 1528 | <td class="jd-typecol"><nobr> |
| 1529 | |
| 1530 | |
| 1531 | |
| 1532 | |
| 1533 | |
| 1534 | boolean</nobr> |
| 1535 | </td> |
| 1536 | <td class="jd-linkcol" width="100%"><nobr> |
| 1537 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollToEnd(int)">scrollToEnd</a></span>(int maxSwipes)</nobr> |
| 1538 | |
| 1539 | <div class="jd-descrdiv"> |
| 1540 | Scrolls to the end of a scrollable layout element. |
| 1541 | |
| 1542 | |
| 1543 | |
| 1544 | </div> |
| 1545 | |
| 1546 | </td></tr> |
| 1547 | |
| 1548 | |
| 1549 | |
| 1550 | <tr class=" api apilevel-" > |
| 1551 | <td class="jd-typecol"><nobr> |
| 1552 | |
| 1553 | |
| 1554 | |
| 1555 | |
| 1556 | |
| 1557 | <a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a></nobr> |
| 1558 | </td> |
| 1559 | <td class="jd-linkcol" width="100%"><nobr> |
| 1560 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#setAsHorizontalList()">setAsHorizontalList</a></span>()</nobr> |
| 1561 | |
| 1562 | <div class="jd-descrdiv"> |
| 1563 | Set the direction of swipes to be horizontal when performing scroll actions. |
| 1564 | |
| 1565 | |
| 1566 | |
| 1567 | </div> |
| 1568 | |
| 1569 | </td></tr> |
| 1570 | |
| 1571 | |
| 1572 | |
| 1573 | <tr class="alt-color api apilevel-" > |
| 1574 | <td class="jd-typecol"><nobr> |
| 1575 | |
| 1576 | |
| 1577 | |
| 1578 | |
| 1579 | |
| 1580 | <a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a></nobr> |
| 1581 | </td> |
| 1582 | <td class="jd-linkcol" width="100%"><nobr> |
| 1583 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#setAsVerticalList()">setAsVerticalList</a></span>()</nobr> |
| 1584 | |
| 1585 | <div class="jd-descrdiv"> |
| 1586 | Set the direction of swipes to be vertical when performing scroll actions. |
| 1587 | |
| 1588 | |
| 1589 | |
| 1590 | </div> |
| 1591 | |
| 1592 | </td></tr> |
| 1593 | |
| 1594 | |
| 1595 | |
| 1596 | <tr class=" api apilevel-" > |
| 1597 | <td class="jd-typecol"><nobr> |
| 1598 | |
| 1599 | |
| 1600 | |
| 1601 | |
| 1602 | |
| 1603 | <a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a></nobr> |
| 1604 | </td> |
| 1605 | <td class="jd-linkcol" width="100%"><nobr> |
| 1606 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#setMaxSearchSwipes(int)">setMaxSearchSwipes</a></span>(int swipes)</nobr> |
| 1607 | |
| 1608 | <div class="jd-descrdiv"> |
| 1609 | Sets the maximum number of scrolls allowed when performing a |
| 1610 | scroll action in search of a child element. |
| 1611 | |
| 1612 | |
| 1613 | |
| 1614 | </div> |
| 1615 | |
| 1616 | </td></tr> |
| 1617 | |
| 1618 | |
| 1619 | |
| 1620 | <tr class="alt-color api apilevel-" > |
| 1621 | <td class="jd-typecol"><nobr> |
| 1622 | |
| 1623 | |
| 1624 | |
| 1625 | |
| 1626 | |
| 1627 | <a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a></nobr> |
| 1628 | </td> |
| 1629 | <td class="jd-linkcol" width="100%"><nobr> |
| 1630 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#setSwipeDeadZonePercentage(double)">setSwipeDeadZonePercentage</a></span>(double swipeDeadZonePercentage)</nobr> |
| 1631 | |
| 1632 | <div class="jd-descrdiv"> |
| 1633 | Sets the percentage of a widget's size that's considered as no-touch |
| 1634 | zone when swiping. |
| 1635 | |
| 1636 | |
| 1637 | |
| 1638 | </div> |
| 1639 | |
| 1640 | </td></tr> |
| 1641 | |
| 1642 | |
| 1643 | |
| 1644 | </table> |
| 1645 | |
| 1646 | |
| 1647 | |
| 1648 | |
| 1649 | <!-- ========== METHOD SUMMARY =========== --> |
| 1650 | <table id="promethods" class="jd-sumtable"><tr><th colspan="12">Protected Methods</th></tr> |
| 1651 | |
| 1652 | |
| 1653 | |
| 1654 | |
| 1655 | <tr class="alt-color api apilevel-" > |
| 1656 | <td class="jd-typecol"><nobr> |
| 1657 | |
| 1658 | |
| 1659 | |
| 1660 | |
| 1661 | |
| 1662 | boolean</nobr> |
| 1663 | </td> |
| 1664 | <td class="jd-linkcol" width="100%"><nobr> |
| 1665 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#exists(android.support.test.uiautomator.UiSelector)">exists</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</nobr> |
| 1666 | |
| 1667 | <div class="jd-descrdiv"> |
| 1668 | Used privately when performing swipe searches to decide if an element has become |
| 1669 | visible or not. |
| 1670 | |
| 1671 | |
| 1672 | |
| 1673 | </div> |
| 1674 | |
| 1675 | </td></tr> |
| 1676 | |
| 1677 | |
| 1678 | |
| 1679 | </table> |
| 1680 | |
| 1681 | |
| 1682 | |
| 1683 | |
| 1684 | |
| 1685 | <!-- ========== METHOD SUMMARY =========== --> |
| 1686 | <table id="inhmethods" class="jd-sumtable"><tr><th> |
| 1687 | <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> |
| 1688 | <div style="clear:left;">Inherited Methods</div></th></tr> |
| 1689 | |
| 1690 | |
| 1691 | <tr class="api apilevel-" > |
| 1692 | <td colspan="12"> |
| 1693 | <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.support.test.uiautomator.UiCollection" class="jd-expando-trigger closed" |
| 1694 | ><img id="inherited-methods-android.support.test.uiautomator.UiCollection-trigger" |
| 1695 | src="../../../../../assets/images/triangle-closed.png" |
| 1696 | class="jd-expando-trigger-img" /></a> |
| 1697 | From class |
| 1698 | |
| 1699 | <a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html">android.support.test.uiautomator.UiCollection</a> |
| 1700 | |
| 1701 | <div id="inherited-methods-android.support.test.uiautomator.UiCollection"> |
| 1702 | <div id="inherited-methods-android.support.test.uiautomator.UiCollection-list" |
| 1703 | class="jd-inheritedlinks"> |
| 1704 | </div> |
| 1705 | <div id="inherited-methods-android.support.test.uiautomator.UiCollection-summary" style="display: none;"> |
| 1706 | <table class="jd-sumtable-expando"> |
| 1707 | |
| 1708 | |
| 1709 | |
| 1710 | |
| 1711 | <tr class="alt-color api apilevel-" > |
| 1712 | <td class="jd-typecol"><nobr> |
| 1713 | |
| 1714 | |
| 1715 | |
| 1716 | |
| 1717 | |
| 1718 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1719 | </td> |
| 1720 | <td class="jd-linkcol" width="100%"><nobr> |
| 1721 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html#getChildByDescription(android.support.test.uiautomator.UiSelector, java.lang.String)">getChildByDescription</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text)</nobr> |
| 1722 | |
| 1723 | <div class="jd-descrdiv"> |
| 1724 | Searches for child UI element within the constraints of this UiCollection <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> |
| 1725 | selector. |
| 1726 | |
| 1727 | |
| 1728 | |
| 1729 | </div> |
| 1730 | |
| 1731 | </td></tr> |
| 1732 | |
| 1733 | |
| 1734 | |
| 1735 | <tr class=" api apilevel-" > |
| 1736 | <td class="jd-typecol"><nobr> |
| 1737 | |
| 1738 | |
| 1739 | |
| 1740 | |
| 1741 | |
| 1742 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1743 | </td> |
| 1744 | <td class="jd-linkcol" width="100%"><nobr> |
| 1745 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html#getChildByInstance(android.support.test.uiautomator.UiSelector, int)">getChildByInstance</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, int instance)</nobr> |
| 1746 | |
| 1747 | <div class="jd-descrdiv"> |
| 1748 | Searches for child UI element within the constraints of this UiCollection <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> |
| 1749 | selector. |
| 1750 | |
| 1751 | |
| 1752 | |
| 1753 | </div> |
| 1754 | |
| 1755 | </td></tr> |
| 1756 | |
| 1757 | |
| 1758 | |
| 1759 | <tr class="alt-color api apilevel-" > |
| 1760 | <td class="jd-typecol"><nobr> |
| 1761 | |
| 1762 | |
| 1763 | |
| 1764 | |
| 1765 | |
| 1766 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1767 | </td> |
| 1768 | <td class="jd-linkcol" width="100%"><nobr> |
| 1769 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html#getChildByText(android.support.test.uiautomator.UiSelector, java.lang.String)">getChildByText</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text)</nobr> |
| 1770 | |
| 1771 | <div class="jd-descrdiv"> |
| 1772 | Searches for child UI element within the constraints of this UiCollection <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> |
| 1773 | selector. |
| 1774 | |
| 1775 | |
| 1776 | |
| 1777 | </div> |
| 1778 | |
| 1779 | </td></tr> |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | <tr class=" api apilevel-" > |
| 1784 | <td class="jd-typecol"><nobr> |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | int</nobr> |
| 1791 | </td> |
| 1792 | <td class="jd-linkcol" width="100%"><nobr> |
| 1793 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html#getChildCount(android.support.test.uiautomator.UiSelector)">getChildCount</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern)</nobr> |
| 1794 | |
| 1795 | <div class="jd-descrdiv"> |
| 1796 | Counts child UI element instances matching the <code>childPattern</code> |
| 1797 | argument. |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | </div> |
| 1802 | |
| 1803 | </td></tr> |
| 1804 | |
| 1805 | |
| 1806 | </table> |
| 1807 | </div> |
| 1808 | </div> |
| 1809 | </td></tr> |
| 1810 | |
| 1811 | |
| 1812 | |
| 1813 | <tr class="api apilevel-" > |
| 1814 | <td colspan="12"> |
| 1815 | <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.support.test.uiautomator.UiObject" class="jd-expando-trigger closed" |
| 1816 | ><img id="inherited-methods-android.support.test.uiautomator.UiObject-trigger" |
| 1817 | src="../../../../../assets/images/triangle-closed.png" |
| 1818 | class="jd-expando-trigger-img" /></a> |
| 1819 | From class |
| 1820 | |
| 1821 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">android.support.test.uiautomator.UiObject</a> |
| 1822 | |
| 1823 | <div id="inherited-methods-android.support.test.uiautomator.UiObject"> |
| 1824 | <div id="inherited-methods-android.support.test.uiautomator.UiObject-list" |
| 1825 | class="jd-inheritedlinks"> |
| 1826 | </div> |
| 1827 | <div id="inherited-methods-android.support.test.uiautomator.UiObject-summary" style="display: none;"> |
| 1828 | <table class="jd-sumtable-expando"> |
| 1829 | |
| 1830 | |
| 1831 | |
| 1832 | |
| 1833 | <tr class="alt-color api apilevel-" > |
| 1834 | <td class="jd-typecol"><nobr> |
| 1835 | |
| 1836 | |
| 1837 | |
| 1838 | |
| 1839 | |
| 1840 | void</nobr> |
| 1841 | </td> |
| 1842 | <td class="jd-linkcol" width="100%"><nobr> |
| 1843 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#clearTextField()">clearTextField</a></span>()</nobr> |
| 1844 | |
| 1845 | <div class="jd-descrdiv"> |
| 1846 | Clears the existing text contents in an editable field. |
| 1847 | |
| 1848 | |
| 1849 | |
| 1850 | </div> |
| 1851 | |
| 1852 | </td></tr> |
| 1853 | |
| 1854 | |
| 1855 | |
| 1856 | <tr class=" api apilevel-" > |
| 1857 | <td class="jd-typecol"><nobr> |
| 1858 | |
| 1859 | |
| 1860 | |
| 1861 | |
| 1862 | |
| 1863 | boolean</nobr> |
| 1864 | </td> |
| 1865 | <td class="jd-linkcol" width="100%"><nobr> |
| 1866 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#click()">click</a></span>()</nobr> |
| 1867 | |
| 1868 | <div class="jd-descrdiv"> |
| 1869 | Performs a click at the center of the visible bounds of the UI element represented |
| 1870 | by this UiObject. |
| 1871 | |
| 1872 | |
| 1873 | |
| 1874 | </div> |
| 1875 | |
| 1876 | </td></tr> |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | <tr class="alt-color api apilevel-" > |
| 1881 | <td class="jd-typecol"><nobr> |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | boolean</nobr> |
| 1888 | </td> |
| 1889 | <td class="jd-linkcol" width="100%"><nobr> |
| 1890 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#clickAndWaitForNewWindow(long)">clickAndWaitForNewWindow</a></span>(long timeout)</nobr> |
| 1891 | |
| 1892 | <div class="jd-descrdiv"> |
| 1893 | Performs a click at the center of the visible bounds of the UI element represented |
| 1894 | by this UiObject and waits for window transitions. |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | </div> |
| 1899 | |
| 1900 | </td></tr> |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | <tr class=" api apilevel-" > |
| 1905 | <td class="jd-typecol"><nobr> |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | boolean</nobr> |
| 1912 | </td> |
| 1913 | <td class="jd-linkcol" width="100%"><nobr> |
| 1914 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#clickAndWaitForNewWindow()">clickAndWaitForNewWindow</a></span>()</nobr> |
| 1915 | |
| 1916 | <div class="jd-descrdiv"> |
| 1917 | Waits for window transitions that would typically take longer than the |
| 1918 | usual default timeouts. |
| 1919 | |
| 1920 | |
| 1921 | |
| 1922 | </div> |
| 1923 | |
| 1924 | </td></tr> |
| 1925 | |
| 1926 | |
| 1927 | |
| 1928 | <tr class="alt-color api apilevel-" > |
| 1929 | <td class="jd-typecol"><nobr> |
| 1930 | |
| 1931 | |
| 1932 | |
| 1933 | |
| 1934 | |
| 1935 | boolean</nobr> |
| 1936 | </td> |
| 1937 | <td class="jd-linkcol" width="100%"><nobr> |
| 1938 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#clickBottomRight()">clickBottomRight</a></span>()</nobr> |
| 1939 | |
| 1940 | <div class="jd-descrdiv"> |
| 1941 | Clicks the bottom and right corner of the UI element |
| 1942 | |
| 1943 | |
| 1944 | |
| 1945 | </div> |
| 1946 | |
| 1947 | </td></tr> |
| 1948 | |
| 1949 | |
| 1950 | |
| 1951 | <tr class=" api apilevel-" > |
| 1952 | <td class="jd-typecol"><nobr> |
| 1953 | |
| 1954 | |
| 1955 | |
| 1956 | |
| 1957 | |
| 1958 | boolean</nobr> |
| 1959 | </td> |
| 1960 | <td class="jd-linkcol" width="100%"><nobr> |
| 1961 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#clickTopLeft()">clickTopLeft</a></span>()</nobr> |
| 1962 | |
| 1963 | <div class="jd-descrdiv"> |
| 1964 | Clicks the top and left corner of the UI element |
| 1965 | |
| 1966 | |
| 1967 | |
| 1968 | </div> |
| 1969 | |
| 1970 | </td></tr> |
| 1971 | |
| 1972 | |
| 1973 | |
| 1974 | <tr class="alt-color api apilevel-" > |
| 1975 | <td class="jd-typecol"><nobr> |
| 1976 | |
| 1977 | |
| 1978 | |
| 1979 | |
| 1980 | |
| 1981 | boolean</nobr> |
| 1982 | </td> |
| 1983 | <td class="jd-linkcol" width="100%"><nobr> |
| 1984 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#dragTo(android.support.test.uiautomator.UiObject, int)">dragTo</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> destObj, int steps)</nobr> |
| 1985 | |
| 1986 | <div class="jd-descrdiv"> |
| 1987 | Drags this object to a destination UiObject. |
| 1988 | |
| 1989 | |
| 1990 | |
| 1991 | </div> |
| 1992 | |
| 1993 | </td></tr> |
| 1994 | |
| 1995 | |
| 1996 | |
| 1997 | <tr class=" api apilevel-" > |
| 1998 | <td class="jd-typecol"><nobr> |
| 1999 | |
| 2000 | |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | boolean</nobr> |
| 2005 | </td> |
| 2006 | <td class="jd-linkcol" width="100%"><nobr> |
| 2007 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#dragTo(int, int, int)">dragTo</a></span>(int destX, int destY, int steps)</nobr> |
| 2008 | |
| 2009 | <div class="jd-descrdiv"> |
| 2010 | Drags this object to arbitrary coordinates. |
| 2011 | |
| 2012 | |
| 2013 | |
| 2014 | </div> |
| 2015 | |
| 2016 | </td></tr> |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | <tr class="alt-color api apilevel-" > |
| 2021 | <td class="jd-typecol"><nobr> |
| 2022 | |
| 2023 | |
| 2024 | |
| 2025 | |
| 2026 | |
| 2027 | boolean</nobr> |
| 2028 | </td> |
| 2029 | <td class="jd-linkcol" width="100%"><nobr> |
| 2030 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#exists()">exists</a></span>()</nobr> |
| 2031 | |
| 2032 | <div class="jd-descrdiv"> |
| 2033 | Check if view exists. |
| 2034 | |
| 2035 | |
| 2036 | |
| 2037 | </div> |
| 2038 | |
| 2039 | </td></tr> |
| 2040 | |
| 2041 | |
| 2042 | |
| 2043 | <tr class=" api apilevel-" > |
| 2044 | <td class="jd-typecol"><nobr> |
| 2045 | |
| 2046 | |
| 2047 | |
| 2048 | |
| 2049 | |
| 2050 | AccessibilityNodeInfo</nobr> |
| 2051 | </td> |
| 2052 | <td class="jd-linkcol" width="100%"><nobr> |
| 2053 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#findAccessibilityNodeInfo(long)">findAccessibilityNodeInfo</a></span>(long timeout)</nobr> |
| 2054 | |
| 2055 | <div class="jd-descrdiv"> |
| 2056 | Finds a matching UI element in the accessibility hierarchy, by |
| 2057 | using the selector for this UiObject. |
| 2058 | |
| 2059 | |
| 2060 | |
| 2061 | </div> |
| 2062 | |
| 2063 | </td></tr> |
| 2064 | |
| 2065 | |
| 2066 | |
| 2067 | <tr class="alt-color api apilevel-" > |
| 2068 | <td class="jd-typecol"><nobr> |
| 2069 | |
| 2070 | |
| 2071 | |
| 2072 | |
| 2073 | |
| 2074 | Rect</nobr> |
| 2075 | </td> |
| 2076 | <td class="jd-linkcol" width="100%"><nobr> |
| 2077 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getBounds()">getBounds</a></span>()</nobr> |
| 2078 | |
| 2079 | <div class="jd-descrdiv"> |
| 2080 | Returns the view's <code>bounds</code> property. |
| 2081 | |
| 2082 | |
| 2083 | |
| 2084 | </div> |
| 2085 | |
| 2086 | </td></tr> |
| 2087 | |
| 2088 | |
| 2089 | |
| 2090 | <tr class=" api apilevel-" > |
| 2091 | <td class="jd-typecol"><nobr> |
| 2092 | |
| 2093 | |
| 2094 | |
| 2095 | |
| 2096 | |
| 2097 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 2098 | </td> |
| 2099 | <td class="jd-linkcol" width="100%"><nobr> |
| 2100 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getChild(android.support.test.uiautomator.UiSelector)">getChild</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</nobr> |
| 2101 | |
| 2102 | <div class="jd-descrdiv"> |
| 2103 | Creates a new UiObject for a child view that is under the present UiObject. |
| 2104 | |
| 2105 | |
| 2106 | |
| 2107 | </div> |
| 2108 | |
| 2109 | </td></tr> |
| 2110 | |
| 2111 | |
| 2112 | |
| 2113 | <tr class="alt-color api apilevel-" > |
| 2114 | <td class="jd-typecol"><nobr> |
| 2115 | |
| 2116 | |
| 2117 | |
| 2118 | |
| 2119 | |
| 2120 | int</nobr> |
| 2121 | </td> |
| 2122 | <td class="jd-linkcol" width="100%"><nobr> |
| 2123 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getChildCount()">getChildCount</a></span>()</nobr> |
| 2124 | |
| 2125 | <div class="jd-descrdiv"> |
| 2126 | Counts the child views immediately under the present UiObject. |
| 2127 | |
| 2128 | |
| 2129 | |
| 2130 | </div> |
| 2131 | |
| 2132 | </td></tr> |
| 2133 | |
| 2134 | |
| 2135 | |
| 2136 | <tr class=" api apilevel-" > |
| 2137 | <td class="jd-typecol"><nobr> |
| 2138 | |
| 2139 | |
| 2140 | |
| 2141 | |
| 2142 | |
| 2143 | String</nobr> |
| 2144 | </td> |
| 2145 | <td class="jd-linkcol" width="100%"><nobr> |
| 2146 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getClassName()">getClassName</a></span>()</nobr> |
| 2147 | |
| 2148 | <div class="jd-descrdiv"> |
| 2149 | Retrieves the <code>className</code> property of the UI element. |
| 2150 | |
| 2151 | |
| 2152 | |
| 2153 | </div> |
| 2154 | |
| 2155 | </td></tr> |
| 2156 | |
| 2157 | |
| 2158 | |
| 2159 | <tr class="alt-color api apilevel-" > |
| 2160 | <td class="jd-typecol"><nobr> |
| 2161 | |
| 2162 | |
| 2163 | |
| 2164 | |
| 2165 | |
| 2166 | String</nobr> |
| 2167 | </td> |
| 2168 | <td class="jd-linkcol" width="100%"><nobr> |
| 2169 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getContentDescription()">getContentDescription</a></span>()</nobr> |
| 2170 | |
| 2171 | <div class="jd-descrdiv"> |
| 2172 | Reads the <code>content_desc</code> property of the UI element |
| 2173 | |
| 2174 | |
| 2175 | |
| 2176 | </div> |
| 2177 | |
| 2178 | </td></tr> |
| 2179 | |
| 2180 | |
| 2181 | |
| 2182 | <tr class=" api apilevel-" > |
| 2183 | <td class="jd-typecol"><nobr> |
| 2184 | |
| 2185 | |
| 2186 | |
| 2187 | |
| 2188 | |
| 2189 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 2190 | </td> |
| 2191 | <td class="jd-linkcol" width="100%"><nobr> |
| 2192 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getFromParent(android.support.test.uiautomator.UiSelector)">getFromParent</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</nobr> |
| 2193 | |
| 2194 | <div class="jd-descrdiv"> |
| 2195 | Creates a new UiObject for a sibling view or a child of the sibling view, |
| 2196 | relative to the present UiObject. |
| 2197 | |
| 2198 | |
| 2199 | |
| 2200 | </div> |
| 2201 | |
| 2202 | </td></tr> |
| 2203 | |
| 2204 | |
| 2205 | |
| 2206 | <tr class="alt-color api apilevel-" > |
| 2207 | <td class="jd-typecol"><nobr> |
| 2208 | |
| 2209 | |
| 2210 | |
| 2211 | |
| 2212 | |
| 2213 | String</nobr> |
| 2214 | </td> |
| 2215 | <td class="jd-linkcol" width="100%"><nobr> |
| 2216 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getPackageName()">getPackageName</a></span>()</nobr> |
| 2217 | |
| 2218 | <div class="jd-descrdiv"> |
| 2219 | Reads the view's <code>package</code> property |
| 2220 | |
| 2221 | |
| 2222 | |
| 2223 | </div> |
| 2224 | |
| 2225 | </td></tr> |
| 2226 | |
| 2227 | |
| 2228 | |
| 2229 | <tr class=" api apilevel-" > |
| 2230 | <td class="jd-typecol"><nobr> |
| 2231 | |
| 2232 | |
| 2233 | final |
| 2234 | |
| 2235 | |
| 2236 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 2237 | </td> |
| 2238 | <td class="jd-linkcol" width="100%"><nobr> |
| 2239 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getSelector()">getSelector</a></span>()</nobr> |
| 2240 | |
| 2241 | <div class="jd-descrdiv"> |
| 2242 | Debugging helper. |
| 2243 | |
| 2244 | |
| 2245 | |
| 2246 | </div> |
| 2247 | |
| 2248 | </td></tr> |
| 2249 | |
| 2250 | |
| 2251 | |
| 2252 | <tr class="alt-color api apilevel-" > |
| 2253 | <td class="jd-typecol"><nobr> |
| 2254 | |
| 2255 | |
| 2256 | |
| 2257 | |
| 2258 | |
| 2259 | String</nobr> |
| 2260 | </td> |
| 2261 | <td class="jd-linkcol" width="100%"><nobr> |
| 2262 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getText()">getText</a></span>()</nobr> |
| 2263 | |
| 2264 | <div class="jd-descrdiv"> |
| 2265 | Reads the <code>text</code> property of the UI element |
| 2266 | |
| 2267 | |
| 2268 | |
| 2269 | </div> |
| 2270 | |
| 2271 | </td></tr> |
| 2272 | |
| 2273 | |
| 2274 | |
| 2275 | <tr class=" api apilevel-" > |
| 2276 | <td class="jd-typecol"><nobr> |
| 2277 | |
| 2278 | |
| 2279 | |
| 2280 | |
| 2281 | |
| 2282 | Rect</nobr> |
| 2283 | </td> |
| 2284 | <td class="jd-linkcol" width="100%"><nobr> |
| 2285 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getVisibleBounds()">getVisibleBounds</a></span>()</nobr> |
| 2286 | |
| 2287 | <div class="jd-descrdiv"> |
| 2288 | Returns the visible bounds of the view. |
| 2289 | |
| 2290 | |
| 2291 | |
| 2292 | </div> |
| 2293 | |
| 2294 | </td></tr> |
| 2295 | |
| 2296 | |
| 2297 | |
| 2298 | <tr class="alt-color api apilevel-" > |
| 2299 | <td class="jd-typecol"><nobr> |
| 2300 | |
| 2301 | |
| 2302 | |
| 2303 | |
| 2304 | |
| 2305 | boolean</nobr> |
| 2306 | </td> |
| 2307 | <td class="jd-linkcol" width="100%"><nobr> |
| 2308 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isCheckable()">isCheckable</a></span>()</nobr> |
| 2309 | |
| 2310 | <div class="jd-descrdiv"> |
| 2311 | Checks if the UI element's <code>checkable</code> property is currently true. |
| 2312 | |
| 2313 | |
| 2314 | |
| 2315 | </div> |
| 2316 | |
| 2317 | </td></tr> |
| 2318 | |
| 2319 | |
| 2320 | |
| 2321 | <tr class=" api apilevel-" > |
| 2322 | <td class="jd-typecol"><nobr> |
| 2323 | |
| 2324 | |
| 2325 | |
| 2326 | |
| 2327 | |
| 2328 | boolean</nobr> |
| 2329 | </td> |
| 2330 | <td class="jd-linkcol" width="100%"><nobr> |
| 2331 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isChecked()">isChecked</a></span>()</nobr> |
| 2332 | |
| 2333 | <div class="jd-descrdiv"> |
| 2334 | Check if the UI element's <code>checked</code> property is currently true |
| 2335 | |
| 2336 | |
| 2337 | |
| 2338 | </div> |
| 2339 | |
| 2340 | </td></tr> |
| 2341 | |
| 2342 | |
| 2343 | |
| 2344 | <tr class="alt-color api apilevel-" > |
| 2345 | <td class="jd-typecol"><nobr> |
| 2346 | |
| 2347 | |
| 2348 | |
| 2349 | |
| 2350 | |
| 2351 | boolean</nobr> |
| 2352 | </td> |
| 2353 | <td class="jd-linkcol" width="100%"><nobr> |
| 2354 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isClickable()">isClickable</a></span>()</nobr> |
| 2355 | |
| 2356 | <div class="jd-descrdiv"> |
| 2357 | Checks if the UI element's <code>clickable</code> property is currently true. |
| 2358 | |
| 2359 | |
| 2360 | |
| 2361 | </div> |
| 2362 | |
| 2363 | </td></tr> |
| 2364 | |
| 2365 | |
| 2366 | |
| 2367 | <tr class=" api apilevel-" > |
| 2368 | <td class="jd-typecol"><nobr> |
| 2369 | |
| 2370 | |
| 2371 | |
| 2372 | |
| 2373 | |
| 2374 | boolean</nobr> |
| 2375 | </td> |
| 2376 | <td class="jd-linkcol" width="100%"><nobr> |
| 2377 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isEnabled()">isEnabled</a></span>()</nobr> |
| 2378 | |
| 2379 | <div class="jd-descrdiv"> |
| 2380 | Checks if the UI element's <code>enabled</code> property is currently true. |
| 2381 | |
| 2382 | |
| 2383 | |
| 2384 | </div> |
| 2385 | |
| 2386 | </td></tr> |
| 2387 | |
| 2388 | |
| 2389 | |
| 2390 | <tr class="alt-color api apilevel-" > |
| 2391 | <td class="jd-typecol"><nobr> |
| 2392 | |
| 2393 | |
| 2394 | |
| 2395 | |
| 2396 | |
| 2397 | boolean</nobr> |
| 2398 | </td> |
| 2399 | <td class="jd-linkcol" width="100%"><nobr> |
| 2400 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isFocusable()">isFocusable</a></span>()</nobr> |
| 2401 | |
| 2402 | <div class="jd-descrdiv"> |
| 2403 | Check if the UI element's <code>focusable</code> property is currently true. |
| 2404 | |
| 2405 | |
| 2406 | |
| 2407 | </div> |
| 2408 | |
| 2409 | </td></tr> |
| 2410 | |
| 2411 | |
| 2412 | |
| 2413 | <tr class=" api apilevel-" > |
| 2414 | <td class="jd-typecol"><nobr> |
| 2415 | |
| 2416 | |
| 2417 | |
| 2418 | |
| 2419 | |
| 2420 | boolean</nobr> |
| 2421 | </td> |
| 2422 | <td class="jd-linkcol" width="100%"><nobr> |
| 2423 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isFocused()">isFocused</a></span>()</nobr> |
| 2424 | |
| 2425 | <div class="jd-descrdiv"> |
| 2426 | Check if the UI element's <code>focused</code> property is currently true |
| 2427 | |
| 2428 | |
| 2429 | |
| 2430 | </div> |
| 2431 | |
| 2432 | </td></tr> |
| 2433 | |
| 2434 | |
| 2435 | |
| 2436 | <tr class="alt-color api apilevel-" > |
| 2437 | <td class="jd-typecol"><nobr> |
| 2438 | |
| 2439 | |
| 2440 | |
| 2441 | |
| 2442 | |
| 2443 | boolean</nobr> |
| 2444 | </td> |
| 2445 | <td class="jd-linkcol" width="100%"><nobr> |
| 2446 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isLongClickable()">isLongClickable</a></span>()</nobr> |
| 2447 | |
| 2448 | <div class="jd-descrdiv"> |
| 2449 | Check if the view's <code>long-clickable</code> property is currently true |
| 2450 | |
| 2451 | |
| 2452 | |
| 2453 | </div> |
| 2454 | |
| 2455 | </td></tr> |
| 2456 | |
| 2457 | |
| 2458 | |
| 2459 | <tr class=" api apilevel-" > |
| 2460 | <td class="jd-typecol"><nobr> |
| 2461 | |
| 2462 | |
| 2463 | |
| 2464 | |
| 2465 | |
| 2466 | boolean</nobr> |
| 2467 | </td> |
| 2468 | <td class="jd-linkcol" width="100%"><nobr> |
| 2469 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isScrollable()">isScrollable</a></span>()</nobr> |
| 2470 | |
| 2471 | <div class="jd-descrdiv"> |
| 2472 | Check if the view's <code>scrollable</code> property is currently true |
| 2473 | |
| 2474 | |
| 2475 | |
| 2476 | </div> |
| 2477 | |
| 2478 | </td></tr> |
| 2479 | |
| 2480 | |
| 2481 | |
| 2482 | <tr class="alt-color api apilevel-" > |
| 2483 | <td class="jd-typecol"><nobr> |
| 2484 | |
| 2485 | |
| 2486 | |
| 2487 | |
| 2488 | |
| 2489 | boolean</nobr> |
| 2490 | </td> |
| 2491 | <td class="jd-linkcol" width="100%"><nobr> |
| 2492 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isSelected()">isSelected</a></span>()</nobr> |
| 2493 | |
| 2494 | <div class="jd-descrdiv"> |
| 2495 | Checks if the UI element's <code>selected</code> property is currently true. |
| 2496 | |
| 2497 | |
| 2498 | |
| 2499 | </div> |
| 2500 | |
| 2501 | </td></tr> |
| 2502 | |
| 2503 | |
| 2504 | |
| 2505 | <tr class=" api apilevel-" > |
| 2506 | <td class="jd-typecol"><nobr> |
| 2507 | |
| 2508 | |
| 2509 | |
| 2510 | |
| 2511 | |
| 2512 | boolean</nobr> |
| 2513 | </td> |
| 2514 | <td class="jd-linkcol" width="100%"><nobr> |
| 2515 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#longClick()">longClick</a></span>()</nobr> |
| 2516 | |
| 2517 | <div class="jd-descrdiv"> |
| 2518 | Long clicks the center of the visible bounds of the UI element |
| 2519 | |
| 2520 | |
| 2521 | |
| 2522 | </div> |
| 2523 | |
| 2524 | </td></tr> |
| 2525 | |
| 2526 | |
| 2527 | |
| 2528 | <tr class="alt-color api apilevel-" > |
| 2529 | <td class="jd-typecol"><nobr> |
| 2530 | |
| 2531 | |
| 2532 | |
| 2533 | |
| 2534 | |
| 2535 | boolean</nobr> |
| 2536 | </td> |
| 2537 | <td class="jd-linkcol" width="100%"><nobr> |
| 2538 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#longClickBottomRight()">longClickBottomRight</a></span>()</nobr> |
| 2539 | |
| 2540 | <div class="jd-descrdiv"> |
| 2541 | Long clicks bottom and right corner of the UI element |
| 2542 | |
| 2543 | |
| 2544 | |
| 2545 | </div> |
| 2546 | |
| 2547 | </td></tr> |
| 2548 | |
| 2549 | |
| 2550 | |
| 2551 | <tr class=" api apilevel-" > |
| 2552 | <td class="jd-typecol"><nobr> |
| 2553 | |
| 2554 | |
| 2555 | |
| 2556 | |
| 2557 | |
| 2558 | boolean</nobr> |
| 2559 | </td> |
| 2560 | <td class="jd-linkcol" width="100%"><nobr> |
| 2561 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#longClickTopLeft()">longClickTopLeft</a></span>()</nobr> |
| 2562 | |
| 2563 | <div class="jd-descrdiv"> |
| 2564 | Long clicks on the top and left corner of the UI element |
| 2565 | |
| 2566 | |
| 2567 | |
| 2568 | </div> |
| 2569 | |
| 2570 | </td></tr> |
| 2571 | |
| 2572 | |
| 2573 | |
| 2574 | <tr class="alt-color api apilevel-" > |
| 2575 | <td class="jd-typecol"><nobr> |
| 2576 | |
| 2577 | |
| 2578 | |
| 2579 | |
| 2580 | |
| 2581 | boolean</nobr> |
| 2582 | </td> |
| 2583 | <td class="jd-linkcol" width="100%"><nobr> |
| 2584 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#performMultiPointerGesture(android.view.MotionEvent.PointerCoords[]...)">performMultiPointerGesture</a></span>(PointerCoords... touches)</nobr> |
| 2585 | |
| 2586 | <div class="jd-descrdiv"> |
| 2587 | Performs a multi-touch gesture. |
| 2588 | |
| 2589 | |
| 2590 | |
| 2591 | </div> |
| 2592 | |
| 2593 | </td></tr> |
| 2594 | |
| 2595 | |
| 2596 | |
| 2597 | <tr class=" api apilevel-" > |
| 2598 | <td class="jd-typecol"><nobr> |
| 2599 | |
| 2600 | |
| 2601 | |
| 2602 | |
| 2603 | |
| 2604 | boolean</nobr> |
| 2605 | </td> |
| 2606 | <td class="jd-linkcol" width="100%"><nobr> |
| 2607 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#performTwoPointerGesture(android.graphics.Point, android.graphics.Point, android.graphics.Point, android.graphics.Point, int)">performTwoPointerGesture</a></span>(Point startPoint1, Point startPoint2, Point endPoint1, Point endPoint2, int steps)</nobr> |
| 2608 | |
| 2609 | <div class="jd-descrdiv"> |
| 2610 | Generates a two-pointer gesture with arbitrary starting and ending points. |
| 2611 | |
| 2612 | |
| 2613 | |
| 2614 | </div> |
| 2615 | |
| 2616 | </td></tr> |
| 2617 | |
| 2618 | |
| 2619 | |
| 2620 | <tr class="alt-color api apilevel-" > |
| 2621 | <td class="jd-typecol"><nobr> |
| 2622 | |
| 2623 | |
| 2624 | |
| 2625 | |
| 2626 | |
| 2627 | boolean</nobr> |
| 2628 | </td> |
| 2629 | <td class="jd-linkcol" width="100%"><nobr> |
| 2630 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#pinchIn(int, int)">pinchIn</a></span>(int percent, int steps)</nobr> |
| 2631 | |
| 2632 | <div class="jd-descrdiv"> |
| 2633 | Performs a two-pointer gesture, where each pointer moves diagonally |
| 2634 | toward the other, from the edges to the center of this UiObject . |
| 2635 | |
| 2636 | |
| 2637 | |
| 2638 | </div> |
| 2639 | |
| 2640 | </td></tr> |
| 2641 | |
| 2642 | |
| 2643 | |
| 2644 | <tr class=" api apilevel-" > |
| 2645 | <td class="jd-typecol"><nobr> |
| 2646 | |
| 2647 | |
| 2648 | |
| 2649 | |
| 2650 | |
| 2651 | boolean</nobr> |
| 2652 | </td> |
| 2653 | <td class="jd-linkcol" width="100%"><nobr> |
| 2654 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#pinchOut(int, int)">pinchOut</a></span>(int percent, int steps)</nobr> |
| 2655 | |
| 2656 | <div class="jd-descrdiv"> |
| 2657 | Performs a two-pointer gesture, where each pointer moves diagonally |
| 2658 | opposite across the other, from the center out towards the edges of the |
| 2659 | this UiObject. |
| 2660 | |
| 2661 | |
| 2662 | |
| 2663 | </div> |
| 2664 | |
| 2665 | </td></tr> |
| 2666 | |
| 2667 | |
| 2668 | |
| 2669 | <tr class="alt-color api apilevel-" > |
| 2670 | <td class="jd-typecol"><nobr> |
| 2671 | |
| 2672 | |
| 2673 | |
| 2674 | |
| 2675 | |
| 2676 | boolean</nobr> |
| 2677 | </td> |
| 2678 | <td class="jd-linkcol" width="100%"><nobr> |
| 2679 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#setText(java.lang.String)">setText</a></span>(String text)</nobr> |
| 2680 | |
| 2681 | <div class="jd-descrdiv"> |
| 2682 | Sets the text in an editable field, after clearing the field's content. |
| 2683 | |
| 2684 | |
| 2685 | |
| 2686 | </div> |
| 2687 | |
| 2688 | </td></tr> |
| 2689 | |
| 2690 | |
| 2691 | |
| 2692 | <tr class=" api apilevel-" > |
| 2693 | <td class="jd-typecol"><nobr> |
| 2694 | |
| 2695 | |
| 2696 | |
| 2697 | |
| 2698 | |
| 2699 | boolean</nobr> |
| 2700 | </td> |
| 2701 | <td class="jd-linkcol" width="100%"><nobr> |
| 2702 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#swipeDown(int)">swipeDown</a></span>(int steps)</nobr> |
| 2703 | |
| 2704 | <div class="jd-descrdiv"> |
| 2705 | Performs the swipe down action on the UiObject. |
| 2706 | |
| 2707 | |
| 2708 | |
| 2709 | </div> |
| 2710 | |
| 2711 | </td></tr> |
| 2712 | |
| 2713 | |
| 2714 | |
| 2715 | <tr class="alt-color api apilevel-" > |
| 2716 | <td class="jd-typecol"><nobr> |
| 2717 | |
| 2718 | |
| 2719 | |
| 2720 | |
| 2721 | |
| 2722 | boolean</nobr> |
| 2723 | </td> |
| 2724 | <td class="jd-linkcol" width="100%"><nobr> |
| 2725 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#swipeLeft(int)">swipeLeft</a></span>(int steps)</nobr> |
| 2726 | |
| 2727 | <div class="jd-descrdiv"> |
| 2728 | Performs the swipe left action on the UiObject. |
| 2729 | |
| 2730 | |
| 2731 | |
| 2732 | </div> |
| 2733 | |
| 2734 | </td></tr> |
| 2735 | |
| 2736 | |
| 2737 | |
| 2738 | <tr class=" api apilevel-" > |
| 2739 | <td class="jd-typecol"><nobr> |
| 2740 | |
| 2741 | |
| 2742 | |
| 2743 | |
| 2744 | |
| 2745 | boolean</nobr> |
| 2746 | </td> |
| 2747 | <td class="jd-linkcol" width="100%"><nobr> |
| 2748 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#swipeRight(int)">swipeRight</a></span>(int steps)</nobr> |
| 2749 | |
| 2750 | <div class="jd-descrdiv"> |
| 2751 | Performs the swipe right action on the UiObject. |
| 2752 | |
| 2753 | |
| 2754 | |
| 2755 | </div> |
| 2756 | |
| 2757 | </td></tr> |
| 2758 | |
| 2759 | |
| 2760 | |
| 2761 | <tr class="alt-color api apilevel-" > |
| 2762 | <td class="jd-typecol"><nobr> |
| 2763 | |
| 2764 | |
| 2765 | |
| 2766 | |
| 2767 | |
| 2768 | boolean</nobr> |
| 2769 | </td> |
| 2770 | <td class="jd-linkcol" width="100%"><nobr> |
| 2771 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#swipeUp(int)">swipeUp</a></span>(int steps)</nobr> |
| 2772 | |
| 2773 | <div class="jd-descrdiv"> |
| 2774 | Performs the swipe up action on the UiObject. |
| 2775 | |
| 2776 | |
| 2777 | |
| 2778 | </div> |
| 2779 | |
| 2780 | </td></tr> |
| 2781 | |
| 2782 | |
| 2783 | |
| 2784 | <tr class=" api apilevel-" > |
| 2785 | <td class="jd-typecol"><nobr> |
| 2786 | |
| 2787 | |
| 2788 | |
| 2789 | |
| 2790 | |
| 2791 | boolean</nobr> |
| 2792 | </td> |
| 2793 | <td class="jd-linkcol" width="100%"><nobr> |
| 2794 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#waitForExists(long)">waitForExists</a></span>(long timeout)</nobr> |
| 2795 | |
| 2796 | <div class="jd-descrdiv"> |
| 2797 | Waits a specified length of time for a view to become visible. |
| 2798 | |
| 2799 | |
| 2800 | |
| 2801 | </div> |
| 2802 | |
| 2803 | </td></tr> |
| 2804 | |
| 2805 | |
| 2806 | |
| 2807 | <tr class="alt-color api apilevel-" > |
| 2808 | <td class="jd-typecol"><nobr> |
| 2809 | |
| 2810 | |
| 2811 | |
| 2812 | |
| 2813 | |
| 2814 | boolean</nobr> |
| 2815 | </td> |
| 2816 | <td class="jd-linkcol" width="100%"><nobr> |
| 2817 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#waitUntilGone(long)">waitUntilGone</a></span>(long timeout)</nobr> |
| 2818 | |
| 2819 | <div class="jd-descrdiv"> |
| 2820 | Waits a specified length of time for a view to become undetectable. |
| 2821 | |
| 2822 | |
| 2823 | |
| 2824 | </div> |
| 2825 | |
| 2826 | </td></tr> |
| 2827 | |
| 2828 | |
| 2829 | </table> |
| 2830 | </div> |
| 2831 | </div> |
| 2832 | </td></tr> |
| 2833 | |
| 2834 | |
| 2835 | |
| 2836 | <tr class="api apilevel-" > |
| 2837 | <td colspan="12"> |
| 2838 | <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" |
| 2839 | ><img id="inherited-methods-java.lang.Object-trigger" |
| 2840 | src="../../../../../assets/images/triangle-closed.png" |
| 2841 | class="jd-expando-trigger-img" /></a> |
| 2842 | From class |
| 2843 | |
| 2844 | java.lang.Object |
| 2845 | |
| 2846 | <div id="inherited-methods-java.lang.Object"> |
| 2847 | <div id="inherited-methods-java.lang.Object-list" |
| 2848 | class="jd-inheritedlinks"> |
| 2849 | </div> |
| 2850 | <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> |
| 2851 | <table class="jd-sumtable-expando"> |
| 2852 | |
| 2853 | |
| 2854 | |
| 2855 | |
| 2856 | <tr class="alt-color api apilevel-" > |
| 2857 | <td class="jd-typecol"><nobr> |
| 2858 | |
| 2859 | |
| 2860 | |
| 2861 | |
| 2862 | |
| 2863 | Object</nobr> |
| 2864 | </td> |
| 2865 | <td class="jd-linkcol" width="100%"><nobr> |
| 2866 | <span class="sympad">clone</span>()</nobr> |
| 2867 | |
| 2868 | </td></tr> |
| 2869 | |
| 2870 | |
| 2871 | |
| 2872 | <tr class=" api apilevel-" > |
| 2873 | <td class="jd-typecol"><nobr> |
| 2874 | |
| 2875 | |
| 2876 | |
| 2877 | |
| 2878 | |
| 2879 | boolean</nobr> |
| 2880 | </td> |
| 2881 | <td class="jd-linkcol" width="100%"><nobr> |
| 2882 | <span class="sympad">equals</span>(Object arg0)</nobr> |
| 2883 | |
| 2884 | </td></tr> |
| 2885 | |
| 2886 | |
| 2887 | |
| 2888 | <tr class="alt-color api apilevel-" > |
| 2889 | <td class="jd-typecol"><nobr> |
| 2890 | |
| 2891 | |
| 2892 | |
| 2893 | |
| 2894 | |
| 2895 | void</nobr> |
| 2896 | </td> |
| 2897 | <td class="jd-linkcol" width="100%"><nobr> |
| 2898 | <span class="sympad">finalize</span>()</nobr> |
| 2899 | |
| 2900 | </td></tr> |
| 2901 | |
| 2902 | |
| 2903 | |
| 2904 | <tr class=" api apilevel-" > |
| 2905 | <td class="jd-typecol"><nobr> |
| 2906 | |
| 2907 | |
| 2908 | final |
| 2909 | |
| 2910 | |
| 2911 | Class<?></nobr> |
| 2912 | </td> |
| 2913 | <td class="jd-linkcol" width="100%"><nobr> |
| 2914 | <span class="sympad">getClass</span>()</nobr> |
| 2915 | |
| 2916 | </td></tr> |
| 2917 | |
| 2918 | |
| 2919 | |
| 2920 | <tr class="alt-color api apilevel-" > |
| 2921 | <td class="jd-typecol"><nobr> |
| 2922 | |
| 2923 | |
| 2924 | |
| 2925 | |
| 2926 | |
| 2927 | int</nobr> |
| 2928 | </td> |
| 2929 | <td class="jd-linkcol" width="100%"><nobr> |
| 2930 | <span class="sympad">hashCode</span>()</nobr> |
| 2931 | |
| 2932 | </td></tr> |
| 2933 | |
| 2934 | |
| 2935 | |
| 2936 | <tr class=" api apilevel-" > |
| 2937 | <td class="jd-typecol"><nobr> |
| 2938 | |
| 2939 | |
| 2940 | final |
| 2941 | |
| 2942 | |
| 2943 | void</nobr> |
| 2944 | </td> |
| 2945 | <td class="jd-linkcol" width="100%"><nobr> |
| 2946 | <span class="sympad">notify</span>()</nobr> |
| 2947 | |
| 2948 | </td></tr> |
| 2949 | |
| 2950 | |
| 2951 | |
| 2952 | <tr class="alt-color api apilevel-" > |
| 2953 | <td class="jd-typecol"><nobr> |
| 2954 | |
| 2955 | |
| 2956 | final |
| 2957 | |
| 2958 | |
| 2959 | void</nobr> |
| 2960 | </td> |
| 2961 | <td class="jd-linkcol" width="100%"><nobr> |
| 2962 | <span class="sympad">notifyAll</span>()</nobr> |
| 2963 | |
| 2964 | </td></tr> |
| 2965 | |
| 2966 | |
| 2967 | |
| 2968 | <tr class=" api apilevel-" > |
| 2969 | <td class="jd-typecol"><nobr> |
| 2970 | |
| 2971 | |
| 2972 | |
| 2973 | |
| 2974 | |
| 2975 | String</nobr> |
| 2976 | </td> |
| 2977 | <td class="jd-linkcol" width="100%"><nobr> |
| 2978 | <span class="sympad">toString</span>()</nobr> |
| 2979 | |
| 2980 | </td></tr> |
| 2981 | |
| 2982 | |
| 2983 | |
| 2984 | <tr class="alt-color api apilevel-" > |
| 2985 | <td class="jd-typecol"><nobr> |
| 2986 | |
| 2987 | |
| 2988 | final |
| 2989 | |
| 2990 | |
| 2991 | void</nobr> |
| 2992 | </td> |
| 2993 | <td class="jd-linkcol" width="100%"><nobr> |
| 2994 | <span class="sympad">wait</span>()</nobr> |
| 2995 | |
| 2996 | </td></tr> |
| 2997 | |
| 2998 | |
| 2999 | |
| 3000 | <tr class=" api apilevel-" > |
| 3001 | <td class="jd-typecol"><nobr> |
| 3002 | |
| 3003 | |
| 3004 | final |
| 3005 | |
| 3006 | |
| 3007 | void</nobr> |
| 3008 | </td> |
| 3009 | <td class="jd-linkcol" width="100%"><nobr> |
| 3010 | <span class="sympad">wait</span>(long arg0, int arg1)</nobr> |
| 3011 | |
| 3012 | </td></tr> |
| 3013 | |
| 3014 | |
| 3015 | |
| 3016 | <tr class="alt-color api apilevel-" > |
| 3017 | <td class="jd-typecol"><nobr> |
| 3018 | |
| 3019 | |
| 3020 | final |
| 3021 | |
| 3022 | |
| 3023 | void</nobr> |
| 3024 | </td> |
| 3025 | <td class="jd-linkcol" width="100%"><nobr> |
| 3026 | <span class="sympad">wait</span>(long arg0)</nobr> |
| 3027 | |
| 3028 | </td></tr> |
| 3029 | |
| 3030 | |
| 3031 | </table> |
| 3032 | </div> |
| 3033 | </div> |
| 3034 | </td></tr> |
| 3035 | |
| 3036 | |
| 3037 | </table> |
| 3038 | |
| 3039 | |
| 3040 | </div><!-- jd-descr (summary) --> |
| 3041 | |
| 3042 | <!-- Details --> |
| 3043 | |
| 3044 | |
| 3045 | |
| 3046 | |
| 3047 | |
| 3048 | |
| 3049 | |
| 3050 | |
| 3051 | <!-- XML Attributes --> |
| 3052 | |
| 3053 | |
| 3054 | <!-- Enum Values --> |
| 3055 | |
| 3056 | |
| 3057 | <!-- Constants --> |
| 3058 | |
| 3059 | |
| 3060 | <!-- Fields --> |
| 3061 | |
| 3062 | |
| 3063 | <!-- Public ctors --> |
| 3064 | |
| 3065 | |
| 3066 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 3067 | <h2>Public Constructors</h2> |
| 3068 | |
| 3069 | |
| 3070 | |
| 3071 | <A NAME="UiScrollable(android.support.test.uiautomator.UiSelector)"></A> |
| 3072 | |
| 3073 | <div class="jd-details api apilevel-"> |
| 3074 | <h4 class="jd-details-title"> |
| 3075 | <span class="normal"> |
| 3076 | public |
| 3077 | |
| 3078 | |
| 3079 | |
| 3080 | |
| 3081 | |
| 3082 | </span> |
| 3083 | <span class="sympad">UiScrollable</span> |
| 3084 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> container)</span> |
| 3085 | </h4> |
| 3086 | <div class="api-level"> |
| 3087 | <div></div> |
| 3088 | |
| 3089 | |
| 3090 | |
| 3091 | </div> |
| 3092 | <div class="jd-details-descr"> |
| 3093 | |
| 3094 | |
| 3095 | |
| 3096 | |
| 3097 | <div class="jd-tagdata jd-tagdescr"><p>Constructor.</p></div> |
| 3098 | <div class="jd-tagdata"> |
| 3099 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3100 | <table class="jd-tagtable"> |
| 3101 | <tr> |
| 3102 | <th>container</td> |
| 3103 | <td>a <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> selector to identify the scrollable |
| 3104 | layout element.</td> |
| 3105 | </tr> |
| 3106 | </table> |
| 3107 | </div> |
| 3108 | |
| 3109 | </div> |
| 3110 | </div> |
| 3111 | |
| 3112 | |
| 3113 | |
| 3114 | |
| 3115 | |
| 3116 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 3117 | <!-- Protected ctors --> |
| 3118 | |
| 3119 | |
| 3120 | |
| 3121 | <!-- ========= METHOD DETAIL ======== --> |
| 3122 | <!-- Public methdos --> |
| 3123 | |
| 3124 | <h2>Public Methods</h2> |
| 3125 | |
| 3126 | |
| 3127 | |
| 3128 | <A NAME="flingBackward()"></A> |
| 3129 | |
| 3130 | <div class="jd-details api apilevel-"> |
| 3131 | <h4 class="jd-details-title"> |
| 3132 | <span class="normal"> |
| 3133 | public |
| 3134 | |
| 3135 | |
| 3136 | |
| 3137 | |
| 3138 | boolean |
| 3139 | </span> |
| 3140 | <span class="sympad">flingBackward</span> |
| 3141 | <span class="normal">()</span> |
| 3142 | </h4> |
| 3143 | <div class="api-level"> |
| 3144 | <div></div> |
| 3145 | |
| 3146 | |
| 3147 | |
| 3148 | </div> |
| 3149 | <div class="jd-details-descr"> |
| 3150 | |
| 3151 | |
| 3152 | |
| 3153 | |
| 3154 | <div class="jd-tagdata jd-tagdescr"><p>Performs a backwards fling action with the default number of fling |
| 3155 | steps (5). If the swipe direction is set to vertical, |
| 3156 | then the swipe will be performed from top to bottom. If the swipe |
| 3157 | direction is set to horizontal, then the swipes will be performed from |
| 3158 | left to right. Make sure to take into account devices configured with |
| 3159 | right-to-left languages like Arabic and Hebrew.</p></div> |
| 3160 | <div class="jd-tagdata"> |
| 3161 | <h5 class="jd-tagtitle">Returns</h5> |
| 3162 | <ul class="nolist"><li>true if scrolled, and false if can't scroll anymore</li></ul> |
| 3163 | </div> |
| 3164 | <div class="jd-tagdata"> |
| 3165 | <h5 class="jd-tagtitle">Throws</h5> |
| 3166 | <table class="jd-tagtable"> |
| 3167 | <tr> |
| 3168 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3169 | <td></td> |
| 3170 | </tr> |
| 3171 | </table> |
| 3172 | </div> |
| 3173 | |
| 3174 | </div> |
| 3175 | </div> |
| 3176 | |
| 3177 | |
| 3178 | <A NAME="flingForward()"></A> |
| 3179 | |
| 3180 | <div class="jd-details api apilevel-"> |
| 3181 | <h4 class="jd-details-title"> |
| 3182 | <span class="normal"> |
| 3183 | public |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | |
| 3188 | boolean |
| 3189 | </span> |
| 3190 | <span class="sympad">flingForward</span> |
| 3191 | <span class="normal">()</span> |
| 3192 | </h4> |
| 3193 | <div class="api-level"> |
| 3194 | <div></div> |
| 3195 | |
| 3196 | |
| 3197 | |
| 3198 | </div> |
| 3199 | <div class="jd-details-descr"> |
| 3200 | |
| 3201 | |
| 3202 | |
| 3203 | |
| 3204 | <div class="jd-tagdata jd-tagdescr"><p>Performs a forward fling with the default number of fling steps (5). |
| 3205 | If the swipe direction is set to vertical, then the swipes will be |
| 3206 | performed from bottom to top. If the swipe |
| 3207 | direction is set to horizontal, then the swipes will be performed from |
| 3208 | right to left. Make sure to take into account devices configured with |
| 3209 | right-to-left languages like Arabic and Hebrew.</p></div> |
| 3210 | <div class="jd-tagdata"> |
| 3211 | <h5 class="jd-tagtitle">Returns</h5> |
| 3212 | <ul class="nolist"><li>true if scrolled, false if can't scroll anymore</li></ul> |
| 3213 | </div> |
| 3214 | <div class="jd-tagdata"> |
| 3215 | <h5 class="jd-tagtitle">Throws</h5> |
| 3216 | <table class="jd-tagtable"> |
| 3217 | <tr> |
| 3218 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3219 | <td></td> |
| 3220 | </tr> |
| 3221 | </table> |
| 3222 | </div> |
| 3223 | |
| 3224 | </div> |
| 3225 | </div> |
| 3226 | |
| 3227 | |
| 3228 | <A NAME="flingToBeginning(int)"></A> |
| 3229 | |
| 3230 | <div class="jd-details api apilevel-"> |
| 3231 | <h4 class="jd-details-title"> |
| 3232 | <span class="normal"> |
| 3233 | public |
| 3234 | |
| 3235 | |
| 3236 | |
| 3237 | |
| 3238 | boolean |
| 3239 | </span> |
| 3240 | <span class="sympad">flingToBeginning</span> |
| 3241 | <span class="normal">(int maxSwipes)</span> |
| 3242 | </h4> |
| 3243 | <div class="api-level"> |
| 3244 | <div></div> |
| 3245 | |
| 3246 | |
| 3247 | |
| 3248 | </div> |
| 3249 | <div class="jd-details-descr"> |
| 3250 | |
| 3251 | |
| 3252 | |
| 3253 | |
| 3254 | <div class="jd-tagdata jd-tagdescr"><p>Performs a fling gesture to reach the beginning of a scrollable layout element. |
| 3255 | The beginning can be at the top-most edge in the case of vertical controls, or |
| 3256 | the left-most edge for horizontal controls. Make sure to take into |
| 3257 | account devices configured with right-to-left languages like Arabic and Hebrew.</p></div> |
| 3258 | <div class="jd-tagdata"> |
| 3259 | <h5 class="jd-tagtitle">Returns</h5> |
| 3260 | <ul class="nolist"><li>true on scrolled else false</li></ul> |
| 3261 | </div> |
| 3262 | <div class="jd-tagdata"> |
| 3263 | <h5 class="jd-tagtitle">Throws</h5> |
| 3264 | <table class="jd-tagtable"> |
| 3265 | <tr> |
| 3266 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3267 | <td></td> |
| 3268 | </tr> |
| 3269 | </table> |
| 3270 | </div> |
| 3271 | |
| 3272 | </div> |
| 3273 | </div> |
| 3274 | |
| 3275 | |
| 3276 | <A NAME="flingToEnd(int)"></A> |
| 3277 | |
| 3278 | <div class="jd-details api apilevel-"> |
| 3279 | <h4 class="jd-details-title"> |
| 3280 | <span class="normal"> |
| 3281 | public |
| 3282 | |
| 3283 | |
| 3284 | |
| 3285 | |
| 3286 | boolean |
| 3287 | </span> |
| 3288 | <span class="sympad">flingToEnd</span> |
| 3289 | <span class="normal">(int maxSwipes)</span> |
| 3290 | </h4> |
| 3291 | <div class="api-level"> |
| 3292 | <div></div> |
| 3293 | |
| 3294 | |
| 3295 | |
| 3296 | </div> |
| 3297 | <div class="jd-details-descr"> |
| 3298 | |
| 3299 | |
| 3300 | |
| 3301 | |
| 3302 | <div class="jd-tagdata jd-tagdescr"><p>Performs a fling gesture to reach the end of a scrollable layout element. |
| 3303 | The end can be at the bottom-most edge in the case of vertical controls, or |
| 3304 | the right-most edge for horizontal controls. Make sure to take into |
| 3305 | account devices configured with right-to-left languages like Arabic and Hebrew.</p></div> |
| 3306 | <div class="jd-tagdata"> |
| 3307 | <h5 class="jd-tagtitle">Returns</h5> |
| 3308 | <ul class="nolist"><li>true on scrolled, else false</li></ul> |
| 3309 | </div> |
| 3310 | <div class="jd-tagdata"> |
| 3311 | <h5 class="jd-tagtitle">Throws</h5> |
| 3312 | <table class="jd-tagtable"> |
| 3313 | <tr> |
| 3314 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3315 | <td></td> |
| 3316 | </tr> |
| 3317 | </table> |
| 3318 | </div> |
| 3319 | |
| 3320 | </div> |
| 3321 | </div> |
| 3322 | |
| 3323 | |
| 3324 | <A NAME="getChildByDescription(android.support.test.uiautomator.UiSelector, java.lang.String)"></A> |
| 3325 | |
| 3326 | <div class="jd-details api apilevel-"> |
| 3327 | <h4 class="jd-details-title"> |
| 3328 | <span class="normal"> |
| 3329 | public |
| 3330 | |
| 3331 | |
| 3332 | |
| 3333 | |
| 3334 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> |
| 3335 | </span> |
| 3336 | <span class="sympad">getChildByDescription</span> |
| 3337 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text)</span> |
| 3338 | </h4> |
| 3339 | <div class="api-level"> |
| 3340 | <div></div> |
| 3341 | |
| 3342 | |
| 3343 | |
| 3344 | </div> |
| 3345 | <div class="jd-details-descr"> |
| 3346 | |
| 3347 | |
| 3348 | |
| 3349 | |
| 3350 | <div class="jd-tagdata jd-tagdescr"><p>Searches for a child element in the present scrollable container. |
| 3351 | The search first looks for a child element that matches the selector |
| 3352 | you provided, then looks for the content-description in its children elements. |
| 3353 | If both search conditions are fulfilled, the method returns a {@ link UiObject} |
| 3354 | representing the element matching the selector (not the child element in its |
| 3355 | subhierarchy containing the content-description). By default, this method performs a |
| 3356 | scroll search. |
| 3357 | See <code><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getChildByDescription(android.support.test.uiautomator.UiSelector, java.lang.String, boolean)">getChildByDescription(UiSelector, String, boolean)</a></code></p></div> |
| 3358 | <div class="jd-tagdata"> |
| 3359 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3360 | <table class="jd-tagtable"> |
| 3361 | <tr> |
| 3362 | <th>childPattern</td> |
| 3363 | <td><code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> for a child in a scollable layout element</td> |
| 3364 | </tr> |
| 3365 | <tr> |
| 3366 | <th>text</td> |
| 3367 | <td>Content-description to find in the children of |
| 3368 | the <code>childPattern</code> match</td> |
| 3369 | </tr> |
| 3370 | </table> |
| 3371 | </div> |
| 3372 | <div class="jd-tagdata"> |
| 3373 | <h5 class="jd-tagtitle">Returns</h5> |
| 3374 | <ul class="nolist"><li><code><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></code> representing the child element that matches the search conditions</li></ul> |
| 3375 | </div> |
| 3376 | <div class="jd-tagdata"> |
| 3377 | <h5 class="jd-tagtitle">Throws</h5> |
| 3378 | <table class="jd-tagtable"> |
| 3379 | <tr> |
| 3380 | <th></td> |
| 3381 | <td>UiObjectNotFoundException</td> |
| 3382 | </tr> |
| 3383 | <tr> |
| 3384 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3385 | <td></td> |
| 3386 | </tr> |
| 3387 | </table> |
| 3388 | </div> |
| 3389 | |
| 3390 | </div> |
| 3391 | </div> |
| 3392 | |
| 3393 | |
| 3394 | <A NAME="getChildByDescription(android.support.test.uiautomator.UiSelector, java.lang.String, boolean)"></A> |
| 3395 | |
| 3396 | <div class="jd-details api apilevel-"> |
| 3397 | <h4 class="jd-details-title"> |
| 3398 | <span class="normal"> |
| 3399 | public |
| 3400 | |
| 3401 | |
| 3402 | |
| 3403 | |
| 3404 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> |
| 3405 | </span> |
| 3406 | <span class="sympad">getChildByDescription</span> |
| 3407 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text, boolean allowScrollSearch)</span> |
| 3408 | </h4> |
| 3409 | <div class="api-level"> |
| 3410 | <div></div> |
| 3411 | |
| 3412 | |
| 3413 | |
| 3414 | </div> |
| 3415 | <div class="jd-details-descr"> |
| 3416 | |
| 3417 | |
| 3418 | |
| 3419 | |
| 3420 | <div class="jd-tagdata jd-tagdescr"><p>Searches for a child element in the present scrollable container. |
| 3421 | The search first looks for a child element that matches the selector |
| 3422 | you provided, then looks for the content-description in its children elements. |
| 3423 | If both search conditions are fulfilled, the method returns a {@ link UiObject} |
| 3424 | representing the element matching the selector (not the child element in its |
| 3425 | subhierarchy containing the content-description).</p></div> |
| 3426 | <div class="jd-tagdata"> |
| 3427 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3428 | <table class="jd-tagtable"> |
| 3429 | <tr> |
| 3430 | <th>childPattern</td> |
| 3431 | <td><code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> for a child in a scollable layout element</td> |
| 3432 | </tr> |
| 3433 | <tr> |
| 3434 | <th>text</td> |
| 3435 | <td>Content-description to find in the children of |
| 3436 | the <code>childPattern</code> match (may be a partial match)</td> |
| 3437 | </tr> |
| 3438 | <tr> |
| 3439 | <th>allowScrollSearch</td> |
| 3440 | <td>set to true if scrolling is allowed</td> |
| 3441 | </tr> |
| 3442 | </table> |
| 3443 | </div> |
| 3444 | <div class="jd-tagdata"> |
| 3445 | <h5 class="jd-tagtitle">Returns</h5> |
| 3446 | <ul class="nolist"><li><code><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></code> representing the child element that matches the search conditions</li></ul> |
| 3447 | </div> |
| 3448 | <div class="jd-tagdata"> |
| 3449 | <h5 class="jd-tagtitle">Throws</h5> |
| 3450 | <table class="jd-tagtable"> |
| 3451 | <tr> |
| 3452 | <th></td> |
| 3453 | <td>UiObjectNotFoundException</td> |
| 3454 | </tr> |
| 3455 | <tr> |
| 3456 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3457 | <td></td> |
| 3458 | </tr> |
| 3459 | </table> |
| 3460 | </div> |
| 3461 | |
| 3462 | </div> |
| 3463 | </div> |
| 3464 | |
| 3465 | |
| 3466 | <A NAME="getChildByInstance(android.support.test.uiautomator.UiSelector, int)"></A> |
| 3467 | |
| 3468 | <div class="jd-details api apilevel-"> |
| 3469 | <h4 class="jd-details-title"> |
| 3470 | <span class="normal"> |
| 3471 | public |
| 3472 | |
| 3473 | |
| 3474 | |
| 3475 | |
| 3476 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> |
| 3477 | </span> |
| 3478 | <span class="sympad">getChildByInstance</span> |
| 3479 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, int instance)</span> |
| 3480 | </h4> |
| 3481 | <div class="api-level"> |
| 3482 | <div></div> |
| 3483 | |
| 3484 | |
| 3485 | |
| 3486 | </div> |
| 3487 | <div class="jd-details-descr"> |
| 3488 | |
| 3489 | |
| 3490 | |
| 3491 | |
| 3492 | <div class="jd-tagdata jd-tagdescr"><p>Searches for a child element in the present scrollable container that |
| 3493 | matches the selector you provided. The search is performed without |
| 3494 | scrolling and only on visible elements.</p></div> |
| 3495 | <div class="jd-tagdata"> |
| 3496 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3497 | <table class="jd-tagtable"> |
| 3498 | <tr> |
| 3499 | <th>childPattern</td> |
| 3500 | <td><code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> for a child in a scollable layout element</td> |
| 3501 | </tr> |
| 3502 | <tr> |
| 3503 | <th>instance</td> |
| 3504 | <td>int number representing the occurance of |
| 3505 | a <code>childPattern</code> match</td> |
| 3506 | </tr> |
| 3507 | </table> |
| 3508 | </div> |
| 3509 | <div class="jd-tagdata"> |
| 3510 | <h5 class="jd-tagtitle">Returns</h5> |
| 3511 | <ul class="nolist"><li><code><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></code> representing the child element that matches the search conditions</li></ul> |
| 3512 | </div> |
| 3513 | <div class="jd-tagdata"> |
| 3514 | <h5 class="jd-tagtitle">Throws</h5> |
| 3515 | <table class="jd-tagtable"> |
| 3516 | <tr> |
| 3517 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3518 | <td></td> |
| 3519 | </tr> |
| 3520 | </table> |
| 3521 | </div> |
| 3522 | |
| 3523 | </div> |
| 3524 | </div> |
| 3525 | |
| 3526 | |
| 3527 | <A NAME="getChildByText(android.support.test.uiautomator.UiSelector, java.lang.String)"></A> |
| 3528 | |
| 3529 | <div class="jd-details api apilevel-"> |
| 3530 | <h4 class="jd-details-title"> |
| 3531 | <span class="normal"> |
| 3532 | public |
| 3533 | |
| 3534 | |
| 3535 | |
| 3536 | |
| 3537 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> |
| 3538 | </span> |
| 3539 | <span class="sympad">getChildByText</span> |
| 3540 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text)</span> |
| 3541 | </h4> |
| 3542 | <div class="api-level"> |
| 3543 | <div></div> |
| 3544 | |
| 3545 | |
| 3546 | |
| 3547 | </div> |
| 3548 | <div class="jd-details-descr"> |
| 3549 | |
| 3550 | |
| 3551 | |
| 3552 | |
| 3553 | <div class="jd-tagdata jd-tagdescr"><p>Searches for a child element in the present scrollable |
| 3554 | container. The search first looks for a child element that matches the |
| 3555 | selector you provided, then looks for the text in its children elements. |
| 3556 | If both search conditions are fulfilled, the method returns a {@ link UiObject} |
| 3557 | representing the element matching the selector (not the child element in its |
| 3558 | subhierarchy containing the text). By default, this method performs a |
| 3559 | scroll search. |
| 3560 | See <code><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getChildByText(android.support.test.uiautomator.UiSelector, java.lang.String, boolean)">getChildByText(UiSelector, String, boolean)</a></code></p></div> |
| 3561 | <div class="jd-tagdata"> |
| 3562 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3563 | <table class="jd-tagtable"> |
| 3564 | <tr> |
| 3565 | <th>childPattern</td> |
| 3566 | <td><code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> selector for a child in a scrollable layout element</td> |
| 3567 | </tr> |
| 3568 | <tr> |
| 3569 | <th>text</td> |
| 3570 | <td>String to find in the children of the <code>childPattern</code> match</td> |
| 3571 | </tr> |
| 3572 | </table> |
| 3573 | </div> |
| 3574 | <div class="jd-tagdata"> |
| 3575 | <h5 class="jd-tagtitle">Returns</h5> |
| 3576 | <ul class="nolist"><li><code><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></code> representing the child element that matches the search conditions</li></ul> |
| 3577 | </div> |
| 3578 | <div class="jd-tagdata"> |
| 3579 | <h5 class="jd-tagtitle">Throws</h5> |
| 3580 | <table class="jd-tagtable"> |
| 3581 | <tr> |
| 3582 | <th></td> |
| 3583 | <td>UiObjectNotFoundException</td> |
| 3584 | </tr> |
| 3585 | <tr> |
| 3586 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3587 | <td></td> |
| 3588 | </tr> |
| 3589 | </table> |
| 3590 | </div> |
| 3591 | |
| 3592 | </div> |
| 3593 | </div> |
| 3594 | |
| 3595 | |
| 3596 | <A NAME="getChildByText(android.support.test.uiautomator.UiSelector, java.lang.String, boolean)"></A> |
| 3597 | |
| 3598 | <div class="jd-details api apilevel-"> |
| 3599 | <h4 class="jd-details-title"> |
| 3600 | <span class="normal"> |
| 3601 | public |
| 3602 | |
| 3603 | |
| 3604 | |
| 3605 | |
| 3606 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> |
| 3607 | </span> |
| 3608 | <span class="sympad">getChildByText</span> |
| 3609 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text, boolean allowScrollSearch)</span> |
| 3610 | </h4> |
| 3611 | <div class="api-level"> |
| 3612 | <div></div> |
| 3613 | |
| 3614 | |
| 3615 | |
| 3616 | </div> |
| 3617 | <div class="jd-details-descr"> |
| 3618 | |
| 3619 | |
| 3620 | |
| 3621 | |
| 3622 | <div class="jd-tagdata jd-tagdescr"><p>Searches for a child element in the present scrollable container. The |
| 3623 | search first looks for a child element that matches the |
| 3624 | selector you provided, then looks for the text in its children elements. |
| 3625 | If both search conditions are fulfilled, the method returns a {@ link UiObject} |
| 3626 | representing the element matching the selector (not the child element in its |
| 3627 | subhierarchy containing the text).</p></div> |
| 3628 | <div class="jd-tagdata"> |
| 3629 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3630 | <table class="jd-tagtable"> |
| 3631 | <tr> |
| 3632 | <th>childPattern</td> |
| 3633 | <td><code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> selector for a child in a scrollable layout element</td> |
| 3634 | </tr> |
| 3635 | <tr> |
| 3636 | <th>text</td> |
| 3637 | <td>String to find in the children of the <code>childPattern</code> match</td> |
| 3638 | </tr> |
| 3639 | <tr> |
| 3640 | <th>allowScrollSearch</td> |
| 3641 | <td>set to true if scrolling is allowed</td> |
| 3642 | </tr> |
| 3643 | </table> |
| 3644 | </div> |
| 3645 | <div class="jd-tagdata"> |
| 3646 | <h5 class="jd-tagtitle">Returns</h5> |
| 3647 | <ul class="nolist"><li><code><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></code> representing the child element that matches the search conditions</li></ul> |
| 3648 | </div> |
| 3649 | <div class="jd-tagdata"> |
| 3650 | <h5 class="jd-tagtitle">Throws</h5> |
| 3651 | <table class="jd-tagtable"> |
| 3652 | <tr> |
| 3653 | <th></td> |
| 3654 | <td>UiObjectNotFoundException</td> |
| 3655 | </tr> |
| 3656 | <tr> |
| 3657 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3658 | <td></td> |
| 3659 | </tr> |
| 3660 | </table> |
| 3661 | </div> |
| 3662 | |
| 3663 | </div> |
| 3664 | </div> |
| 3665 | |
| 3666 | |
| 3667 | <A NAME="getMaxSearchSwipes()"></A> |
| 3668 | |
| 3669 | <div class="jd-details api apilevel-"> |
| 3670 | <h4 class="jd-details-title"> |
| 3671 | <span class="normal"> |
| 3672 | public |
| 3673 | |
| 3674 | |
| 3675 | |
| 3676 | |
| 3677 | int |
| 3678 | </span> |
| 3679 | <span class="sympad">getMaxSearchSwipes</span> |
| 3680 | <span class="normal">()</span> |
| 3681 | </h4> |
| 3682 | <div class="api-level"> |
| 3683 | <div></div> |
| 3684 | |
| 3685 | |
| 3686 | |
| 3687 | </div> |
| 3688 | <div class="jd-details-descr"> |
| 3689 | |
| 3690 | |
| 3691 | |
| 3692 | |
| 3693 | <div class="jd-tagdata jd-tagdescr"><p>Gets the maximum number of scrolls allowed when performing a |
| 3694 | scroll action in search of a child element. |
| 3695 | See <code><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getChildByDescription(android.support.test.uiautomator.UiSelector, java.lang.String)">getChildByDescription(UiSelector, String)</a></code> and |
| 3696 | <code><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getChildByText(android.support.test.uiautomator.UiSelector, java.lang.String)">getChildByText(UiSelector, String)</a></code>.</p></div> |
| 3697 | <div class="jd-tagdata"> |
| 3698 | <h5 class="jd-tagtitle">Returns</h5> |
| 3699 | <ul class="nolist"><li>max the number of search swipes to perform until giving up</li></ul> |
| 3700 | </div> |
| 3701 | |
| 3702 | </div> |
| 3703 | </div> |
| 3704 | |
| 3705 | |
| 3706 | <A NAME="getSwipeDeadZonePercentage()"></A> |
| 3707 | |
| 3708 | <div class="jd-details api apilevel-"> |
| 3709 | <h4 class="jd-details-title"> |
| 3710 | <span class="normal"> |
| 3711 | public |
| 3712 | |
| 3713 | |
| 3714 | |
| 3715 | |
| 3716 | double |
| 3717 | </span> |
| 3718 | <span class="sympad">getSwipeDeadZonePercentage</span> |
| 3719 | <span class="normal">()</span> |
| 3720 | </h4> |
| 3721 | <div class="api-level"> |
| 3722 | <div></div> |
| 3723 | |
| 3724 | |
| 3725 | |
| 3726 | </div> |
| 3727 | <div class="jd-details-descr"> |
| 3728 | |
| 3729 | |
| 3730 | |
| 3731 | |
| 3732 | <div class="jd-tagdata jd-tagdescr"><p>Returns the percentage of a widget's size that's considered as a no-touch |
| 3733 | zone when swiping. The no-touch zone is set as a percentage of a widget's total |
| 3734 | width or height, denoting a margin around the swipable area of the widget. |
| 3735 | Swipes must start and end inside this margin. This is important when the |
| 3736 | widget being swiped may not respond to the swipe if started at a point |
| 3737 | too near to the edge. The default is 10% from either edge.</p></div> |
| 3738 | <div class="jd-tagdata"> |
| 3739 | <h5 class="jd-tagtitle">Returns</h5> |
| 3740 | <ul class="nolist"><li>a value between 0 and 1</li></ul> |
| 3741 | </div> |
| 3742 | |
| 3743 | </div> |
| 3744 | </div> |
| 3745 | |
| 3746 | |
| 3747 | <A NAME="scrollBackward(int)"></A> |
| 3748 | |
| 3749 | <div class="jd-details api apilevel-"> |
| 3750 | <h4 class="jd-details-title"> |
| 3751 | <span class="normal"> |
| 3752 | public |
| 3753 | |
| 3754 | |
| 3755 | |
| 3756 | |
| 3757 | boolean |
| 3758 | </span> |
| 3759 | <span class="sympad">scrollBackward</span> |
| 3760 | <span class="normal">(int steps)</span> |
| 3761 | </h4> |
| 3762 | <div class="api-level"> |
| 3763 | <div></div> |
| 3764 | |
| 3765 | |
| 3766 | |
| 3767 | </div> |
| 3768 | <div class="jd-details-descr"> |
| 3769 | |
| 3770 | |
| 3771 | |
| 3772 | |
| 3773 | <div class="jd-tagdata jd-tagdescr"><p>Performs a backward scroll. If the swipe direction is set to vertical, |
| 3774 | then the swipes will be performed from top to bottom. If the swipe |
| 3775 | direction is set to horizontal, then the swipes will be performed from |
| 3776 | left to right. Make sure to take into account devices configured with |
| 3777 | right-to-left languages like Arabic and Hebrew.</p></div> |
| 3778 | <div class="jd-tagdata"> |
| 3779 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3780 | <table class="jd-tagtable"> |
| 3781 | <tr> |
| 3782 | <th>steps</td> |
| 3783 | <td>number of steps. Use this to control the speed of the scroll action.</td> |
| 3784 | </tr> |
| 3785 | </table> |
| 3786 | </div> |
| 3787 | <div class="jd-tagdata"> |
| 3788 | <h5 class="jd-tagtitle">Returns</h5> |
| 3789 | <ul class="nolist"><li>true if scrolled, false if can't scroll anymore</li></ul> |
| 3790 | </div> |
| 3791 | <div class="jd-tagdata"> |
| 3792 | <h5 class="jd-tagtitle">Throws</h5> |
| 3793 | <table class="jd-tagtable"> |
| 3794 | <tr> |
| 3795 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3796 | <td></td> |
| 3797 | </tr> |
| 3798 | </table> |
| 3799 | </div> |
| 3800 | |
| 3801 | </div> |
| 3802 | </div> |
| 3803 | |
| 3804 | |
| 3805 | <A NAME="scrollBackward()"></A> |
| 3806 | |
| 3807 | <div class="jd-details api apilevel-"> |
| 3808 | <h4 class="jd-details-title"> |
| 3809 | <span class="normal"> |
| 3810 | public |
| 3811 | |
| 3812 | |
| 3813 | |
| 3814 | |
| 3815 | boolean |
| 3816 | </span> |
| 3817 | <span class="sympad">scrollBackward</span> |
| 3818 | <span class="normal">()</span> |
| 3819 | </h4> |
| 3820 | <div class="api-level"> |
| 3821 | <div></div> |
| 3822 | |
| 3823 | |
| 3824 | |
| 3825 | </div> |
| 3826 | <div class="jd-details-descr"> |
| 3827 | |
| 3828 | |
| 3829 | |
| 3830 | |
| 3831 | <div class="jd-tagdata jd-tagdescr"><p>Performs a backward scroll with the default number of scroll steps (55). |
| 3832 | If the swipe direction is set to vertical, |
| 3833 | then the swipes will be performed from top to bottom. If the swipe |
| 3834 | direction is set to horizontal, then the swipes will be performed from |
| 3835 | left to right. Make sure to take into account devices configured with |
| 3836 | right-to-left languages like Arabic and Hebrew.</p></div> |
| 3837 | <div class="jd-tagdata"> |
| 3838 | <h5 class="jd-tagtitle">Returns</h5> |
| 3839 | <ul class="nolist"><li>true if scrolled, and false if can't scroll anymore</li></ul> |
| 3840 | </div> |
| 3841 | <div class="jd-tagdata"> |
| 3842 | <h5 class="jd-tagtitle">Throws</h5> |
| 3843 | <table class="jd-tagtable"> |
| 3844 | <tr> |
| 3845 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3846 | <td></td> |
| 3847 | </tr> |
| 3848 | </table> |
| 3849 | </div> |
| 3850 | |
| 3851 | </div> |
| 3852 | </div> |
| 3853 | |
| 3854 | |
| 3855 | <A NAME="scrollDescriptionIntoView(java.lang.String)"></A> |
| 3856 | |
| 3857 | <div class="jd-details api apilevel-"> |
| 3858 | <h4 class="jd-details-title"> |
| 3859 | <span class="normal"> |
| 3860 | public |
| 3861 | |
| 3862 | |
| 3863 | |
| 3864 | |
| 3865 | boolean |
| 3866 | </span> |
| 3867 | <span class="sympad">scrollDescriptionIntoView</span> |
| 3868 | <span class="normal">(String text)</span> |
| 3869 | </h4> |
| 3870 | <div class="api-level"> |
| 3871 | <div></div> |
| 3872 | |
| 3873 | |
| 3874 | |
| 3875 | </div> |
| 3876 | <div class="jd-details-descr"> |
| 3877 | |
| 3878 | |
| 3879 | |
| 3880 | |
| 3881 | <div class="jd-tagdata jd-tagdescr"><p>Performs a forward scroll action on the scrollable layout element until |
| 3882 | the content-description is found, or until swipe attempts have been exhausted. |
| 3883 | See <code><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#setMaxSearchSwipes(int)">setMaxSearchSwipes(int)</a></code></p></div> |
| 3884 | <div class="jd-tagdata"> |
| 3885 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3886 | <table class="jd-tagtable"> |
| 3887 | <tr> |
| 3888 | <th>text</td> |
| 3889 | <td>content-description to find within the contents of this scrollable layout element.</td> |
| 3890 | </tr> |
| 3891 | </table> |
| 3892 | </div> |
| 3893 | <div class="jd-tagdata"> |
| 3894 | <h5 class="jd-tagtitle">Returns</h5> |
| 3895 | <ul class="nolist"><li>true if item is found; else, false</li></ul> |
| 3896 | </div> |
| 3897 | <div class="jd-tagdata"> |
| 3898 | <h5 class="jd-tagtitle">Throws</h5> |
| 3899 | <table class="jd-tagtable"> |
| 3900 | <tr> |
| 3901 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3902 | <td></td> |
| 3903 | </tr> |
| 3904 | </table> |
| 3905 | </div> |
| 3906 | |
| 3907 | </div> |
| 3908 | </div> |
| 3909 | |
| 3910 | |
| 3911 | <A NAME="scrollForward()"></A> |
| 3912 | |
| 3913 | <div class="jd-details api apilevel-"> |
| 3914 | <h4 class="jd-details-title"> |
| 3915 | <span class="normal"> |
| 3916 | public |
| 3917 | |
| 3918 | |
| 3919 | |
| 3920 | |
| 3921 | boolean |
| 3922 | </span> |
| 3923 | <span class="sympad">scrollForward</span> |
| 3924 | <span class="normal">()</span> |
| 3925 | </h4> |
| 3926 | <div class="api-level"> |
| 3927 | <div></div> |
| 3928 | |
| 3929 | |
| 3930 | |
| 3931 | </div> |
| 3932 | <div class="jd-details-descr"> |
| 3933 | |
| 3934 | |
| 3935 | |
| 3936 | |
| 3937 | <div class="jd-tagdata jd-tagdescr"><p>Performs a forward scroll with the default number of scroll steps (55). |
| 3938 | If the swipe direction is set to vertical, |
| 3939 | then the swipes will be performed from bottom to top. If the swipe |
| 3940 | direction is set to horizontal, then the swipes will be performed from |
| 3941 | right to left. Make sure to take into account devices configured with |
| 3942 | right-to-left languages like Arabic and Hebrew.</p></div> |
| 3943 | <div class="jd-tagdata"> |
| 3944 | <h5 class="jd-tagtitle">Returns</h5> |
| 3945 | <ul class="nolist"><li>true if scrolled, false if can't scroll anymore</li></ul> |
| 3946 | </div> |
| 3947 | <div class="jd-tagdata"> |
| 3948 | <h5 class="jd-tagtitle">Throws</h5> |
| 3949 | <table class="jd-tagtable"> |
| 3950 | <tr> |
| 3951 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 3952 | <td></td> |
| 3953 | </tr> |
| 3954 | </table> |
| 3955 | </div> |
| 3956 | |
| 3957 | </div> |
| 3958 | </div> |
| 3959 | |
| 3960 | |
| 3961 | <A NAME="scrollForward(int)"></A> |
| 3962 | |
| 3963 | <div class="jd-details api apilevel-"> |
| 3964 | <h4 class="jd-details-title"> |
| 3965 | <span class="normal"> |
| 3966 | public |
| 3967 | |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | boolean |
| 3972 | </span> |
| 3973 | <span class="sympad">scrollForward</span> |
| 3974 | <span class="normal">(int steps)</span> |
| 3975 | </h4> |
| 3976 | <div class="api-level"> |
| 3977 | <div></div> |
| 3978 | |
| 3979 | |
| 3980 | |
| 3981 | </div> |
| 3982 | <div class="jd-details-descr"> |
| 3983 | |
| 3984 | |
| 3985 | |
| 3986 | |
| 3987 | <div class="jd-tagdata jd-tagdescr"><p>Performs a forward scroll. If the swipe direction is set to vertical, |
| 3988 | then the swipes will be performed from bottom to top. If the swipe |
| 3989 | direction is set to horizontal, then the swipes will be performed from |
| 3990 | right to left. Make sure to take into account devices configured with |
| 3991 | right-to-left languages like Arabic and Hebrew.</p></div> |
| 3992 | <div class="jd-tagdata"> |
| 3993 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3994 | <table class="jd-tagtable"> |
| 3995 | <tr> |
| 3996 | <th>steps</td> |
| 3997 | <td>number of steps. Use this to control the speed of the scroll action</td> |
| 3998 | </tr> |
| 3999 | </table> |
| 4000 | </div> |
| 4001 | <div class="jd-tagdata"> |
| 4002 | <h5 class="jd-tagtitle">Returns</h5> |
| 4003 | <ul class="nolist"><li>true if scrolled, false if can't scroll anymore</li></ul> |
| 4004 | </div> |
| 4005 | <div class="jd-tagdata"> |
| 4006 | <h5 class="jd-tagtitle">Throws</h5> |
| 4007 | <table class="jd-tagtable"> |
| 4008 | <tr> |
| 4009 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 4010 | <td></td> |
| 4011 | </tr> |
| 4012 | </table> |
| 4013 | </div> |
| 4014 | |
| 4015 | </div> |
| 4016 | </div> |
| 4017 | |
| 4018 | |
| 4019 | <A NAME="scrollIntoView(android.support.test.uiautomator.UiSelector)"></A> |
| 4020 | |
| 4021 | <div class="jd-details api apilevel-"> |
| 4022 | <h4 class="jd-details-title"> |
| 4023 | <span class="normal"> |
| 4024 | public |
| 4025 | |
| 4026 | |
| 4027 | |
| 4028 | |
| 4029 | boolean |
| 4030 | </span> |
| 4031 | <span class="sympad">scrollIntoView</span> |
| 4032 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</span> |
| 4033 | </h4> |
| 4034 | <div class="api-level"> |
| 4035 | <div></div> |
| 4036 | |
| 4037 | |
| 4038 | |
| 4039 | </div> |
| 4040 | <div class="jd-details-descr"> |
| 4041 | |
| 4042 | |
| 4043 | |
| 4044 | |
| 4045 | <div class="jd-tagdata jd-tagdescr"><p>Perform a scroll forward action to move through the scrollable layout |
| 4046 | element until a visible item that matches the selector is found. |
| 4047 | |
| 4048 | See <code><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollDescriptionIntoView(java.lang.String)">scrollDescriptionIntoView(String)</a></code> and <code><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#scrollTextIntoView(java.lang.String)">scrollTextIntoView(String)</a></code>.</p></div> |
| 4049 | <div class="jd-tagdata"> |
| 4050 | <h5 class="jd-tagtitle">Parameters</h5> |
| 4051 | <table class="jd-tagtable"> |
| 4052 | <tr> |
| 4053 | <th>selector</td> |
| 4054 | <td><code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> selector</td> |
| 4055 | </tr> |
| 4056 | </table> |
| 4057 | </div> |
| 4058 | <div class="jd-tagdata"> |
| 4059 | <h5 class="jd-tagtitle">Returns</h5> |
| 4060 | <ul class="nolist"><li>true if the item was found and now is in view; else, false</li></ul> |
| 4061 | </div> |
| 4062 | <div class="jd-tagdata"> |
| 4063 | <h5 class="jd-tagtitle">Throws</h5> |
| 4064 | <table class="jd-tagtable"> |
| 4065 | <tr> |
| 4066 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 4067 | <td></td> |
| 4068 | </tr> |
| 4069 | </table> |
| 4070 | </div> |
| 4071 | |
| 4072 | </div> |
| 4073 | </div> |
| 4074 | |
| 4075 | |
| 4076 | <A NAME="scrollIntoView(android.support.test.uiautomator.UiObject)"></A> |
| 4077 | |
| 4078 | <div class="jd-details api apilevel-"> |
| 4079 | <h4 class="jd-details-title"> |
| 4080 | <span class="normal"> |
| 4081 | public |
| 4082 | |
| 4083 | |
| 4084 | |
| 4085 | |
| 4086 | boolean |
| 4087 | </span> |
| 4088 | <span class="sympad">scrollIntoView</span> |
| 4089 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> obj)</span> |
| 4090 | </h4> |
| 4091 | <div class="api-level"> |
| 4092 | <div></div> |
| 4093 | |
| 4094 | |
| 4095 | |
| 4096 | </div> |
| 4097 | <div class="jd-details-descr"> |
| 4098 | |
| 4099 | |
| 4100 | |
| 4101 | |
| 4102 | <div class="jd-tagdata jd-tagdescr"><p>Perform a forward scroll action to move through the scrollable layout element until |
| 4103 | a visible item that matches the <code><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></code> is found.</p></div> |
| 4104 | <div class="jd-tagdata"> |
| 4105 | <h5 class="jd-tagtitle">Parameters</h5> |
| 4106 | <table class="jd-tagtable"> |
| 4107 | <tr> |
| 4108 | <th>obj</td> |
| 4109 | <td><code><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></code></td> |
| 4110 | </tr> |
| 4111 | </table> |
| 4112 | </div> |
| 4113 | <div class="jd-tagdata"> |
| 4114 | <h5 class="jd-tagtitle">Returns</h5> |
| 4115 | <ul class="nolist"><li>true if the item was found and now is in view else false</li></ul> |
| 4116 | </div> |
| 4117 | <div class="jd-tagdata"> |
| 4118 | <h5 class="jd-tagtitle">Throws</h5> |
| 4119 | <table class="jd-tagtable"> |
| 4120 | <tr> |
| 4121 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 4122 | <td></td> |
| 4123 | </tr> |
| 4124 | </table> |
| 4125 | </div> |
| 4126 | |
| 4127 | </div> |
| 4128 | </div> |
| 4129 | |
| 4130 | |
| 4131 | <A NAME="scrollTextIntoView(java.lang.String)"></A> |
| 4132 | |
| 4133 | <div class="jd-details api apilevel-"> |
| 4134 | <h4 class="jd-details-title"> |
| 4135 | <span class="normal"> |
| 4136 | public |
| 4137 | |
| 4138 | |
| 4139 | |
| 4140 | |
| 4141 | boolean |
| 4142 | </span> |
| 4143 | <span class="sympad">scrollTextIntoView</span> |
| 4144 | <span class="normal">(String text)</span> |
| 4145 | </h4> |
| 4146 | <div class="api-level"> |
| 4147 | <div></div> |
| 4148 | |
| 4149 | |
| 4150 | |
| 4151 | </div> |
| 4152 | <div class="jd-details-descr"> |
| 4153 | |
| 4154 | |
| 4155 | |
| 4156 | |
| 4157 | <div class="jd-tagdata jd-tagdescr"><p>Performs a forward scroll action on the scrollable layout element until |
| 4158 | the text you provided is visible, or until swipe attempts have been exhausted. |
| 4159 | See <code><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#setMaxSearchSwipes(int)">setMaxSearchSwipes(int)</a></code></p></div> |
| 4160 | <div class="jd-tagdata"> |
| 4161 | <h5 class="jd-tagtitle">Parameters</h5> |
| 4162 | <table class="jd-tagtable"> |
| 4163 | <tr> |
| 4164 | <th>text</td> |
| 4165 | <td>test to look for</td> |
| 4166 | </tr> |
| 4167 | </table> |
| 4168 | </div> |
| 4169 | <div class="jd-tagdata"> |
| 4170 | <h5 class="jd-tagtitle">Returns</h5> |
| 4171 | <ul class="nolist"><li>true if item is found; else, false</li></ul> |
| 4172 | </div> |
| 4173 | <div class="jd-tagdata"> |
| 4174 | <h5 class="jd-tagtitle">Throws</h5> |
| 4175 | <table class="jd-tagtable"> |
| 4176 | <tr> |
| 4177 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 4178 | <td></td> |
| 4179 | </tr> |
| 4180 | </table> |
| 4181 | </div> |
| 4182 | |
| 4183 | </div> |
| 4184 | </div> |
| 4185 | |
| 4186 | |
| 4187 | <A NAME="scrollToBeginning(int)"></A> |
| 4188 | |
| 4189 | <div class="jd-details api apilevel-"> |
| 4190 | <h4 class="jd-details-title"> |
| 4191 | <span class="normal"> |
| 4192 | public |
| 4193 | |
| 4194 | |
| 4195 | |
| 4196 | |
| 4197 | boolean |
| 4198 | </span> |
| 4199 | <span class="sympad">scrollToBeginning</span> |
| 4200 | <span class="normal">(int maxSwipes)</span> |
| 4201 | </h4> |
| 4202 | <div class="api-level"> |
| 4203 | <div></div> |
| 4204 | |
| 4205 | |
| 4206 | |
| 4207 | </div> |
| 4208 | <div class="jd-details-descr"> |
| 4209 | |
| 4210 | |
| 4211 | |
| 4212 | |
| 4213 | <div class="jd-tagdata jd-tagdescr"><p>Scrolls to the beginning of a scrollable layout element. The beginning |
| 4214 | can be at the top-most edge in the case of vertical controls, or the |
| 4215 | left-most edge for horizontal controls. Make sure to take into account |
| 4216 | devices configured with right-to-left languages like Arabic and Hebrew.</p></div> |
| 4217 | <div class="jd-tagdata"> |
| 4218 | <h5 class="jd-tagtitle">Returns</h5> |
| 4219 | <ul class="nolist"><li>true on scrolled else false</li></ul> |
| 4220 | </div> |
| 4221 | <div class="jd-tagdata"> |
| 4222 | <h5 class="jd-tagtitle">Throws</h5> |
| 4223 | <table class="jd-tagtable"> |
| 4224 | <tr> |
| 4225 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 4226 | <td></td> |
| 4227 | </tr> |
| 4228 | </table> |
| 4229 | </div> |
| 4230 | |
| 4231 | </div> |
| 4232 | </div> |
| 4233 | |
| 4234 | |
| 4235 | <A NAME="scrollToBeginning(int, int)"></A> |
| 4236 | |
| 4237 | <div class="jd-details api apilevel-"> |
| 4238 | <h4 class="jd-details-title"> |
| 4239 | <span class="normal"> |
| 4240 | public |
| 4241 | |
| 4242 | |
| 4243 | |
| 4244 | |
| 4245 | boolean |
| 4246 | </span> |
| 4247 | <span class="sympad">scrollToBeginning</span> |
| 4248 | <span class="normal">(int maxSwipes, int steps)</span> |
| 4249 | </h4> |
| 4250 | <div class="api-level"> |
| 4251 | <div></div> |
| 4252 | |
| 4253 | |
| 4254 | |
| 4255 | </div> |
| 4256 | <div class="jd-details-descr"> |
| 4257 | |
| 4258 | |
| 4259 | |
| 4260 | |
| 4261 | <div class="jd-tagdata jd-tagdescr"><p>Scrolls to the beginning of a scrollable layout element. The beginning |
| 4262 | can be at the top-most edge in the case of vertical controls, or the |
| 4263 | left-most edge for horizontal controls. Make sure to take into account |
| 4264 | devices configured with right-to-left languages like Arabic and Hebrew.</p></div> |
| 4265 | <div class="jd-tagdata"> |
| 4266 | <h5 class="jd-tagtitle">Parameters</h5> |
| 4267 | <table class="jd-tagtable"> |
| 4268 | <tr> |
| 4269 | <th>steps</td> |
| 4270 | <td>use steps to control the speed, so that it may be a scroll, or fling</td> |
| 4271 | </tr> |
| 4272 | </table> |
| 4273 | </div> |
| 4274 | <div class="jd-tagdata"> |
| 4275 | <h5 class="jd-tagtitle">Returns</h5> |
| 4276 | <ul class="nolist"><li>true on scrolled else false</li></ul> |
| 4277 | </div> |
| 4278 | <div class="jd-tagdata"> |
| 4279 | <h5 class="jd-tagtitle">Throws</h5> |
| 4280 | <table class="jd-tagtable"> |
| 4281 | <tr> |
| 4282 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 4283 | <td></td> |
| 4284 | </tr> |
| 4285 | </table> |
| 4286 | </div> |
| 4287 | |
| 4288 | </div> |
| 4289 | </div> |
| 4290 | |
| 4291 | |
| 4292 | <A NAME="scrollToEnd(int, int)"></A> |
| 4293 | |
| 4294 | <div class="jd-details api apilevel-"> |
| 4295 | <h4 class="jd-details-title"> |
| 4296 | <span class="normal"> |
| 4297 | public |
| 4298 | |
| 4299 | |
| 4300 | |
| 4301 | |
| 4302 | boolean |
| 4303 | </span> |
| 4304 | <span class="sympad">scrollToEnd</span> |
| 4305 | <span class="normal">(int maxSwipes, int steps)</span> |
| 4306 | </h4> |
| 4307 | <div class="api-level"> |
| 4308 | <div></div> |
| 4309 | |
| 4310 | |
| 4311 | |
| 4312 | </div> |
| 4313 | <div class="jd-details-descr"> |
| 4314 | |
| 4315 | |
| 4316 | |
| 4317 | |
| 4318 | <div class="jd-tagdata jd-tagdescr"><p>Scrolls to the end of a scrollable layout element. The end can be at the |
| 4319 | bottom-most edge in the case of vertical controls, or the right-most edge for |
| 4320 | horizontal controls. Make sure to take into account devices configured with |
| 4321 | right-to-left languages like Arabic and Hebrew.</p></div> |
| 4322 | <div class="jd-tagdata"> |
| 4323 | <h5 class="jd-tagtitle">Parameters</h5> |
| 4324 | <table class="jd-tagtable"> |
| 4325 | <tr> |
| 4326 | <th>steps</td> |
| 4327 | <td>use steps to control the speed, so that it may be a scroll, or fling</td> |
| 4328 | </tr> |
| 4329 | </table> |
| 4330 | </div> |
| 4331 | <div class="jd-tagdata"> |
| 4332 | <h5 class="jd-tagtitle">Returns</h5> |
| 4333 | <ul class="nolist"><li>true on scrolled else false</li></ul> |
| 4334 | </div> |
| 4335 | <div class="jd-tagdata"> |
| 4336 | <h5 class="jd-tagtitle">Throws</h5> |
| 4337 | <table class="jd-tagtable"> |
| 4338 | <tr> |
| 4339 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 4340 | <td></td> |
| 4341 | </tr> |
| 4342 | </table> |
| 4343 | </div> |
| 4344 | |
| 4345 | </div> |
| 4346 | </div> |
| 4347 | |
| 4348 | |
| 4349 | <A NAME="scrollToEnd(int)"></A> |
| 4350 | |
| 4351 | <div class="jd-details api apilevel-"> |
| 4352 | <h4 class="jd-details-title"> |
| 4353 | <span class="normal"> |
| 4354 | public |
| 4355 | |
| 4356 | |
| 4357 | |
| 4358 | |
| 4359 | boolean |
| 4360 | </span> |
| 4361 | <span class="sympad">scrollToEnd</span> |
| 4362 | <span class="normal">(int maxSwipes)</span> |
| 4363 | </h4> |
| 4364 | <div class="api-level"> |
| 4365 | <div></div> |
| 4366 | |
| 4367 | |
| 4368 | |
| 4369 | </div> |
| 4370 | <div class="jd-details-descr"> |
| 4371 | |
| 4372 | |
| 4373 | |
| 4374 | |
| 4375 | <div class="jd-tagdata jd-tagdescr"><p>Scrolls to the end of a scrollable layout element. The end can be at the |
| 4376 | bottom-most edge in the case of vertical controls, or the right-most edge for |
| 4377 | horizontal controls. Make sure to take into account devices configured with |
| 4378 | right-to-left languages like Arabic and Hebrew.</p></div> |
| 4379 | <div class="jd-tagdata"> |
| 4380 | <h5 class="jd-tagtitle">Returns</h5> |
| 4381 | <ul class="nolist"><li>true on scrolled, else false</li></ul> |
| 4382 | </div> |
| 4383 | <div class="jd-tagdata"> |
| 4384 | <h5 class="jd-tagtitle">Throws</h5> |
| 4385 | <table class="jd-tagtable"> |
| 4386 | <tr> |
| 4387 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 4388 | <td></td> |
| 4389 | </tr> |
| 4390 | </table> |
| 4391 | </div> |
| 4392 | |
| 4393 | </div> |
| 4394 | </div> |
| 4395 | |
| 4396 | |
| 4397 | <A NAME="setAsHorizontalList()"></A> |
| 4398 | |
| 4399 | <div class="jd-details api apilevel-"> |
| 4400 | <h4 class="jd-details-title"> |
| 4401 | <span class="normal"> |
| 4402 | public |
| 4403 | |
| 4404 | |
| 4405 | |
| 4406 | |
| 4407 | <a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a> |
| 4408 | </span> |
| 4409 | <span class="sympad">setAsHorizontalList</span> |
| 4410 | <span class="normal">()</span> |
| 4411 | </h4> |
| 4412 | <div class="api-level"> |
| 4413 | <div></div> |
| 4414 | |
| 4415 | |
| 4416 | |
| 4417 | </div> |
| 4418 | <div class="jd-details-descr"> |
| 4419 | |
| 4420 | |
| 4421 | |
| 4422 | |
| 4423 | <div class="jd-tagdata jd-tagdescr"><p>Set the direction of swipes to be horizontal when performing scroll actions.</p></div> |
| 4424 | <div class="jd-tagdata"> |
| 4425 | <h5 class="jd-tagtitle">Returns</h5> |
| 4426 | <ul class="nolist"><li>reference to itself</li></ul> |
| 4427 | </div> |
| 4428 | |
| 4429 | </div> |
| 4430 | </div> |
| 4431 | |
| 4432 | |
| 4433 | <A NAME="setAsVerticalList()"></A> |
| 4434 | |
| 4435 | <div class="jd-details api apilevel-"> |
| 4436 | <h4 class="jd-details-title"> |
| 4437 | <span class="normal"> |
| 4438 | public |
| 4439 | |
| 4440 | |
| 4441 | |
| 4442 | |
| 4443 | <a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a> |
| 4444 | </span> |
| 4445 | <span class="sympad">setAsVerticalList</span> |
| 4446 | <span class="normal">()</span> |
| 4447 | </h4> |
| 4448 | <div class="api-level"> |
| 4449 | <div></div> |
| 4450 | |
| 4451 | |
| 4452 | |
| 4453 | </div> |
| 4454 | <div class="jd-details-descr"> |
| 4455 | |
| 4456 | |
| 4457 | |
| 4458 | |
| 4459 | <div class="jd-tagdata jd-tagdescr"><p>Set the direction of swipes to be vertical when performing scroll actions.</p></div> |
| 4460 | <div class="jd-tagdata"> |
| 4461 | <h5 class="jd-tagtitle">Returns</h5> |
| 4462 | <ul class="nolist"><li>reference to itself</li></ul> |
| 4463 | </div> |
| 4464 | |
| 4465 | </div> |
| 4466 | </div> |
| 4467 | |
| 4468 | |
| 4469 | <A NAME="setMaxSearchSwipes(int)"></A> |
| 4470 | |
| 4471 | <div class="jd-details api apilevel-"> |
| 4472 | <h4 class="jd-details-title"> |
| 4473 | <span class="normal"> |
| 4474 | public |
| 4475 | |
| 4476 | |
| 4477 | |
| 4478 | |
| 4479 | <a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a> |
| 4480 | </span> |
| 4481 | <span class="sympad">setMaxSearchSwipes</span> |
| 4482 | <span class="normal">(int swipes)</span> |
| 4483 | </h4> |
| 4484 | <div class="api-level"> |
| 4485 | <div></div> |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | </div> |
| 4490 | <div class="jd-details-descr"> |
| 4491 | |
| 4492 | |
| 4493 | |
| 4494 | |
| 4495 | <div class="jd-tagdata jd-tagdescr"><p>Sets the maximum number of scrolls allowed when performing a |
| 4496 | scroll action in search of a child element. |
| 4497 | See <code><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getChildByDescription(android.support.test.uiautomator.UiSelector, java.lang.String)">getChildByDescription(UiSelector, String)</a></code> and |
| 4498 | <code><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html#getChildByText(android.support.test.uiautomator.UiSelector, java.lang.String)">getChildByText(UiSelector, String)</a></code>.</p></div> |
| 4499 | <div class="jd-tagdata"> |
| 4500 | <h5 class="jd-tagtitle">Parameters</h5> |
| 4501 | <table class="jd-tagtable"> |
| 4502 | <tr> |
| 4503 | <th>swipes</td> |
| 4504 | <td>the number of search swipes to perform until giving up</td> |
| 4505 | </tr> |
| 4506 | </table> |
| 4507 | </div> |
| 4508 | <div class="jd-tagdata"> |
| 4509 | <h5 class="jd-tagtitle">Returns</h5> |
| 4510 | <ul class="nolist"><li>reference to itself</li></ul> |
| 4511 | </div> |
| 4512 | |
| 4513 | </div> |
| 4514 | </div> |
| 4515 | |
| 4516 | |
| 4517 | <A NAME="setSwipeDeadZonePercentage(double)"></A> |
| 4518 | |
| 4519 | <div class="jd-details api apilevel-"> |
| 4520 | <h4 class="jd-details-title"> |
| 4521 | <span class="normal"> |
| 4522 | public |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | |
| 4527 | <a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a> |
| 4528 | </span> |
| 4529 | <span class="sympad">setSwipeDeadZonePercentage</span> |
| 4530 | <span class="normal">(double swipeDeadZonePercentage)</span> |
| 4531 | </h4> |
| 4532 | <div class="api-level"> |
| 4533 | <div></div> |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | </div> |
| 4538 | <div class="jd-details-descr"> |
| 4539 | |
| 4540 | |
| 4541 | |
| 4542 | |
| 4543 | <div class="jd-tagdata jd-tagdescr"><p>Sets the percentage of a widget's size that's considered as no-touch |
| 4544 | zone when swiping. |
| 4545 | The no-touch zone is set as percentage of a widget's total width or height, |
| 4546 | denoting a margin around the swipable area of the widget. Swipes must |
| 4547 | always start and end inside this margin. This is important when the |
| 4548 | widget being swiped may not respond to the swipe if started at a point |
| 4549 | too near to the edge. The default is 10% from either edge.</p></div> |
| 4550 | <div class="jd-tagdata"> |
| 4551 | <h5 class="jd-tagtitle">Parameters</h5> |
| 4552 | <table class="jd-tagtable"> |
| 4553 | <tr> |
| 4554 | <th>swipeDeadZonePercentage</td> |
| 4555 | <td>is a value between 0 and 1</td> |
| 4556 | </tr> |
| 4557 | </table> |
| 4558 | </div> |
| 4559 | <div class="jd-tagdata"> |
| 4560 | <h5 class="jd-tagtitle">Returns</h5> |
| 4561 | <ul class="nolist"><li>reference to itself</li></ul> |
| 4562 | </div> |
| 4563 | |
| 4564 | </div> |
| 4565 | </div> |
| 4566 | |
| 4567 | |
| 4568 | |
| 4569 | |
| 4570 | |
| 4571 | <!-- ========= METHOD DETAIL ======== --> |
| 4572 | |
| 4573 | <h2>Protected Methods</h2> |
| 4574 | |
| 4575 | |
| 4576 | |
| 4577 | <A NAME="exists(android.support.test.uiautomator.UiSelector)"></A> |
| 4578 | |
| 4579 | <div class="jd-details api apilevel-"> |
| 4580 | <h4 class="jd-details-title"> |
| 4581 | <span class="normal"> |
| 4582 | protected |
| 4583 | |
| 4584 | |
| 4585 | |
| 4586 | |
| 4587 | boolean |
| 4588 | </span> |
| 4589 | <span class="sympad">exists</span> |
| 4590 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</span> |
| 4591 | </h4> |
| 4592 | <div class="api-level"> |
| 4593 | <div></div> |
| 4594 | |
| 4595 | |
| 4596 | |
| 4597 | </div> |
| 4598 | <div class="jd-details-descr"> |
| 4599 | |
| 4600 | |
| 4601 | |
| 4602 | |
| 4603 | <div class="jd-tagdata jd-tagdescr"><p>Used privately when performing swipe searches to decide if an element has become |
| 4604 | visible or not.</p></div> |
| 4605 | <div class="jd-tagdata"> |
| 4606 | <h5 class="jd-tagtitle">Returns</h5> |
| 4607 | <ul class="nolist"><li>true if found else false</li></ul> |
| 4608 | </div> |
| 4609 | |
| 4610 | </div> |
| 4611 | </div> |
| 4612 | |
| 4613 | |
| 4614 | |
| 4615 | |
| 4616 | |
| 4617 | <!-- ========= END OF CLASS DATA ========= --> |
| 4618 | <A NAME="navbar_top"></A> |
| 4619 | |
| 4620 | <div id="footer" class="wrap" > |
| 4621 | |
| 4622 | |
| 4623 | <div id="copyright"> |
| 4624 | |
| 4625 | Except as noted, this content is licensed under <a |
| 4626 | href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. |
| 4627 | For details and restrictions, see the <a href="../../../../../license.html"> |
| 4628 | Content License</a>. |
| 4629 | </div> |
| 4630 | <div id="build_info"> |
| 4631 | |
| 4632 | Android r — |
| 4633 | <script src="../../../../../timestamp.js" type="text/javascript"></script> |
| 4634 | <script>document.write(BUILD_TIMESTAMP)</script> |
| 4635 | |
| 4636 | </div> |
| 4637 | |
| 4638 | |
| 4639 | <div id="footerlinks"> |
| 4640 | |
| 4641 | <p> |
| 4642 | <a href="../../../../../about/index.html">About Android</a> | |
| 4643 | <a href="../../../../../legal.html">Legal</a> | |
| 4644 | <a href="../../../../../support.html">Support</a> |
| 4645 | </p> |
| 4646 | </div> |
| 4647 | |
| 4648 | </div> <!-- end footer --> |
| 4649 | </div> <!-- jd-content --> |
| 4650 | |
| 4651 | </div><!-- end doc-content --> |
| 4652 | |
| 4653 | </div> <!-- end body-content --> |
| 4654 | |
| 4655 | |
| 4656 | |
| 4657 | |
| 4658 | |
| 4659 | |
| 4660 | </body> |
| 4661 | </html> |