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