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 | |
| 98 | <html> |
| 99 | <head> |
| 100 | |
| 101 | |
| 102 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 103 | <meta name="viewport" content="width=device-width" /> |
| 104 | |
| 105 | <link rel="shortcut icon" type="image/x-icon" href="../../../../../../favicon.ico" /> |
| 106 | <title>ViewActions | Android Developers</title> |
| 107 | |
| 108 | <!-- STYLESHEETS --> |
| 109 | <link rel="stylesheet" |
| 110 | href="http://fonts.googleapis.com/css?family=Roboto+Condensed"> |
| 111 | <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold" |
| 112 | title="roboto"> |
| 113 | <link href="../../../../../../assets/css/default.css?v=2" rel="stylesheet" type="text/css"> |
| 114 | |
| 115 | |
| 116 | <!-- FULLSCREEN STYLESHEET --> |
| 117 | <link href="../../../../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen" |
| 118 | type="text/css"> |
| 119 | |
| 120 | |
| 121 | <!-- JAVASCRIPT --> |
| 122 | <script src="http://www.google.com/jsapi" type="text/javascript"></script> |
| 123 | <script src="../../../../../../assets/js/android_3p-bundle.js" type="text/javascript"></script> |
| 124 | <script type="text/javascript"> |
| 125 | var toRoot = "../../../../../../"; |
| 126 | var metaTags = []; |
| 127 | var devsite = false; |
| 128 | </script> |
| 129 | <script src="../../../../../../assets/js/docs.js?v=2" type="text/javascript"></script> |
| 130 | |
| 131 | <script> |
| 132 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 133 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 134 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 135 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| 136 | |
| 137 | ga('create', 'UA-5831155-1', 'android.com'); |
| 138 | ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker); |
| 139 | ga('send', 'pageview'); |
| 140 | ga('universal.send', 'pageview'); // Send page view for new tracker. |
| 141 | </script> |
| 142 | |
| 143 | </head> |
| 144 | |
| 145 | <body class="gc-documentation |
| 146 | develop reference" itemscope itemtype="http://schema.org/Article"> |
| 147 | <div id="doc-api-level" class="" style="display:none"></div> |
| 148 | <a name="top"></a> |
| 149 | |
| 150 | |
| 151 | <a name="top"></a> |
| 152 | |
| 153 | <!-- Header --> |
| 154 | <div id="header-wrapper"> |
| 155 | <div id="header"> |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | <div class="wrap" id="header-wrap"> |
| 161 | <div class="col-3 logo"> |
| 162 | <a href="../../../../../../index.html"> |
| 163 | <img src="../../../../../../assets/images/dac_logo.png" |
| 164 | srcset="../../../../../../assets/images/dac_logo@2x.png 2x" |
| 165 | width="123" height="25" alt="Android Developers" /> |
| 166 | </a> |
| 167 | <div class="btn-quicknav" id="btn-quicknav"> |
| 168 | <a href="#" class="arrow-inactive">Quicknav</a> |
| 169 | <a href="#" class="arrow-active">Quicknav</a> |
| 170 | </div> |
| 171 | </div> |
| 172 | <ul class="nav-x col-9"> |
| 173 | <li class="design"> |
| 174 | <a href="../../../../../../design/index.html" |
| 175 | zh-tw-lang="設計" |
| 176 | zh-cn-lang="设计" |
| 177 | ru-lang="Проектирование" |
| 178 | ko-lang="디자인" |
| 179 | ja-lang="設計" |
| 180 | es-lang="Diseñar" |
| 181 | >Design</a></li> |
| 182 | <li class="develop"><a href="../../../../../../develop/index.html" |
| 183 | zh-tw-lang="開發" |
| 184 | zh-cn-lang="开发" |
| 185 | ru-lang="Разработка" |
| 186 | ko-lang="개발" |
| 187 | ja-lang="開発" |
| 188 | es-lang="Desarrollar" |
| 189 | >Develop</a></li> |
| 190 | <li class="distribute last"><a href="../../../../../../distribute/index.html" |
| 191 | zh-tw-lang="發佈" |
| 192 | zh-cn-lang="分发" |
| 193 | ru-lang="Распространение" |
| 194 | ko-lang="배포" |
| 195 | ja-lang="配布" |
| 196 | es-lang="Distribuir" |
| 197 | >Distribute</a></li> |
| 198 | </ul> |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | <div class="menu-container"> |
| 204 | <div class="moremenu"> |
| 205 | <div id="more-btn"></div> |
| 206 | </div> |
| 207 | <div class="morehover" id="moremenu"> |
| 208 | <div class="top"></div> |
| 209 | <div class="mid"> |
| 210 | <div class="header">Links</div> |
| 211 | <ul> |
| 212 | <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li> |
| 213 | <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> |
| 214 | <li><a href="../../../../../../about/index.html">About Android</a></li> |
| 215 | </ul> |
| 216 | <div class="header">Android Sites</div> |
| 217 | <ul> |
| 218 | <li><a href="http://www.android.com">Android.com</a></li> |
| 219 | <li class="active"><a>Android Developers</a></li> |
| 220 | <li><a href="http://source.android.com">Android Open Source Project</a></li> |
| 221 | </ul> |
| 222 | |
| 223 | |
| 224 | |
| 225 | |
| 226 | <br class="clearfix" /> |
| 227 | </div><!-- end 'mid' --> |
| 228 | <div class="bottom"></div> |
| 229 | </div><!-- end 'moremenu' --> |
| 230 | |
| 231 | <div class="search" id="search-container"> |
| 232 | <div class="search-inner"> |
| 233 | <div id="search-btn"></div> |
| 234 | <div class="left"></div> |
| 235 | <form onsubmit="return submit_search()"> |
| 236 | <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" |
| 237 | onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" |
| 238 | onkeydown="return search_changed(event, true, '../../../../../../')" |
| 239 | onkeyup="return search_changed(event, false, '../../../../../../')" /> |
| 240 | </form> |
| 241 | <div class="right"></div> |
| 242 | <a class="close hide">close</a> |
| 243 | <div class="left"></div> |
| 244 | <div class="right"></div> |
| 245 | </div><!-- end search-inner --> |
| 246 | </div><!-- end search-container --> |
| 247 | |
| 248 | <div class="search_filtered_wrapper reference"> |
| 249 | <div class="suggest-card reference no-display"> |
| 250 | <ul class="search_filtered"> |
| 251 | </ul> |
| 252 | </div> |
| 253 | </div> |
| 254 | |
| 255 | <div class="search_filtered_wrapper docs"> |
| 256 | <div class="suggest-card dummy no-display"> </div> |
| 257 | <div class="suggest-card develop no-display"> |
| 258 | <ul class="search_filtered"> |
| 259 | </ul> |
| 260 | <div class="child-card guides no-display"> |
| 261 | </div> |
| 262 | <div class="child-card training no-display"> |
| 263 | </div> |
| 264 | <div class="child-card samples no-display"> |
| 265 | </div> |
| 266 | </div> |
| 267 | <div class="suggest-card design no-display"> |
| 268 | <ul class="search_filtered"> |
| 269 | </ul> |
| 270 | </div> |
| 271 | <div class="suggest-card distribute no-display"> |
| 272 | <ul class="search_filtered"> |
| 273 | </ul> |
| 274 | </div> |
| 275 | </div> |
| 276 | </div><!-- end menu-container (search and menu widget) --> |
| 277 | |
| 278 | |
| 279 | |
| 280 | <!-- Expanded quicknav --> |
| 281 | <div id="quicknav" class="col-13"> |
| 282 | <ul> |
| 283 | <li class="about"> |
| 284 | <ul> |
| 285 | <li><a href="../../../../../../about/index.html">About</a></li> |
| 286 | <li><a href="../../../../../../wear/index.html">Wear</a></li> |
| 287 | <li><a href="../../../../../../tv/index.html">TV</a></li> |
| 288 | <li><a href="../../../../../../auto/index.html">Auto</a></li> |
| 289 | </ul> |
| 290 | </li> |
| 291 | <li class="design"> |
| 292 | <ul> |
| 293 | <li><a href="../../../../../../design/index.html">Get Started</a></li> |
| 294 | <li><a href="../../../../../../design/devices.html">Devices</a></li> |
| 295 | <li><a href="../../../../../../design/style/index.html">Style</a></li> |
| 296 | <li><a href="../../../../../../design/patterns/index.html">Patterns</a></li> |
| 297 | <li><a href="../../../../../../design/building-blocks/index.html">Building Blocks</a></li> |
| 298 | <li><a href="../../../../../../design/downloads/index.html">Downloads</a></li> |
| 299 | <li><a href="../../../../../../design/videos/index.html">Videos</a></li> |
| 300 | </ul> |
| 301 | </li> |
| 302 | <li class="develop"> |
| 303 | <ul> |
| 304 | <li><a href="../../../../../../training/index.html" |
| 305 | zh-tw-lang="訓練課程" |
| 306 | zh-cn-lang="培训" |
| 307 | ru-lang="Курсы" |
| 308 | ko-lang="교육" |
| 309 | ja-lang="トレーニング" |
| 310 | es-lang="Capacitación" |
| 311 | >Training</a></li> |
| 312 | <li><a href="../../../../../../guide/index.html" |
| 313 | zh-tw-lang="API 指南" |
| 314 | zh-cn-lang="API 指南" |
| 315 | ru-lang="Руководства по API" |
| 316 | ko-lang="API 가이드" |
| 317 | ja-lang="API ガイド" |
| 318 | es-lang="Guías de la API" |
| 319 | >API Guides</a></li> |
| 320 | <li><a href="../../../../../../reference/packages.html" |
| 321 | zh-tw-lang="參考資源" |
| 322 | zh-cn-lang="参考" |
| 323 | ru-lang="Справочник" |
| 324 | ko-lang="참조문서" |
| 325 | ja-lang="リファレンス" |
| 326 | es-lang="Referencia" |
| 327 | >Reference</a></li> |
| 328 | <li><a href="../../../../../../sdk/index.html" |
| 329 | zh-tw-lang="相關工具" |
| 330 | zh-cn-lang="工具" |
| 331 | ru-lang="Инструменты" |
| 332 | ko-lang="도구" |
| 333 | ja-lang="ツール" |
| 334 | es-lang="Herramientas" |
| 335 | >Tools</a> |
| 336 | </li> |
| 337 | <li><a href="../../../../../../google/index.html">Google Services</a> |
| 338 | </li> |
| 339 | |
| 340 | </ul> |
| 341 | </li> |
| 342 | <li class="distribute last"> |
| 343 | <ul> |
| 344 | <li><a href="../../../../../../distribute/googleplay/index.html">Google Play</a></li> |
| 345 | <li><a href="../../../../../../distribute/essentials/index.html">Essentials</a></li> |
| 346 | <li><a href="../../../../../../distribute/users/index.html">Get Users</a></li> |
| 347 | <li><a href="../../../../../../distribute/engage/index.html">Engage & Retain</a></li> |
| 348 | <li><a href="../../../../../../distribute/monetize/index.html">Monetize</a></li> |
| 349 | <li><a href="../../../../../../distribute/tools/index.html">Tools & Reference</a></li> |
| 350 | <li><a href="../../../../../../distribute/stories/index.html">Developer Stories</a></li> |
| 351 | </ul> |
| 352 | </li> |
| 353 | </ul> |
| 354 | </div><!-- /Expanded quicknav --> |
| 355 | </div><!-- end header-wrap.wrap --> |
| 356 | </div><!-- end header --> |
| 357 | |
| 358 | |
| 359 | <!-- Secondary x-nav --> |
| 360 | <div id="nav-x"> |
| 361 | <div class="wrap" style="position:relative;z-index:1"> |
| 362 | |
| 363 | |
| 364 | <a id="helpoutsLink" class="resource resource-card resource-card-6x2x3 resource-card-6x2 helpouts-card" |
| 365 | href="http://helpouts.google.com/partner/landing/provider/googledevelopers" target="_blank"> |
| 366 | <div class="card-bg helpouts-card-bg"></div> |
| 367 | <div class="card-info"> |
| 368 | <div class="helpouts-description"> |
| 369 | <div class="text">Help developers solve problems<br/> |
| 370 | <span id="helpoutsLinkText" class="link-color" style="display:block;padding-top:5px;text-align:right">Learn more</span> |
| 371 | </div> |
| 372 | </div> |
| 373 | </div> |
| 374 | </a> |
| 375 | <script> |
| 376 | var textA = "LEARN MORE"; |
| 377 | var linkA = "http://helpouts.google.com/partner/landing/provider/googledevelopers?utm_source=android_banner1&utm_medium=banner&utm_campaign=android_provider_banner1"; |
| 378 | var textB = "SIGN UP NOW"; |
| 379 | var linkB = "http://helpouts.google.com/partner/landing/provider/googledevelopers?utm_source=android_banner2&utm_medium=banner&utm_campaign=android_provider_banner2"; |
| 380 | |
| 381 | if (Math.floor(1/Math.random()) > 1) { |
| 382 | $("a#helpoutsLink").attr('href', linkA); |
| 383 | $("span#helpoutsLinkText").text(textA); |
| 384 | } else { |
| 385 | $("a#helpoutsLink").attr('href', linkB); |
| 386 | $("span#helpoutsLinkText").text(textB); |
| 387 | } |
| 388 | </script> |
| 389 | |
| 390 | |
| 391 | <ul class="nav-x col-9 develop" style="width:100%"> |
| 392 | <li class="training"><a href="../../../../../../training/index.html" |
| 393 | zh-tw-lang="訓練課程" |
| 394 | zh-cn-lang="培训" |
| 395 | ru-lang="Курсы" |
| 396 | ko-lang="교육" |
| 397 | ja-lang="トレーニング" |
| 398 | es-lang="Capacitación" |
| 399 | >Training</a></li> |
| 400 | <li class="guide"><a href="../../../../../../guide/index.html" |
| 401 | zh-tw-lang="API 指南" |
| 402 | zh-cn-lang="API 指南" |
| 403 | ru-lang="Руководства по API" |
| 404 | ko-lang="API 가이드" |
| 405 | ja-lang="API ガイド" |
| 406 | es-lang="Guías de la API" |
| 407 | >API Guides</a></li> |
| 408 | <li class="reference"><a href="../../../../../../reference/packages.html" |
| 409 | zh-tw-lang="參考資源" |
| 410 | zh-cn-lang="参考" |
| 411 | ru-lang="Справочник" |
| 412 | ko-lang="참조문서" |
| 413 | ja-lang="リファレンス" |
| 414 | es-lang="Referencia" |
| 415 | >Reference</a></li> |
| 416 | <li class="tools"><a href="../../../../../../sdk/index.html" |
| 417 | zh-tw-lang="相關工具" |
| 418 | zh-cn-lang="工具" |
| 419 | ru-lang="Инструменты" |
| 420 | ko-lang="도구" |
| 421 | ja-lang="ツール" |
| 422 | es-lang="Herramientas" |
| 423 | >Tools</a></li> |
| 424 | <li class="google"><a href="../../../../../../google/index.html" |
| 425 | >Google Services</a> |
| 426 | </li> |
| 427 | |
| 428 | </ul> |
| 429 | </div> |
| 430 | </div> |
| 431 | <!-- /Sendondary x-nav DEVELOP --> |
| 432 | |
| 433 | |
| 434 | |
| 435 | <div id="searchResults" class="wrap" style="display:none;"> |
| 436 | <h2 id="searchTitle">Results</h2> |
| 437 | <div id="leftSearchControl" class="search-control">Loading...</div> |
| 438 | </div> |
| 439 | </div> <!--end header-wrapper --> |
| 440 | |
| 441 | <div id="sticky-header"> |
| 442 | <div> |
| 443 | <a class="logo" href="#top"></a> |
| 444 | <a class="top" href="#top"></a> |
| 445 | <ul class="breadcrumb"> |
| 446 | |
| 447 | <li class="current">ViewActions</li> |
| 448 | </ul> |
| 449 | </div> |
| 450 | </div> |
| 451 | |
| 452 | |
| 453 | |
| 454 | |
| 455 | |
| 456 | <div class="wrap clearfix" id="body-content"> |
| 457 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 458 | <div id="devdoc-nav"> |
| 459 | <div id="api-nav-header"> |
| 460 | <div id="api-level-toggle"> |
| 461 | <label for="apiLevelCheckbox" class="disabled" |
| 462 | title="Select your target API level to dim unavailable APIs">API level: </label> |
| 463 | <div class="select-wrapper"> |
| 464 | <select id="apiLevelSelector"> |
| 465 | <!-- option elements added by buildApiLevelSelector() --> |
| 466 | </select> |
| 467 | </div> |
| 468 | </div><!-- end toggle --> |
| 469 | <div id="api-nav-title">Android APIs</div> |
| 470 | </div><!-- end nav header --> |
| 471 | <script> |
| 472 | var SINCE_DATA = [ ]; |
| 473 | buildApiLevelSelector(); |
| 474 | </script> |
| 475 | |
| 476 | <div id="swapper"> |
| 477 | <div id="nav-panels"> |
| 478 | <div id="resize-packages-nav"> |
| 479 | <div id="packages-nav" class="scroll-pane"> |
| 480 | |
| 481 | <ul> |
| 482 | |
| 483 | <li class="api apilevel-"> |
| 484 | <a href="../../../../../../reference/android/support/test/package-summary.html">android.support.test</a></li> |
| 485 | <li class="api apilevel-"> |
| 486 | <a href="../../../../../../reference/android/support/test/espresso/package-summary.html">android.support.test.espresso</a></li> |
| 487 | <li class="selected api apilevel-"> |
| 488 | <a href="../../../../../../reference/android/support/test/espresso/action/package-summary.html">android.support.test.espresso.action</a></li> |
| 489 | <li class="api apilevel-"> |
| 490 | <a href="../../../../../../reference/android/support/test/espresso/assertion/package-summary.html">android.support.test.espresso.assertion</a></li> |
| 491 | <li class="api apilevel-"> |
| 492 | <a href="../../../../../../reference/android/support/test/espresso/base/package-summary.html">android.support.test.espresso.base</a></li> |
| 493 | <li class="api apilevel-"> |
| 494 | <a href="../../../../../../reference/android/support/test/espresso/contrib/package-summary.html">android.support.test.espresso.contrib</a></li> |
| 495 | <li class="api apilevel-"> |
| 496 | <a href="../../../../../../reference/android/support/test/espresso/matcher/package-summary.html">android.support.test.espresso.matcher</a></li> |
| 497 | <li class="api apilevel-"> |
| 498 | <a href="../../../../../../reference/android/support/test/espresso/util/package-summary.html">android.support.test.espresso.util</a></li> |
| 499 | <li class="api apilevel-"> |
| 500 | <a href="../../../../../../reference/android/support/test/filters/package-summary.html">android.support.test.filters</a></li> |
| 501 | <li class="api apilevel-"> |
| 502 | <a href="../../../../../../reference/android/support/test/runner/package-summary.html">android.support.test.runner</a></li> |
| 503 | <li class="api apilevel-"> |
| 504 | <a href="../../../../../../reference/android/support/test/runner/lifecycle/package-summary.html">android.support.test.runner.lifecycle</a></li> |
| 505 | <li class="api apilevel-"> |
| 506 | <a href="../../../../../../reference/android/support/test/uiautomator/package-summary.html">android.support.test.uiautomator</a></li> |
| 507 | </ul><br/> |
| 508 | |
| 509 | </div> <!-- end packages-nav --> |
| 510 | </div> <!-- end resize-packages --> |
| 511 | <div id="classes-nav" class="scroll-pane"> |
| 512 | |
| 513 | |
| 514 | |
| 515 | <ul> |
| 516 | |
| 517 | |
| 518 | <li><h2>Interfaces</h2> |
| 519 | <ul> |
| 520 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/AdapterViewProtocol.html">AdapterViewProtocol</a></li> |
| 521 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/AdapterViewProtocol.DataFunction.html">AdapterViewProtocol.DataFunction</a></li> |
| 522 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/CoordinatesProvider.html">CoordinatesProvider</a></li> |
| 523 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/PrecisionDescriber.html">PrecisionDescriber</a></li> |
| 524 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/Swiper.html">Swiper</a></li> |
| 525 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/Tapper.html">Tapper</a></li> |
| 526 | </ul> |
| 527 | </li> |
| 528 | |
| 529 | <li><h2>Classes</h2> |
| 530 | <ul> |
| 531 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/AdapterDataLoaderAction.html">AdapterDataLoaderAction</a></li> |
| 532 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.html">AdapterViewProtocol.AdaptedData</a></li> |
| 533 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.Builder.html">AdapterViewProtocol.AdaptedData.Builder</a></li> |
| 534 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/AdapterViewProtocols.html">AdapterViewProtocols</a></li> |
| 535 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/CloseKeyboardAction.html">CloseKeyboardAction</a></li> |
| 536 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/EditorAction.html">EditorAction</a></li> |
| 537 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/EspressoKey.html">EspressoKey</a></li> |
| 538 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/EspressoKey.Builder.html">EspressoKey.Builder</a></li> |
| 539 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/GeneralClickAction.html">GeneralClickAction</a></li> |
| 540 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/GeneralSwipeAction.html">GeneralSwipeAction</a></li> |
| 541 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/KeyEventAction.html">KeyEventAction</a></li> |
| 542 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/OpenLinkAction.html">OpenLinkAction</a></li> |
| 543 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/ReplaceTextAction.html">ReplaceTextAction</a></li> |
| 544 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/ScrollToAction.html">ScrollToAction</a></li> |
| 545 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/TypeTextAction.html">TypeTextAction</a></li> |
| 546 | <li class="selected api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html">ViewActions</a></li> |
| 547 | </ul> |
| 548 | </li> |
| 549 | |
| 550 | <li><h2>Enums</h2> |
| 551 | <ul> |
| 552 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/GeneralLocation.html">GeneralLocation</a></li> |
| 553 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/Press.html">Press</a></li> |
| 554 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/Swipe.html">Swipe</a></li> |
| 555 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/Swiper.Status.html">Swiper.Status</a></li> |
| 556 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/Tap.html">Tap</a></li> |
| 557 | <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/action/Tapper.Status.html">Tapper.Status</a></li> |
| 558 | </ul> |
| 559 | </li> |
| 560 | |
| 561 | |
| 562 | </ul><br/> |
| 563 | |
| 564 | |
| 565 | </div><!-- end classes --> |
| 566 | </div><!-- end nav-panels --> |
| 567 | <div id="nav-tree" style="display:none" class="scroll-pane"> |
| 568 | <div id="tree-list"></div> |
| 569 | </div><!-- end nav-tree --> |
| 570 | </div><!-- end swapper --> |
| 571 | <div id="nav-swap"> |
| 572 | <a class="fullscreen">fullscreen</a> |
| 573 | <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> |
| 574 | </div> |
| 575 | </div> <!-- end devdoc-nav --> |
| 576 | </div> <!-- end side-nav --> |
| 577 | <script type="text/javascript"> |
| 578 | // init fullscreen based on user pref |
| 579 | var fullscreen = readCookie("fullscreen"); |
| 580 | if (fullscreen != 0) { |
| 581 | if (fullscreen == "false") { |
| 582 | toggleFullscreen(false); |
| 583 | } else { |
| 584 | toggleFullscreen(true); |
| 585 | } |
| 586 | } |
| 587 | // init nav version for mobile |
| 588 | if (isMobile) { |
| 589 | swapNav(); // tree view should be used on mobile |
| 590 | $('#nav-swap').hide(); |
| 591 | } else { |
| 592 | chooseDefaultNav(); |
| 593 | if ($("#nav-tree").is(':visible')) { |
| 594 | init_default_navtree("../../../../../../"); |
| 595 | } |
| 596 | } |
| 597 | // scroll the selected page into view |
| 598 | $(document).ready(function() { |
| 599 | scrollIntoView("packages-nav"); |
| 600 | scrollIntoView("classes-nav"); |
| 601 | }); |
| 602 | </script> |
| 603 | |
| 604 | |
| 605 | |
| 606 | |
| 607 | |
| 608 | <div class="col-12" id="doc-col"> |
| 609 | |
| 610 | <div id="api-info-block"> |
| 611 | |
| 612 | |
| 613 | |
| 614 | |
| 615 | |
| 616 | |
| 617 | |
| 618 | |
| 619 | |
| 620 | |
| 621 | |
| 622 | <div class="sum-details-links"> |
| 623 | |
| 624 | Summary: |
| 625 | |
| 626 | |
| 627 | |
| 628 | |
| 629 | |
| 630 | |
| 631 | |
| 632 | |
| 633 | |
| 634 | |
| 635 | |
| 636 | <a href="#pubmethods">Methods</a> |
| 637 | |
| 638 | |
| 639 | |
| 640 | |
| 641 | | <a href="#inhmethods">Inherited Methods</a> |
| 642 | |
| 643 | | <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> |
| 644 | |
| 645 | </div><!-- end sum-details-links --> |
| 646 | <div class="api-level"> |
| 647 | |
| 648 | |
| 649 | |
| 650 | |
| 651 | </div> |
| 652 | </div><!-- end api-info-block --> |
| 653 | |
| 654 | |
| 655 | <!-- ======== START OF CLASS DATA ======== --> |
| 656 | |
| 657 | <div id="jd-header"> |
| 658 | public |
| 659 | |
| 660 | final |
| 661 | |
| 662 | class |
| 663 | <h1 itemprop="name">ViewActions</h1> |
| 664 | |
| 665 | |
| 666 | |
| 667 | |
| 668 | extends Object<br/> |
| 669 | |
| 670 | |
| 671 | |
| 672 | |
| 673 | |
| 674 | |
| 675 | |
| 676 | |
| 677 | |
| 678 | |
| 679 | |
| 680 | |
| 681 | </div><!-- end header --> |
| 682 | |
| 683 | <div id="naMessage"></div> |
| 684 | |
| 685 | <div id="jd-content" class="api apilevel-"> |
| 686 | <table class="jd-inheritance-table"> |
| 687 | |
| 688 | |
| 689 | <tr> |
| 690 | |
| 691 | <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td> |
| 692 | </tr> |
| 693 | |
| 694 | |
| 695 | <tr> |
| 696 | |
| 697 | <td class="jd-inheritance-space"> ↳</td> |
| 698 | |
| 699 | <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.action.ViewActions</td> |
| 700 | </tr> |
| 701 | |
| 702 | |
| 703 | </table> |
| 704 | |
| 705 | |
| 706 | |
| 707 | |
| 708 | |
| 709 | |
| 710 | |
| 711 | <div class="jd-descr"> |
| 712 | |
| 713 | |
| 714 | <h2>Class Overview</h2> |
| 715 | <p itemprop="articleBody">A collection of common <code><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html">ViewActions</a></code>. |
| 716 | </p> |
| 717 | |
| 718 | |
| 719 | |
| 720 | |
| 721 | |
| 722 | </div><!-- jd-descr --> |
| 723 | |
| 724 | |
| 725 | |
| 726 | |
| 727 | |
| 728 | |
| 729 | |
| 730 | |
| 731 | |
| 732 | |
| 733 | |
| 734 | |
| 735 | |
| 736 | |
| 737 | |
| 738 | |
| 739 | <div class="jd-descr"> |
| 740 | |
| 741 | |
| 742 | <h2>Summary</h2> |
| 743 | |
| 744 | |
| 745 | |
| 746 | |
| 747 | |
| 748 | |
| 749 | |
| 750 | |
| 751 | |
| 752 | |
| 753 | |
| 754 | |
| 755 | |
| 756 | |
| 757 | |
| 758 | |
| 759 | |
| 760 | |
| 761 | |
| 762 | |
| 763 | |
| 764 | |
| 765 | |
| 766 | |
| 767 | |
| 768 | |
| 769 | |
| 770 | <!-- ========== METHOD SUMMARY =========== --> |
| 771 | <table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr> |
| 772 | |
| 773 | |
| 774 | |
| 775 | |
| 776 | <tr class="alt-color api apilevel-" > |
| 777 | <td class="jd-typecol"><nobr> |
| 778 | |
| 779 | |
| 780 | |
| 781 | static |
| 782 | |
| 783 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 784 | </td> |
| 785 | <td class="jd-linkcol" width="100%"><nobr> |
| 786 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#clearText()">clearText</a></span>()</nobr> |
| 787 | |
| 788 | <div class="jd-descrdiv"> |
| 789 | Returns an action that clears text on the view. |
| 790 | |
| 791 | |
| 792 | |
| 793 | </div> |
| 794 | |
| 795 | </td></tr> |
| 796 | |
| 797 | |
| 798 | |
| 799 | <tr class=" api apilevel-" > |
| 800 | <td class="jd-typecol"><nobr> |
| 801 | |
| 802 | |
| 803 | |
| 804 | static |
| 805 | |
| 806 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 807 | </td> |
| 808 | <td class="jd-linkcol" width="100%"><nobr> |
| 809 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#click(android.support.test.espresso.ViewAction)">click</a></span>(<a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> rollbackAction)</nobr> |
| 810 | |
| 811 | <div class="jd-descrdiv"> |
| 812 | Returns an action that performs a single click on the view. |
| 813 | |
| 814 | |
| 815 | |
| 816 | </div> |
| 817 | |
| 818 | </td></tr> |
| 819 | |
| 820 | |
| 821 | |
| 822 | <tr class="alt-color api apilevel-" > |
| 823 | <td class="jd-typecol"><nobr> |
| 824 | |
| 825 | |
| 826 | |
| 827 | static |
| 828 | |
| 829 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 830 | </td> |
| 831 | <td class="jd-linkcol" width="100%"><nobr> |
| 832 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#click()">click</a></span>()</nobr> |
| 833 | |
| 834 | <div class="jd-descrdiv"> |
| 835 | Returns an action that clicks the view. |
| 836 | |
| 837 | |
| 838 | |
| 839 | </div> |
| 840 | |
| 841 | </td></tr> |
| 842 | |
| 843 | |
| 844 | |
| 845 | <tr class=" api apilevel-" > |
| 846 | <td class="jd-typecol"><nobr> |
| 847 | |
| 848 | |
| 849 | |
| 850 | static |
| 851 | |
| 852 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 853 | </td> |
| 854 | <td class="jd-linkcol" width="100%"><nobr> |
| 855 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#closeSoftKeyboard()">closeSoftKeyboard</a></span>()</nobr> |
| 856 | |
| 857 | <div class="jd-descrdiv"> |
| 858 | Returns an action that closes soft keyboard. |
| 859 | |
| 860 | |
| 861 | |
| 862 | </div> |
| 863 | |
| 864 | </td></tr> |
| 865 | |
| 866 | |
| 867 | |
| 868 | <tr class="alt-color api apilevel-" > |
| 869 | <td class="jd-typecol"><nobr> |
| 870 | |
| 871 | |
| 872 | |
| 873 | static |
| 874 | |
| 875 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 876 | </td> |
| 877 | <td class="jd-linkcol" width="100%"><nobr> |
| 878 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#doubleClick()">doubleClick</a></span>()</nobr> |
| 879 | |
| 880 | <div class="jd-descrdiv"> |
| 881 | Returns an action that double clicks the view. |
| 882 | |
| 883 | |
| 884 | |
| 885 | </div> |
| 886 | |
| 887 | </td></tr> |
| 888 | |
| 889 | |
| 890 | |
| 891 | <tr class=" api apilevel-" > |
| 892 | <td class="jd-typecol"><nobr> |
| 893 | |
| 894 | |
| 895 | |
| 896 | static |
| 897 | |
| 898 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 899 | </td> |
| 900 | <td class="jd-linkcol" width="100%"><nobr> |
| 901 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#longClick()">longClick</a></span>()</nobr> |
| 902 | |
| 903 | <div class="jd-descrdiv"> |
| 904 | Returns an action that long clicks the view. |
| 905 | |
| 906 | |
| 907 | |
| 908 | </div> |
| 909 | |
| 910 | </td></tr> |
| 911 | |
| 912 | |
| 913 | |
| 914 | <tr class="alt-color api apilevel-" > |
| 915 | <td class="jd-typecol"><nobr> |
| 916 | |
| 917 | |
| 918 | |
| 919 | static |
| 920 | |
| 921 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 922 | </td> |
| 923 | <td class="jd-linkcol" width="100%"><nobr> |
| 924 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#openLink(org.hamcrest.Matcher<java.lang.String>, org.hamcrest.Matcher<android.net.Uri>)">openLink</a></span>(Matcher<String> linkTextMatcher, Matcher<Uri> uriMatcher)</nobr> |
| 925 | |
| 926 | <div class="jd-descrdiv"> |
| 927 | Returns an action that opens a link matching the given link text and uri matchers. |
| 928 | |
| 929 | |
| 930 | |
| 931 | </div> |
| 932 | |
| 933 | </td></tr> |
| 934 | |
| 935 | |
| 936 | |
| 937 | <tr class=" api apilevel-" > |
| 938 | <td class="jd-typecol"><nobr> |
| 939 | |
| 940 | |
| 941 | |
| 942 | static |
| 943 | |
| 944 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 945 | </td> |
| 946 | <td class="jd-linkcol" width="100%"><nobr> |
| 947 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#openLinkWithText(org.hamcrest.Matcher<java.lang.String>)">openLinkWithText</a></span>(Matcher<String> linkTextMatcher)</nobr> |
| 948 | |
| 949 | <div class="jd-descrdiv"> |
| 950 | Same as <code>openLink(Matcher<String> linkTextMatcher, Matcher<Uri> uriMatcher)</code>, but uses |
| 951 | <code>any(Uri.class)</code> as the uriMatcher. |
| 952 | |
| 953 | |
| 954 | |
| 955 | </div> |
| 956 | |
| 957 | </td></tr> |
| 958 | |
| 959 | |
| 960 | |
| 961 | <tr class="alt-color api apilevel-" > |
| 962 | <td class="jd-typecol"><nobr> |
| 963 | |
| 964 | |
| 965 | |
| 966 | static |
| 967 | |
| 968 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 969 | </td> |
| 970 | <td class="jd-linkcol" width="100%"><nobr> |
| 971 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#openLinkWithText(java.lang.String)">openLinkWithText</a></span>(String linkText)</nobr> |
| 972 | |
| 973 | <div class="jd-descrdiv"> |
| 974 | Same as <code>openLinkWithText(Matcher<String> linkTextMatcher)</code>, but uses |
| 975 | <code>is(linkText)</code> as the linkTextMatcher. |
| 976 | |
| 977 | |
| 978 | |
| 979 | </div> |
| 980 | |
| 981 | </td></tr> |
| 982 | |
| 983 | |
| 984 | |
| 985 | <tr class=" api apilevel-" > |
| 986 | <td class="jd-typecol"><nobr> |
| 987 | |
| 988 | |
| 989 | |
| 990 | static |
| 991 | |
| 992 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 993 | </td> |
| 994 | <td class="jd-linkcol" width="100%"><nobr> |
| 995 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#openLinkWithUri(java.lang.String)">openLinkWithUri</a></span>(String uri)</nobr> |
| 996 | |
| 997 | <div class="jd-descrdiv"> |
| 998 | Same as <code>openLinkWithUri(Matcher<Uri> uriMatcher)</code>, but uses <code>is(uri)</code> as the |
| 999 | uriMatcher. |
| 1000 | |
| 1001 | |
| 1002 | |
| 1003 | </div> |
| 1004 | |
| 1005 | </td></tr> |
| 1006 | |
| 1007 | |
| 1008 | |
| 1009 | <tr class="alt-color api apilevel-" > |
| 1010 | <td class="jd-typecol"><nobr> |
| 1011 | |
| 1012 | |
| 1013 | |
| 1014 | static |
| 1015 | |
| 1016 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1017 | </td> |
| 1018 | <td class="jd-linkcol" width="100%"><nobr> |
| 1019 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#openLinkWithUri(org.hamcrest.Matcher<android.net.Uri>)">openLinkWithUri</a></span>(Matcher<Uri> uriMatcher)</nobr> |
| 1020 | |
| 1021 | <div class="jd-descrdiv"> |
| 1022 | Same as <code>openLink(Matcher<String> linkTextMatcher, Matcher<Uri> uriMatcher)</code>, but uses |
| 1023 | <code>any(String.class)</code> as the linkTextMatcher. |
| 1024 | |
| 1025 | |
| 1026 | |
| 1027 | </div> |
| 1028 | |
| 1029 | </td></tr> |
| 1030 | |
| 1031 | |
| 1032 | |
| 1033 | <tr class=" api apilevel-" > |
| 1034 | <td class="jd-typecol"><nobr> |
| 1035 | |
| 1036 | |
| 1037 | |
| 1038 | static |
| 1039 | |
| 1040 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1041 | </td> |
| 1042 | <td class="jd-linkcol" width="100%"><nobr> |
| 1043 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#pressBack()">pressBack</a></span>()</nobr> |
| 1044 | |
| 1045 | <div class="jd-descrdiv"> |
| 1046 | Returns an action that clicks the back button. |
| 1047 | |
| 1048 | |
| 1049 | |
| 1050 | </div> |
| 1051 | |
| 1052 | </td></tr> |
| 1053 | |
| 1054 | |
| 1055 | |
| 1056 | <tr class="alt-color api apilevel-" > |
| 1057 | <td class="jd-typecol"><nobr> |
| 1058 | |
| 1059 | |
| 1060 | |
| 1061 | static |
| 1062 | |
| 1063 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1064 | </td> |
| 1065 | <td class="jd-linkcol" width="100%"><nobr> |
| 1066 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#pressImeActionButton()">pressImeActionButton</a></span>()</nobr> |
| 1067 | |
| 1068 | <div class="jd-descrdiv"> |
| 1069 | Returns an action that presses the current action button (next, done, search, etc) on the IME |
| 1070 | (Input Method Editor). |
| 1071 | |
| 1072 | |
| 1073 | |
| 1074 | </div> |
| 1075 | |
| 1076 | </td></tr> |
| 1077 | |
| 1078 | |
| 1079 | |
| 1080 | <tr class=" api apilevel-" > |
| 1081 | <td class="jd-typecol"><nobr> |
| 1082 | |
| 1083 | |
| 1084 | |
| 1085 | static |
| 1086 | |
| 1087 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1088 | </td> |
| 1089 | <td class="jd-linkcol" width="100%"><nobr> |
| 1090 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#pressKey(android.support.test.espresso.action.EspressoKey)">pressKey</a></span>(<a href="../../../../../../reference/android/support/test/espresso/action/EspressoKey.html">EspressoKey</a> key)</nobr> |
| 1091 | |
| 1092 | <div class="jd-descrdiv"> |
| 1093 | Returns an action that presses the specified key with the specified modifiers. |
| 1094 | |
| 1095 | |
| 1096 | |
| 1097 | </div> |
| 1098 | |
| 1099 | </td></tr> |
| 1100 | |
| 1101 | |
| 1102 | |
| 1103 | <tr class="alt-color api apilevel-" > |
| 1104 | <td class="jd-typecol"><nobr> |
| 1105 | |
| 1106 | |
| 1107 | |
| 1108 | static |
| 1109 | |
| 1110 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1111 | </td> |
| 1112 | <td class="jd-linkcol" width="100%"><nobr> |
| 1113 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#pressKey(int)">pressKey</a></span>(int keyCode)</nobr> |
| 1114 | |
| 1115 | <div class="jd-descrdiv"> |
| 1116 | Returns an action that presses the key specified by the keyCode (eg. |
| 1117 | |
| 1118 | |
| 1119 | |
| 1120 | </div> |
| 1121 | |
| 1122 | </td></tr> |
| 1123 | |
| 1124 | |
| 1125 | |
| 1126 | <tr class=" api apilevel-" > |
| 1127 | <td class="jd-typecol"><nobr> |
| 1128 | |
| 1129 | |
| 1130 | |
| 1131 | static |
| 1132 | |
| 1133 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1134 | </td> |
| 1135 | <td class="jd-linkcol" width="100%"><nobr> |
| 1136 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#pressMenuKey()">pressMenuKey</a></span>()</nobr> |
| 1137 | |
| 1138 | <div class="jd-descrdiv"> |
| 1139 | Returns an action that presses the hardware menu key. |
| 1140 | |
| 1141 | |
| 1142 | |
| 1143 | </div> |
| 1144 | |
| 1145 | </td></tr> |
| 1146 | |
| 1147 | |
| 1148 | |
| 1149 | <tr class="alt-color api apilevel-" > |
| 1150 | <td class="jd-typecol"><nobr> |
| 1151 | |
| 1152 | |
| 1153 | |
| 1154 | static |
| 1155 | |
| 1156 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1157 | </td> |
| 1158 | <td class="jd-linkcol" width="100%"><nobr> |
| 1159 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#replaceText(java.lang.String)">replaceText</a></span>(String stringToBeSet)</nobr> |
| 1160 | |
| 1161 | <div class="jd-descrdiv"> |
| 1162 | Returns an action that updates the text attribute of a view. |
| 1163 | |
| 1164 | |
| 1165 | |
| 1166 | </div> |
| 1167 | |
| 1168 | </td></tr> |
| 1169 | |
| 1170 | |
| 1171 | |
| 1172 | <tr class=" api apilevel-" > |
| 1173 | <td class="jd-typecol"><nobr> |
| 1174 | |
| 1175 | |
| 1176 | |
| 1177 | static |
| 1178 | |
| 1179 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1180 | </td> |
| 1181 | <td class="jd-linkcol" width="100%"><nobr> |
| 1182 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#scrollTo()">scrollTo</a></span>()</nobr> |
| 1183 | |
| 1184 | <div class="jd-descrdiv"> |
| 1185 | Returns an action that scrolls to the view. |
| 1186 | |
| 1187 | |
| 1188 | |
| 1189 | </div> |
| 1190 | |
| 1191 | </td></tr> |
| 1192 | |
| 1193 | |
| 1194 | |
| 1195 | <tr class="alt-color api apilevel-" > |
| 1196 | <td class="jd-typecol"><nobr> |
| 1197 | |
| 1198 | |
| 1199 | |
| 1200 | static |
| 1201 | |
| 1202 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1203 | </td> |
| 1204 | <td class="jd-linkcol" width="100%"><nobr> |
| 1205 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#swipeDown()">swipeDown</a></span>()</nobr> |
| 1206 | |
| 1207 | <div class="jd-descrdiv"> |
| 1208 | Returns an action that performs a swipe top-to-bottom across the horizontal center of the view. |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | </div> |
| 1213 | |
| 1214 | </td></tr> |
| 1215 | |
| 1216 | |
| 1217 | |
| 1218 | <tr class=" api apilevel-" > |
| 1219 | <td class="jd-typecol"><nobr> |
| 1220 | |
| 1221 | |
| 1222 | |
| 1223 | static |
| 1224 | |
| 1225 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1226 | </td> |
| 1227 | <td class="jd-linkcol" width="100%"><nobr> |
| 1228 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#swipeLeft()">swipeLeft</a></span>()</nobr> |
| 1229 | |
| 1230 | <div class="jd-descrdiv"> |
| 1231 | Returns an action that performs a swipe right-to-left across the vertical center of the |
| 1232 | view. |
| 1233 | |
| 1234 | |
| 1235 | |
| 1236 | </div> |
| 1237 | |
| 1238 | </td></tr> |
| 1239 | |
| 1240 | |
| 1241 | |
| 1242 | <tr class="alt-color api apilevel-" > |
| 1243 | <td class="jd-typecol"><nobr> |
| 1244 | |
| 1245 | |
| 1246 | |
| 1247 | static |
| 1248 | |
| 1249 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1250 | </td> |
| 1251 | <td class="jd-linkcol" width="100%"><nobr> |
| 1252 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#swipeRight()">swipeRight</a></span>()</nobr> |
| 1253 | |
| 1254 | <div class="jd-descrdiv"> |
| 1255 | Returns an action that performs a swipe left-to-right across the vertical center of the |
| 1256 | view. |
| 1257 | |
| 1258 | |
| 1259 | |
| 1260 | </div> |
| 1261 | |
| 1262 | </td></tr> |
| 1263 | |
| 1264 | |
| 1265 | |
| 1266 | <tr class=" api apilevel-" > |
| 1267 | <td class="jd-typecol"><nobr> |
| 1268 | |
| 1269 | |
| 1270 | |
| 1271 | static |
| 1272 | |
| 1273 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1274 | </td> |
| 1275 | <td class="jd-linkcol" width="100%"><nobr> |
| 1276 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#swipeUp()">swipeUp</a></span>()</nobr> |
| 1277 | |
| 1278 | <div class="jd-descrdiv"> |
| 1279 | Returns an action that performs a swipe bottom-to-top across the horizontal center of the view. |
| 1280 | |
| 1281 | |
| 1282 | |
| 1283 | </div> |
| 1284 | |
| 1285 | </td></tr> |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | <tr class="alt-color api apilevel-" > |
| 1290 | <td class="jd-typecol"><nobr> |
| 1291 | |
| 1292 | |
| 1293 | |
| 1294 | static |
| 1295 | |
| 1296 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1297 | </td> |
| 1298 | <td class="jd-linkcol" width="100%"><nobr> |
| 1299 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#typeText(java.lang.String)">typeText</a></span>(String stringToBeTyped)</nobr> |
| 1300 | |
| 1301 | <div class="jd-descrdiv"> |
| 1302 | Returns an action that selects the view (by clicking on it) and types the provided string into |
| 1303 | the view. |
| 1304 | |
| 1305 | |
| 1306 | |
| 1307 | </div> |
| 1308 | |
| 1309 | </td></tr> |
| 1310 | |
| 1311 | |
| 1312 | |
| 1313 | <tr class=" api apilevel-" > |
| 1314 | <td class="jd-typecol"><nobr> |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | static |
| 1319 | |
| 1320 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a></nobr> |
| 1321 | </td> |
| 1322 | <td class="jd-linkcol" width="100%"><nobr> |
| 1323 | <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/action/ViewActions.html#typeTextIntoFocusedView(java.lang.String)">typeTextIntoFocusedView</a></span>(String stringToBeTyped)</nobr> |
| 1324 | |
| 1325 | <div class="jd-descrdiv"> |
| 1326 | Returns an action that types the provided string into the view. |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | </div> |
| 1331 | |
| 1332 | </td></tr> |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | </table> |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | <!-- ========== METHOD SUMMARY =========== --> |
| 1345 | <table id="inhmethods" class="jd-sumtable"><tr><th> |
| 1346 | <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> |
| 1347 | <div style="clear:left;">Inherited Methods</div></th></tr> |
| 1348 | |
| 1349 | |
| 1350 | <tr class="api apilevel-" > |
| 1351 | <td colspan="12"> |
| 1352 | <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" |
| 1353 | ><img id="inherited-methods-java.lang.Object-trigger" |
| 1354 | src="../../../../../../assets/images/triangle-closed.png" |
| 1355 | class="jd-expando-trigger-img" /></a> |
| 1356 | From class |
| 1357 | |
| 1358 | java.lang.Object |
| 1359 | |
| 1360 | <div id="inherited-methods-java.lang.Object"> |
| 1361 | <div id="inherited-methods-java.lang.Object-list" |
| 1362 | class="jd-inheritedlinks"> |
| 1363 | </div> |
| 1364 | <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> |
| 1365 | <table class="jd-sumtable-expando"> |
| 1366 | |
| 1367 | |
| 1368 | |
| 1369 | |
| 1370 | <tr class="alt-color api apilevel-" > |
| 1371 | <td class="jd-typecol"><nobr> |
| 1372 | |
| 1373 | |
| 1374 | |
| 1375 | |
| 1376 | |
| 1377 | Object</nobr> |
| 1378 | </td> |
| 1379 | <td class="jd-linkcol" width="100%"><nobr> |
| 1380 | <span class="sympad">clone</span>()</nobr> |
| 1381 | |
| 1382 | </td></tr> |
| 1383 | |
| 1384 | |
| 1385 | |
| 1386 | <tr class=" 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">equals</span>(Object arg0)</nobr> |
| 1397 | |
| 1398 | </td></tr> |
| 1399 | |
| 1400 | |
| 1401 | |
| 1402 | <tr class="alt-color api apilevel-" > |
| 1403 | <td class="jd-typecol"><nobr> |
| 1404 | |
| 1405 | |
| 1406 | |
| 1407 | |
| 1408 | |
| 1409 | void</nobr> |
| 1410 | </td> |
| 1411 | <td class="jd-linkcol" width="100%"><nobr> |
| 1412 | <span class="sympad">finalize</span>()</nobr> |
| 1413 | |
| 1414 | </td></tr> |
| 1415 | |
| 1416 | |
| 1417 | |
| 1418 | <tr class=" api apilevel-" > |
| 1419 | <td class="jd-typecol"><nobr> |
| 1420 | |
| 1421 | |
| 1422 | final |
| 1423 | |
| 1424 | |
| 1425 | Class<?></nobr> |
| 1426 | </td> |
| 1427 | <td class="jd-linkcol" width="100%"><nobr> |
| 1428 | <span class="sympad">getClass</span>()</nobr> |
| 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 | int</nobr> |
| 1442 | </td> |
| 1443 | <td class="jd-linkcol" width="100%"><nobr> |
| 1444 | <span class="sympad">hashCode</span>()</nobr> |
| 1445 | |
| 1446 | </td></tr> |
| 1447 | |
| 1448 | |
| 1449 | |
| 1450 | <tr class=" api apilevel-" > |
| 1451 | <td class="jd-typecol"><nobr> |
| 1452 | |
| 1453 | |
| 1454 | final |
| 1455 | |
| 1456 | |
| 1457 | void</nobr> |
| 1458 | </td> |
| 1459 | <td class="jd-linkcol" width="100%"><nobr> |
| 1460 | <span class="sympad">notify</span>()</nobr> |
| 1461 | |
| 1462 | </td></tr> |
| 1463 | |
| 1464 | |
| 1465 | |
| 1466 | <tr class="alt-color api apilevel-" > |
| 1467 | <td class="jd-typecol"><nobr> |
| 1468 | |
| 1469 | |
| 1470 | final |
| 1471 | |
| 1472 | |
| 1473 | void</nobr> |
| 1474 | </td> |
| 1475 | <td class="jd-linkcol" width="100%"><nobr> |
| 1476 | <span class="sympad">notifyAll</span>()</nobr> |
| 1477 | |
| 1478 | </td></tr> |
| 1479 | |
| 1480 | |
| 1481 | |
| 1482 | <tr class=" api apilevel-" > |
| 1483 | <td class="jd-typecol"><nobr> |
| 1484 | |
| 1485 | |
| 1486 | |
| 1487 | |
| 1488 | |
| 1489 | String</nobr> |
| 1490 | </td> |
| 1491 | <td class="jd-linkcol" width="100%"><nobr> |
| 1492 | <span class="sympad">toString</span>()</nobr> |
| 1493 | |
| 1494 | </td></tr> |
| 1495 | |
| 1496 | |
| 1497 | |
| 1498 | <tr class="alt-color api apilevel-" > |
| 1499 | <td class="jd-typecol"><nobr> |
| 1500 | |
| 1501 | |
| 1502 | final |
| 1503 | |
| 1504 | |
| 1505 | void</nobr> |
| 1506 | </td> |
| 1507 | <td class="jd-linkcol" width="100%"><nobr> |
| 1508 | <span class="sympad">wait</span>()</nobr> |
| 1509 | |
| 1510 | </td></tr> |
| 1511 | |
| 1512 | |
| 1513 | |
| 1514 | <tr class=" api apilevel-" > |
| 1515 | <td class="jd-typecol"><nobr> |
| 1516 | |
| 1517 | |
| 1518 | final |
| 1519 | |
| 1520 | |
| 1521 | void</nobr> |
| 1522 | </td> |
| 1523 | <td class="jd-linkcol" width="100%"><nobr> |
| 1524 | <span class="sympad">wait</span>(long arg0, int arg1)</nobr> |
| 1525 | |
| 1526 | </td></tr> |
| 1527 | |
| 1528 | |
| 1529 | |
| 1530 | <tr class="alt-color api apilevel-" > |
| 1531 | <td class="jd-typecol"><nobr> |
| 1532 | |
| 1533 | |
| 1534 | final |
| 1535 | |
| 1536 | |
| 1537 | void</nobr> |
| 1538 | </td> |
| 1539 | <td class="jd-linkcol" width="100%"><nobr> |
| 1540 | <span class="sympad">wait</span>(long arg0)</nobr> |
| 1541 | |
| 1542 | </td></tr> |
| 1543 | |
| 1544 | |
| 1545 | </table> |
| 1546 | </div> |
| 1547 | </div> |
| 1548 | </td></tr> |
| 1549 | |
| 1550 | |
| 1551 | </table> |
| 1552 | |
| 1553 | |
| 1554 | </div><!-- jd-descr (summary) --> |
| 1555 | |
| 1556 | <!-- Details --> |
| 1557 | |
| 1558 | |
| 1559 | |
| 1560 | |
| 1561 | |
| 1562 | |
| 1563 | |
| 1564 | |
| 1565 | <!-- XML Attributes --> |
| 1566 | |
| 1567 | |
| 1568 | <!-- Enum Values --> |
| 1569 | |
| 1570 | |
| 1571 | <!-- Constants --> |
| 1572 | |
| 1573 | |
| 1574 | <!-- Fields --> |
| 1575 | |
| 1576 | |
| 1577 | <!-- Public ctors --> |
| 1578 | |
| 1579 | |
| 1580 | |
| 1581 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 1582 | <!-- Protected ctors --> |
| 1583 | |
| 1584 | |
| 1585 | |
| 1586 | <!-- ========= METHOD DETAIL ======== --> |
| 1587 | <!-- Public methdos --> |
| 1588 | |
| 1589 | <h2>Public Methods</h2> |
| 1590 | |
| 1591 | |
| 1592 | |
| 1593 | <A NAME="clearText()"></A> |
| 1594 | |
| 1595 | <div class="jd-details api apilevel-"> |
| 1596 | <h4 class="jd-details-title"> |
| 1597 | <span class="normal"> |
| 1598 | public |
| 1599 | static |
| 1600 | |
| 1601 | |
| 1602 | |
| 1603 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 1604 | </span> |
| 1605 | <span class="sympad">clearText</span> |
| 1606 | <span class="normal">()</span> |
| 1607 | </h4> |
| 1608 | <div class="api-level"> |
| 1609 | <div></div> |
| 1610 | |
| 1611 | |
| 1612 | |
| 1613 | </div> |
| 1614 | <div class="jd-details-descr"> |
| 1615 | |
| 1616 | |
| 1617 | |
| 1618 | |
| 1619 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that clears text on the view.<br> |
| 1620 | <br> |
| 1621 | View constraints: |
| 1622 | <ul> |
| 1623 | <li>must be displayed on screen |
| 1624 | <ul> |
| 1625 | </p></div> |
| 1626 | |
| 1627 | </div> |
| 1628 | </div> |
| 1629 | |
| 1630 | |
| 1631 | <A NAME="click(android.support.test.espresso.ViewAction)"></A> |
| 1632 | |
| 1633 | <div class="jd-details api apilevel-"> |
| 1634 | <h4 class="jd-details-title"> |
| 1635 | <span class="normal"> |
| 1636 | public |
| 1637 | static |
| 1638 | |
| 1639 | |
| 1640 | |
| 1641 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 1642 | </span> |
| 1643 | <span class="sympad">click</span> |
| 1644 | <span class="normal">(<a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> rollbackAction)</span> |
| 1645 | </h4> |
| 1646 | <div class="api-level"> |
| 1647 | <div></div> |
| 1648 | |
| 1649 | |
| 1650 | |
| 1651 | </div> |
| 1652 | <div class="jd-details-descr"> |
| 1653 | |
| 1654 | |
| 1655 | |
| 1656 | |
| 1657 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that performs a single click on the view. |
| 1658 | |
| 1659 | If the click takes longer than the 'long press' duration (which is possible) the provided |
| 1660 | rollback action is invoked on the view and a click is attempted again. |
| 1661 | |
| 1662 | This is only necessary if the view being clicked on has some different behaviour for long press |
| 1663 | versus a normal tap. |
| 1664 | |
| 1665 | For example - if a long press on a particular view element opens a popup menu - |
| 1666 | ViewActions.pressBack() may be an acceptable rollback action. |
| 1667 | |
| 1668 | <br> |
| 1669 | View constraints: |
| 1670 | <ul> |
| 1671 | <li>must be displayed on screen</li> |
| 1672 | <li>any constraints of the rollbackAction</li> |
| 1673 | <ul> |
| 1674 | </p></div> |
| 1675 | |
| 1676 | </div> |
| 1677 | </div> |
| 1678 | |
| 1679 | |
| 1680 | <A NAME="click()"></A> |
| 1681 | |
| 1682 | <div class="jd-details api apilevel-"> |
| 1683 | <h4 class="jd-details-title"> |
| 1684 | <span class="normal"> |
| 1685 | public |
| 1686 | static |
| 1687 | |
| 1688 | |
| 1689 | |
| 1690 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 1691 | </span> |
| 1692 | <span class="sympad">click</span> |
| 1693 | <span class="normal">()</span> |
| 1694 | </h4> |
| 1695 | <div class="api-level"> |
| 1696 | <div></div> |
| 1697 | |
| 1698 | |
| 1699 | |
| 1700 | </div> |
| 1701 | <div class="jd-details-descr"> |
| 1702 | |
| 1703 | |
| 1704 | |
| 1705 | |
| 1706 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that clicks the view.<br> |
| 1707 | <br> |
| 1708 | View constraints: |
| 1709 | <ul> |
| 1710 | <li>must be displayed on screen |
| 1711 | <ul> |
| 1712 | </p></div> |
| 1713 | |
| 1714 | </div> |
| 1715 | </div> |
| 1716 | |
| 1717 | |
| 1718 | <A NAME="closeSoftKeyboard()"></A> |
| 1719 | |
| 1720 | <div class="jd-details api apilevel-"> |
| 1721 | <h4 class="jd-details-title"> |
| 1722 | <span class="normal"> |
| 1723 | public |
| 1724 | static |
| 1725 | |
| 1726 | |
| 1727 | |
| 1728 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 1729 | </span> |
| 1730 | <span class="sympad">closeSoftKeyboard</span> |
| 1731 | <span class="normal">()</span> |
| 1732 | </h4> |
| 1733 | <div class="api-level"> |
| 1734 | <div></div> |
| 1735 | |
| 1736 | |
| 1737 | |
| 1738 | </div> |
| 1739 | <div class="jd-details-descr"> |
| 1740 | |
| 1741 | |
| 1742 | |
| 1743 | |
| 1744 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that closes soft keyboard. If the keyboard is already closed, it is a no-op. |
| 1745 | </p></div> |
| 1746 | |
| 1747 | </div> |
| 1748 | </div> |
| 1749 | |
| 1750 | |
| 1751 | <A NAME="doubleClick()"></A> |
| 1752 | |
| 1753 | <div class="jd-details api apilevel-"> |
| 1754 | <h4 class="jd-details-title"> |
| 1755 | <span class="normal"> |
| 1756 | public |
| 1757 | static |
| 1758 | |
| 1759 | |
| 1760 | |
| 1761 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 1762 | </span> |
| 1763 | <span class="sympad">doubleClick</span> |
| 1764 | <span class="normal">()</span> |
| 1765 | </h4> |
| 1766 | <div class="api-level"> |
| 1767 | <div></div> |
| 1768 | |
| 1769 | |
| 1770 | |
| 1771 | </div> |
| 1772 | <div class="jd-details-descr"> |
| 1773 | |
| 1774 | |
| 1775 | |
| 1776 | |
| 1777 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that double clicks the view.<br> |
| 1778 | <br> |
| 1779 | View preconditions: |
| 1780 | <ul> |
| 1781 | <li>must be displayed on screen |
| 1782 | <ul> |
| 1783 | </p></div> |
| 1784 | |
| 1785 | </div> |
| 1786 | </div> |
| 1787 | |
| 1788 | |
| 1789 | <A NAME="longClick()"></A> |
| 1790 | |
| 1791 | <div class="jd-details api apilevel-"> |
| 1792 | <h4 class="jd-details-title"> |
| 1793 | <span class="normal"> |
| 1794 | public |
| 1795 | static |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 1800 | </span> |
| 1801 | <span class="sympad">longClick</span> |
| 1802 | <span class="normal">()</span> |
| 1803 | </h4> |
| 1804 | <div class="api-level"> |
| 1805 | <div></div> |
| 1806 | |
| 1807 | |
| 1808 | |
| 1809 | </div> |
| 1810 | <div class="jd-details-descr"> |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | |
| 1815 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that long clicks the view.<br> |
| 1816 | |
| 1817 | <br> |
| 1818 | View preconditions: |
| 1819 | <ul> |
| 1820 | <li>must be displayed on screen |
| 1821 | <ul> |
| 1822 | </p></div> |
| 1823 | |
| 1824 | </div> |
| 1825 | </div> |
| 1826 | |
| 1827 | |
| 1828 | <A NAME="openLink(org.hamcrest.Matcher<java.lang.String>, org.hamcrest.Matcher<android.net.Uri>)"></A> |
| 1829 | |
| 1830 | <div class="jd-details api apilevel-"> |
| 1831 | <h4 class="jd-details-title"> |
| 1832 | <span class="normal"> |
| 1833 | public |
| 1834 | static |
| 1835 | |
| 1836 | |
| 1837 | |
| 1838 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 1839 | </span> |
| 1840 | <span class="sympad">openLink</span> |
| 1841 | <span class="normal">(Matcher<String> linkTextMatcher, Matcher<Uri> uriMatcher)</span> |
| 1842 | </h4> |
| 1843 | <div class="api-level"> |
| 1844 | <div></div> |
| 1845 | |
| 1846 | |
| 1847 | |
| 1848 | </div> |
| 1849 | <div class="jd-details-descr"> |
| 1850 | |
| 1851 | |
| 1852 | |
| 1853 | |
| 1854 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that opens a link matching the given link text and uri matchers. The action |
| 1855 | is performed by invoking the link's onClick method (as opposed to actually issuing a click on |
| 1856 | the screen). |
| 1857 | <br> |
| 1858 | <br> |
| 1859 | View preconditions: |
| 1860 | <ul> |
| 1861 | <li>must be displayed on screen |
| 1862 | <li>must be assignable from TextView |
| 1863 | <li>must have links |
| 1864 | <ul> |
| 1865 | </p></div> |
| 1866 | |
| 1867 | </div> |
| 1868 | </div> |
| 1869 | |
| 1870 | |
| 1871 | <A NAME="openLinkWithText(org.hamcrest.Matcher<java.lang.String>)"></A> |
| 1872 | |
| 1873 | <div class="jd-details api apilevel-"> |
| 1874 | <h4 class="jd-details-title"> |
| 1875 | <span class="normal"> |
| 1876 | public |
| 1877 | static |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 1882 | </span> |
| 1883 | <span class="sympad">openLinkWithText</span> |
| 1884 | <span class="normal">(Matcher<String> linkTextMatcher)</span> |
| 1885 | </h4> |
| 1886 | <div class="api-level"> |
| 1887 | <div></div> |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | </div> |
| 1892 | <div class="jd-details-descr"> |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | <div class="jd-tagdata jd-tagdescr"><p>Same as <code>openLink(Matcher<String> linkTextMatcher, Matcher<Uri> uriMatcher)</code>, but uses |
| 1898 | <code>any(Uri.class)</code> as the uriMatcher. |
| 1899 | </p></div> |
| 1900 | |
| 1901 | </div> |
| 1902 | </div> |
| 1903 | |
| 1904 | |
| 1905 | <A NAME="openLinkWithText(java.lang.String)"></A> |
| 1906 | |
| 1907 | <div class="jd-details api apilevel-"> |
| 1908 | <h4 class="jd-details-title"> |
| 1909 | <span class="normal"> |
| 1910 | public |
| 1911 | static |
| 1912 | |
| 1913 | |
| 1914 | |
| 1915 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 1916 | </span> |
| 1917 | <span class="sympad">openLinkWithText</span> |
| 1918 | <span class="normal">(String linkText)</span> |
| 1919 | </h4> |
| 1920 | <div class="api-level"> |
| 1921 | <div></div> |
| 1922 | |
| 1923 | |
| 1924 | |
| 1925 | </div> |
| 1926 | <div class="jd-details-descr"> |
| 1927 | |
| 1928 | |
| 1929 | |
| 1930 | |
| 1931 | <div class="jd-tagdata jd-tagdescr"><p>Same as <code>openLinkWithText(Matcher<String> linkTextMatcher)</code>, but uses |
| 1932 | <code>is(linkText)</code> as the linkTextMatcher. |
| 1933 | </p></div> |
| 1934 | |
| 1935 | </div> |
| 1936 | </div> |
| 1937 | |
| 1938 | |
| 1939 | <A NAME="openLinkWithUri(java.lang.String)"></A> |
| 1940 | |
| 1941 | <div class="jd-details api apilevel-"> |
| 1942 | <h4 class="jd-details-title"> |
| 1943 | <span class="normal"> |
| 1944 | public |
| 1945 | static |
| 1946 | |
| 1947 | |
| 1948 | |
| 1949 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 1950 | </span> |
| 1951 | <span class="sympad">openLinkWithUri</span> |
| 1952 | <span class="normal">(String uri)</span> |
| 1953 | </h4> |
| 1954 | <div class="api-level"> |
| 1955 | <div></div> |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | </div> |
| 1960 | <div class="jd-details-descr"> |
| 1961 | |
| 1962 | |
| 1963 | |
| 1964 | |
| 1965 | <div class="jd-tagdata jd-tagdescr"><p>Same as <code>openLinkWithUri(Matcher<Uri> uriMatcher)</code>, but uses <code>is(uri)</code> as the |
| 1966 | uriMatcher. |
| 1967 | </p></div> |
| 1968 | |
| 1969 | </div> |
| 1970 | </div> |
| 1971 | |
| 1972 | |
| 1973 | <A NAME="openLinkWithUri(org.hamcrest.Matcher<android.net.Uri>)"></A> |
| 1974 | |
| 1975 | <div class="jd-details api apilevel-"> |
| 1976 | <h4 class="jd-details-title"> |
| 1977 | <span class="normal"> |
| 1978 | public |
| 1979 | static |
| 1980 | |
| 1981 | |
| 1982 | |
| 1983 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 1984 | </span> |
| 1985 | <span class="sympad">openLinkWithUri</span> |
| 1986 | <span class="normal">(Matcher<Uri> uriMatcher)</span> |
| 1987 | </h4> |
| 1988 | <div class="api-level"> |
| 1989 | <div></div> |
| 1990 | |
| 1991 | |
| 1992 | |
| 1993 | </div> |
| 1994 | <div class="jd-details-descr"> |
| 1995 | |
| 1996 | |
| 1997 | |
| 1998 | |
| 1999 | <div class="jd-tagdata jd-tagdescr"><p>Same as <code>openLink(Matcher<String> linkTextMatcher, Matcher<Uri> uriMatcher)</code>, but uses |
| 2000 | <code>any(String.class)</code> as the linkTextMatcher. |
| 2001 | </p></div> |
| 2002 | |
| 2003 | </div> |
| 2004 | </div> |
| 2005 | |
| 2006 | |
| 2007 | <A NAME="pressBack()"></A> |
| 2008 | |
| 2009 | <div class="jd-details api apilevel-"> |
| 2010 | <h4 class="jd-details-title"> |
| 2011 | <span class="normal"> |
| 2012 | public |
| 2013 | static |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2018 | </span> |
| 2019 | <span class="sympad">pressBack</span> |
| 2020 | <span class="normal">()</span> |
| 2021 | </h4> |
| 2022 | <div class="api-level"> |
| 2023 | <div></div> |
| 2024 | |
| 2025 | |
| 2026 | |
| 2027 | </div> |
| 2028 | <div class="jd-details-descr"> |
| 2029 | |
| 2030 | |
| 2031 | |
| 2032 | |
| 2033 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that clicks the back button. |
| 2034 | </p></div> |
| 2035 | |
| 2036 | </div> |
| 2037 | </div> |
| 2038 | |
| 2039 | |
| 2040 | <A NAME="pressImeActionButton()"></A> |
| 2041 | |
| 2042 | <div class="jd-details api apilevel-"> |
| 2043 | <h4 class="jd-details-title"> |
| 2044 | <span class="normal"> |
| 2045 | public |
| 2046 | static |
| 2047 | |
| 2048 | |
| 2049 | |
| 2050 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2051 | </span> |
| 2052 | <span class="sympad">pressImeActionButton</span> |
| 2053 | <span class="normal">()</span> |
| 2054 | </h4> |
| 2055 | <div class="api-level"> |
| 2056 | <div></div> |
| 2057 | |
| 2058 | |
| 2059 | |
| 2060 | </div> |
| 2061 | <div class="jd-details-descr"> |
| 2062 | |
| 2063 | |
| 2064 | |
| 2065 | |
| 2066 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that presses the current action button (next, done, search, etc) on the IME |
| 2067 | (Input Method Editor). The selected view will have its onEditorAction method called. |
| 2068 | </p></div> |
| 2069 | |
| 2070 | </div> |
| 2071 | </div> |
| 2072 | |
| 2073 | |
| 2074 | <A NAME="pressKey(android.support.test.espresso.action.EspressoKey)"></A> |
| 2075 | |
| 2076 | <div class="jd-details api apilevel-"> |
| 2077 | <h4 class="jd-details-title"> |
| 2078 | <span class="normal"> |
| 2079 | public |
| 2080 | static |
| 2081 | |
| 2082 | |
| 2083 | |
| 2084 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2085 | </span> |
| 2086 | <span class="sympad">pressKey</span> |
| 2087 | <span class="normal">(<a href="../../../../../../reference/android/support/test/espresso/action/EspressoKey.html">EspressoKey</a> key)</span> |
| 2088 | </h4> |
| 2089 | <div class="api-level"> |
| 2090 | <div></div> |
| 2091 | |
| 2092 | |
| 2093 | |
| 2094 | </div> |
| 2095 | <div class="jd-details-descr"> |
| 2096 | |
| 2097 | |
| 2098 | |
| 2099 | |
| 2100 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that presses the specified key with the specified modifiers. |
| 2101 | </p></div> |
| 2102 | |
| 2103 | </div> |
| 2104 | </div> |
| 2105 | |
| 2106 | |
| 2107 | <A NAME="pressKey(int)"></A> |
| 2108 | |
| 2109 | <div class="jd-details api apilevel-"> |
| 2110 | <h4 class="jd-details-title"> |
| 2111 | <span class="normal"> |
| 2112 | public |
| 2113 | static |
| 2114 | |
| 2115 | |
| 2116 | |
| 2117 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2118 | </span> |
| 2119 | <span class="sympad">pressKey</span> |
| 2120 | <span class="normal">(int keyCode)</span> |
| 2121 | </h4> |
| 2122 | <div class="api-level"> |
| 2123 | <div></div> |
| 2124 | |
| 2125 | |
| 2126 | |
| 2127 | </div> |
| 2128 | <div class="jd-details-descr"> |
| 2129 | |
| 2130 | |
| 2131 | |
| 2132 | |
| 2133 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that presses the key specified by the keyCode (eg. Keyevent.KEYCODE_BACK). |
| 2134 | </p></div> |
| 2135 | |
| 2136 | </div> |
| 2137 | </div> |
| 2138 | |
| 2139 | |
| 2140 | <A NAME="pressMenuKey()"></A> |
| 2141 | |
| 2142 | <div class="jd-details api apilevel-"> |
| 2143 | <h4 class="jd-details-title"> |
| 2144 | <span class="normal"> |
| 2145 | public |
| 2146 | static |
| 2147 | |
| 2148 | |
| 2149 | |
| 2150 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2151 | </span> |
| 2152 | <span class="sympad">pressMenuKey</span> |
| 2153 | <span class="normal">()</span> |
| 2154 | </h4> |
| 2155 | <div class="api-level"> |
| 2156 | <div></div> |
| 2157 | |
| 2158 | |
| 2159 | |
| 2160 | </div> |
| 2161 | <div class="jd-details-descr"> |
| 2162 | |
| 2163 | |
| 2164 | |
| 2165 | |
| 2166 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that presses the hardware menu key. |
| 2167 | </p></div> |
| 2168 | |
| 2169 | </div> |
| 2170 | </div> |
| 2171 | |
| 2172 | |
| 2173 | <A NAME="replaceText(java.lang.String)"></A> |
| 2174 | |
| 2175 | <div class="jd-details api apilevel-"> |
| 2176 | <h4 class="jd-details-title"> |
| 2177 | <span class="normal"> |
| 2178 | public |
| 2179 | static |
| 2180 | |
| 2181 | |
| 2182 | |
| 2183 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2184 | </span> |
| 2185 | <span class="sympad">replaceText</span> |
| 2186 | <span class="normal">(String stringToBeSet)</span> |
| 2187 | </h4> |
| 2188 | <div class="api-level"> |
| 2189 | <div></div> |
| 2190 | |
| 2191 | |
| 2192 | |
| 2193 | </div> |
| 2194 | <div class="jd-details-descr"> |
| 2195 | |
| 2196 | |
| 2197 | |
| 2198 | |
| 2199 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that updates the text attribute of a view. |
| 2200 | <br> |
| 2201 | <br> |
| 2202 | View preconditions: |
| 2203 | <ul> |
| 2204 | <li>must be displayed on screen |
| 2205 | <li>must be assignable from EditText |
| 2206 | <ul> |
| 2207 | </p></div> |
| 2208 | |
| 2209 | </div> |
| 2210 | </div> |
| 2211 | |
| 2212 | |
| 2213 | <A NAME="scrollTo()"></A> |
| 2214 | |
| 2215 | <div class="jd-details api apilevel-"> |
| 2216 | <h4 class="jd-details-title"> |
| 2217 | <span class="normal"> |
| 2218 | public |
| 2219 | static |
| 2220 | |
| 2221 | |
| 2222 | |
| 2223 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2224 | </span> |
| 2225 | <span class="sympad">scrollTo</span> |
| 2226 | <span class="normal">()</span> |
| 2227 | </h4> |
| 2228 | <div class="api-level"> |
| 2229 | <div></div> |
| 2230 | |
| 2231 | |
| 2232 | |
| 2233 | </div> |
| 2234 | <div class="jd-details-descr"> |
| 2235 | |
| 2236 | |
| 2237 | |
| 2238 | |
| 2239 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that scrolls to the view.<br> |
| 2240 | <br> |
| 2241 | View preconditions: |
| 2242 | <ul> |
| 2243 | <li>must be a descendant of ScrollView |
| 2244 | <li>must have visibility set to View.VISIBLE |
| 2245 | <ul> |
| 2246 | </p></div> |
| 2247 | |
| 2248 | </div> |
| 2249 | </div> |
| 2250 | |
| 2251 | |
| 2252 | <A NAME="swipeDown()"></A> |
| 2253 | |
| 2254 | <div class="jd-details api apilevel-"> |
| 2255 | <h4 class="jd-details-title"> |
| 2256 | <span class="normal"> |
| 2257 | public |
| 2258 | static |
| 2259 | |
| 2260 | |
| 2261 | |
| 2262 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2263 | </span> |
| 2264 | <span class="sympad">swipeDown</span> |
| 2265 | <span class="normal">()</span> |
| 2266 | </h4> |
| 2267 | <div class="api-level"> |
| 2268 | <div></div> |
| 2269 | |
| 2270 | |
| 2271 | |
| 2272 | </div> |
| 2273 | <div class="jd-details-descr"> |
| 2274 | |
| 2275 | |
| 2276 | |
| 2277 | |
| 2278 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that performs a swipe top-to-bottom across the horizontal center of the view. |
| 2279 | The swipe doesn't start at the very edge of the view, but has a bit of offset.<br> |
| 2280 | <br> |
| 2281 | View constraints: |
| 2282 | <ul> |
| 2283 | <li>must be displayed on screen |
| 2284 | <ul> |
| 2285 | </p></div> |
| 2286 | |
| 2287 | </div> |
| 2288 | </div> |
| 2289 | |
| 2290 | |
| 2291 | <A NAME="swipeLeft()"></A> |
| 2292 | |
| 2293 | <div class="jd-details api apilevel-"> |
| 2294 | <h4 class="jd-details-title"> |
| 2295 | <span class="normal"> |
| 2296 | public |
| 2297 | static |
| 2298 | |
| 2299 | |
| 2300 | |
| 2301 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2302 | </span> |
| 2303 | <span class="sympad">swipeLeft</span> |
| 2304 | <span class="normal">()</span> |
| 2305 | </h4> |
| 2306 | <div class="api-level"> |
| 2307 | <div></div> |
| 2308 | |
| 2309 | |
| 2310 | |
| 2311 | </div> |
| 2312 | <div class="jd-details-descr"> |
| 2313 | |
| 2314 | |
| 2315 | |
| 2316 | |
| 2317 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that performs a swipe right-to-left across the vertical center of the |
| 2318 | view. The swipe doesn't start at the very edge of the view, but is a bit offset.<br> |
| 2319 | <br> |
| 2320 | View constraints: |
| 2321 | <ul> |
| 2322 | <li>must be displayed on screen |
| 2323 | <ul> |
| 2324 | </p></div> |
| 2325 | |
| 2326 | </div> |
| 2327 | </div> |
| 2328 | |
| 2329 | |
| 2330 | <A NAME="swipeRight()"></A> |
| 2331 | |
| 2332 | <div class="jd-details api apilevel-"> |
| 2333 | <h4 class="jd-details-title"> |
| 2334 | <span class="normal"> |
| 2335 | public |
| 2336 | static |
| 2337 | |
| 2338 | |
| 2339 | |
| 2340 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2341 | </span> |
| 2342 | <span class="sympad">swipeRight</span> |
| 2343 | <span class="normal">()</span> |
| 2344 | </h4> |
| 2345 | <div class="api-level"> |
| 2346 | <div></div> |
| 2347 | |
| 2348 | |
| 2349 | |
| 2350 | </div> |
| 2351 | <div class="jd-details-descr"> |
| 2352 | |
| 2353 | |
| 2354 | |
| 2355 | |
| 2356 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that performs a swipe left-to-right across the vertical center of the |
| 2357 | view. The swipe doesn't start at the very edge of the view, but is a bit offset.<br> |
| 2358 | <br> |
| 2359 | View constraints: |
| 2360 | <ul> |
| 2361 | <li>must be displayed on screen |
| 2362 | <ul> |
| 2363 | </p></div> |
| 2364 | |
| 2365 | </div> |
| 2366 | </div> |
| 2367 | |
| 2368 | |
| 2369 | <A NAME="swipeUp()"></A> |
| 2370 | |
| 2371 | <div class="jd-details api apilevel-"> |
| 2372 | <h4 class="jd-details-title"> |
| 2373 | <span class="normal"> |
| 2374 | public |
| 2375 | static |
| 2376 | |
| 2377 | |
| 2378 | |
| 2379 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2380 | </span> |
| 2381 | <span class="sympad">swipeUp</span> |
| 2382 | <span class="normal">()</span> |
| 2383 | </h4> |
| 2384 | <div class="api-level"> |
| 2385 | <div></div> |
| 2386 | |
| 2387 | |
| 2388 | |
| 2389 | </div> |
| 2390 | <div class="jd-details-descr"> |
| 2391 | |
| 2392 | |
| 2393 | |
| 2394 | |
| 2395 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that performs a swipe bottom-to-top across the horizontal center of the view. |
| 2396 | The swipe doesn't start at the very edge of the view, but has a bit of offset.<br> |
| 2397 | <br> |
| 2398 | View constraints: |
| 2399 | <ul> |
| 2400 | <li>must be displayed on screen |
| 2401 | <ul> |
| 2402 | </p></div> |
| 2403 | |
| 2404 | </div> |
| 2405 | </div> |
| 2406 | |
| 2407 | |
| 2408 | <A NAME="typeText(java.lang.String)"></A> |
| 2409 | |
| 2410 | <div class="jd-details api apilevel-"> |
| 2411 | <h4 class="jd-details-title"> |
| 2412 | <span class="normal"> |
| 2413 | public |
| 2414 | static |
| 2415 | |
| 2416 | |
| 2417 | |
| 2418 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2419 | </span> |
| 2420 | <span class="sympad">typeText</span> |
| 2421 | <span class="normal">(String stringToBeTyped)</span> |
| 2422 | </h4> |
| 2423 | <div class="api-level"> |
| 2424 | <div></div> |
| 2425 | |
| 2426 | |
| 2427 | |
| 2428 | </div> |
| 2429 | <div class="jd-details-descr"> |
| 2430 | |
| 2431 | |
| 2432 | |
| 2433 | |
| 2434 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that selects the view (by clicking on it) and types the provided string into |
| 2435 | the view. Appending a \n to the end of the string translates to a ENTER key event. Note: this |
| 2436 | method performs a tap on the view before typing to force the view into focus, if the view |
| 2437 | already contains text this tap may place the cursor at an arbitrary position within the text. |
| 2438 | <br> |
| 2439 | <br> |
| 2440 | View preconditions: |
| 2441 | <ul> |
| 2442 | <li>must be displayed on screen |
| 2443 | <li>must support input methods |
| 2444 | <ul> |
| 2445 | </p></div> |
| 2446 | |
| 2447 | </div> |
| 2448 | </div> |
| 2449 | |
| 2450 | |
| 2451 | <A NAME="typeTextIntoFocusedView(java.lang.String)"></A> |
| 2452 | |
| 2453 | <div class="jd-details api apilevel-"> |
| 2454 | <h4 class="jd-details-title"> |
| 2455 | <span class="normal"> |
| 2456 | public |
| 2457 | static |
| 2458 | |
| 2459 | |
| 2460 | |
| 2461 | <a href="../../../../../../reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| 2462 | </span> |
| 2463 | <span class="sympad">typeTextIntoFocusedView</span> |
| 2464 | <span class="normal">(String stringToBeTyped)</span> |
| 2465 | </h4> |
| 2466 | <div class="api-level"> |
| 2467 | <div></div> |
| 2468 | |
| 2469 | |
| 2470 | |
| 2471 | </div> |
| 2472 | <div class="jd-details-descr"> |
| 2473 | |
| 2474 | |
| 2475 | |
| 2476 | |
| 2477 | <div class="jd-tagdata jd-tagdescr"><p>Returns an action that types the provided string into the view. |
| 2478 | Appending a \n to the end of the string translates to a ENTER key event. Note: this method |
| 2479 | does not change cursor position in the focused view - text is inserted at the location where |
| 2480 | the cursor is currently pointed.<br> |
| 2481 | <br> |
| 2482 | View preconditions: |
| 2483 | <ul> |
| 2484 | <li>must be displayed on screen |
| 2485 | <li>must support input methods |
| 2486 | <li>must be already focused |
| 2487 | <ul> |
| 2488 | </p></div> |
| 2489 | |
| 2490 | </div> |
| 2491 | </div> |
| 2492 | |
| 2493 | |
| 2494 | |
| 2495 | |
| 2496 | |
| 2497 | <!-- ========= METHOD DETAIL ======== --> |
| 2498 | |
| 2499 | |
| 2500 | |
| 2501 | <!-- ========= END OF CLASS DATA ========= --> |
| 2502 | <A NAME="navbar_top"></A> |
| 2503 | |
| 2504 | <div id="footer" class="wrap" > |
| 2505 | |
| 2506 | |
| 2507 | <div id="copyright"> |
| 2508 | |
| 2509 | Except as noted, this content is licensed under <a |
| 2510 | href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. |
| 2511 | For details and restrictions, see the <a href="../../../../../../license.html"> |
| 2512 | Content License</a>. |
| 2513 | </div> |
| 2514 | <div id="build_info"> |
| 2515 | |
| 2516 | Android r — |
| 2517 | <script src="../../../../../../timestamp.js" type="text/javascript"></script> |
| 2518 | <script>document.write(BUILD_TIMESTAMP)</script> |
| 2519 | |
| 2520 | </div> |
| 2521 | |
| 2522 | |
| 2523 | <div id="footerlinks"> |
| 2524 | |
| 2525 | <p> |
| 2526 | <a href="../../../../../../about/index.html">About Android</a> | |
| 2527 | <a href="../../../../../../legal.html">Legal</a> | |
| 2528 | <a href="../../../../../../support.html">Support</a> |
| 2529 | </p> |
| 2530 | </div> |
| 2531 | |
| 2532 | </div> <!-- end footer --> |
| 2533 | </div> <!-- jd-content --> |
| 2534 | |
| 2535 | </div><!-- end doc-content --> |
| 2536 | |
| 2537 | </div> <!-- end body-content --> |
| 2538 | |
| 2539 | |
| 2540 | |
| 2541 | |
| 2542 | |
| 2543 | |
| 2544 | </body> |
| 2545 | </html> |