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>ViewAssertions | 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 ">ViewAssertions</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="selected 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="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
503    <li><h2>Classes</h2>
504      <ul>
505          <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/assertion/LayoutAssertions.html">LayoutAssertions</a></li>
506          <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/assertion/PositionAssertions.html">PositionAssertions</a></li>
507          <li class="selected api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/assertion/ViewAssertions.html">ViewAssertions</a></li>
508      </ul>
509    </li>
510
511
512
513            </ul><br/>
514
515
516          </div><!-- end classes -->
517        </div><!-- end nav-panels -->
518        <div id="nav-tree" style="display:none" class="scroll-pane">
519          <div id="tree-list"></div>
520        </div><!-- end nav-tree -->
521      </div><!-- end swapper -->
522      <div id="nav-swap">
523      <a class="fullscreen">fullscreen</a>
524      <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>
525      </div>
526    </div> <!-- end devdoc-nav -->
527    </div> <!-- end side-nav -->
528    <script type="text/javascript">
529      // init fullscreen based on user pref
530      var fullscreen = readCookie("fullscreen");
531      if (fullscreen != 0) {
532        if (fullscreen == "false") {
533          toggleFullscreen(false);
534        } else {
535          toggleFullscreen(true);
536        }
537      }
538      // init nav version for mobile
539      if (isMobile) {
540        swapNav(); // tree view should be used on mobile
541        $('#nav-swap').hide();
542      } else {
543        chooseDefaultNav();
544        if ($("#nav-tree").is(':visible')) {
545          init_default_navtree("../../../../../../");
546        }
547      }
548      // scroll the selected page into view
549      $(document).ready(function() {
550        scrollIntoView("packages-nav");
551        scrollIntoView("classes-nav");
552        });
553    </script>
554
555
556
557
558
559<div class="col-12"  id="doc-col">
560
561<div id="api-info-block">
562
563
564
565
566
567
568
569
570
571
572
573<div class="sum-details-links">
574
575Summary:
576
577
578
579
580
581
582
583
584
585
586
587  <a href="#pubmethods">Methods</a>
588
589
590
591
592  &#124; <a href="#inhmethods">Inherited Methods</a>
593
594&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
595
596</div><!-- end sum-details-links -->
597<div class="api-level">
598
599
600
601
602</div>
603</div><!-- end api-info-block -->
604
605
606<!-- ======== START OF CLASS DATA ======== -->
607
608<div id="jd-header">
609    public
610
611    final
612
613    class
614<h1 itemprop="name">ViewAssertions</h1>
615
616
617
618
619    extends Object<br/>
620
621
622
623
624
625
626
627
628
629
630
631
632</div><!-- end header -->
633
634<div id="naMessage"></div>
635
636<div id="jd-content" class="api apilevel-">
637<table class="jd-inheritance-table">
638
639
640    <tr>
641
642        <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td>
643    </tr>
644
645
646    <tr>
647
648            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
649
650        <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.assertion.ViewAssertions</td>
651    </tr>
652
653
654</table>
655
656
657
658
659
660
661
662<div class="jd-descr">
663
664
665<h2>Class Overview</h2>
666<p itemprop="articleBody">A collection of common <code><a href="../../../../../../reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code>s.
667</p>
668
669
670
671
672
673</div><!-- jd-descr -->
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690<div class="jd-descr">
691
692
693<h2>Summary</h2>
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721<!-- ========== METHOD SUMMARY =========== -->
722<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
723
724
725
726
727    <tr class="alt-color api apilevel-" >
728        <td class="jd-typecol"><nobr>
729
730
731
732            static
733
734            <a href="../../../../../../reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></nobr>
735        </td>
736        <td class="jd-linkcol" width="100%"><nobr>
737        <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/assertion/ViewAssertions.html#doesNotExist()">doesNotExist</a></span>()</nobr>
738
739        <div class="jd-descrdiv">
740          Returns an assert that ensures the view matcher does not find any matching view in the
741 hierarchy.
742
743
744
745        </div>
746
747  </td></tr>
748
749
750
751    <tr class=" api apilevel-" >
752        <td class="jd-typecol"><nobr>
753
754
755
756            static
757
758            <a href="../../../../../../reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></nobr>
759        </td>
760        <td class="jd-linkcol" width="100%"><nobr>
761        <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/assertion/ViewAssertions.html#matches(org.hamcrest.Matcher<? super android.view.View>)">matches</a></span>(Matcher&lt;?&nbsp;super&nbsp;View&gt; viewMatcher)</nobr>
762
763        <div class="jd-descrdiv">
764          Returns a generic <code><a href="../../../../../../reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that a view exists in the view hierarchy
765 and is matched by the given view matcher.
766
767
768
769        </div>
770
771  </td></tr>
772
773
774
775    <tr class="alt-color api apilevel-" >
776        <td class="jd-typecol"><nobr>
777
778
779
780            static
781
782            <a href="../../../../../../reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></nobr>
783        </td>
784        <td class="jd-linkcol" width="100%"><nobr>
785        <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/assertion/ViewAssertions.html#selectedDescendantsMatch(org.hamcrest.Matcher<android.view.View>, org.hamcrest.Matcher<android.view.View>)">selectedDescendantsMatch</a></span>(Matcher&lt;View&gt; selector, Matcher&lt;View&gt; matcher)</nobr>
786
787        <div class="jd-descrdiv">
788          Returns a generic <code><a href="../../../../../../reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that the descendant views selected by the
789 selector match the specified matcher.
790
791
792
793        </div>
794
795  </td></tr>
796
797
798
799</table>
800
801
802
803
804
805
806
807<!-- ========== METHOD SUMMARY =========== -->
808<table id="inhmethods" class="jd-sumtable"><tr><th>
809  <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
810  <div style="clear:left;">Inherited Methods</div></th></tr>
811
812
813<tr class="api apilevel-" >
814<td colspan="12">
815  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
816          ><img id="inherited-methods-java.lang.Object-trigger"
817          src="../../../../../../assets/images/triangle-closed.png"
818          class="jd-expando-trigger-img" /></a>
819From class
820
821  java.lang.Object
822
823<div id="inherited-methods-java.lang.Object">
824  <div id="inherited-methods-java.lang.Object-list"
825        class="jd-inheritedlinks">
826  </div>
827  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
828    <table class="jd-sumtable-expando">
829
830
831
832
833    <tr class="alt-color api apilevel-" >
834        <td class="jd-typecol"><nobr>
835
836
837
838
839
840            Object</nobr>
841        </td>
842        <td class="jd-linkcol" width="100%"><nobr>
843        <span class="sympad">clone</span>()</nobr>
844
845  </td></tr>
846
847
848
849    <tr class=" api apilevel-" >
850        <td class="jd-typecol"><nobr>
851
852
853
854
855
856            boolean</nobr>
857        </td>
858        <td class="jd-linkcol" width="100%"><nobr>
859        <span class="sympad">equals</span>(Object arg0)</nobr>
860
861  </td></tr>
862
863
864
865    <tr class="alt-color api apilevel-" >
866        <td class="jd-typecol"><nobr>
867
868
869
870
871
872            void</nobr>
873        </td>
874        <td class="jd-linkcol" width="100%"><nobr>
875        <span class="sympad">finalize</span>()</nobr>
876
877  </td></tr>
878
879
880
881    <tr class=" api apilevel-" >
882        <td class="jd-typecol"><nobr>
883
884
885            final
886
887
888            Class&lt;?&gt;</nobr>
889        </td>
890        <td class="jd-linkcol" width="100%"><nobr>
891        <span class="sympad">getClass</span>()</nobr>
892
893  </td></tr>
894
895
896
897    <tr class="alt-color api apilevel-" >
898        <td class="jd-typecol"><nobr>
899
900
901
902
903
904            int</nobr>
905        </td>
906        <td class="jd-linkcol" width="100%"><nobr>
907        <span class="sympad">hashCode</span>()</nobr>
908
909  </td></tr>
910
911
912
913    <tr class=" api apilevel-" >
914        <td class="jd-typecol"><nobr>
915
916
917            final
918
919
920            void</nobr>
921        </td>
922        <td class="jd-linkcol" width="100%"><nobr>
923        <span class="sympad">notify</span>()</nobr>
924
925  </td></tr>
926
927
928
929    <tr class="alt-color api apilevel-" >
930        <td class="jd-typecol"><nobr>
931
932
933            final
934
935
936            void</nobr>
937        </td>
938        <td class="jd-linkcol" width="100%"><nobr>
939        <span class="sympad">notifyAll</span>()</nobr>
940
941  </td></tr>
942
943
944
945    <tr class=" api apilevel-" >
946        <td class="jd-typecol"><nobr>
947
948
949
950
951
952            String</nobr>
953        </td>
954        <td class="jd-linkcol" width="100%"><nobr>
955        <span class="sympad">toString</span>()</nobr>
956
957  </td></tr>
958
959
960
961    <tr class="alt-color api apilevel-" >
962        <td class="jd-typecol"><nobr>
963
964
965            final
966
967
968            void</nobr>
969        </td>
970        <td class="jd-linkcol" width="100%"><nobr>
971        <span class="sympad">wait</span>()</nobr>
972
973  </td></tr>
974
975
976
977    <tr class=" api apilevel-" >
978        <td class="jd-typecol"><nobr>
979
980
981            final
982
983
984            void</nobr>
985        </td>
986        <td class="jd-linkcol" width="100%"><nobr>
987        <span class="sympad">wait</span>(long arg0, int arg1)</nobr>
988
989  </td></tr>
990
991
992
993    <tr class="alt-color api apilevel-" >
994        <td class="jd-typecol"><nobr>
995
996
997            final
998
999
1000            void</nobr>
1001        </td>
1002        <td class="jd-linkcol" width="100%"><nobr>
1003        <span class="sympad">wait</span>(long arg0)</nobr>
1004
1005  </td></tr>
1006
1007
1008</table>
1009  </div>
1010</div>
1011</td></tr>
1012
1013
1014</table>
1015
1016
1017</div><!-- jd-descr (summary) -->
1018
1019<!-- Details -->
1020
1021
1022
1023
1024
1025
1026
1027
1028<!-- XML Attributes -->
1029
1030
1031<!-- Enum Values -->
1032
1033
1034<!-- Constants -->
1035
1036
1037<!-- Fields -->
1038
1039
1040<!-- Public ctors -->
1041
1042
1043
1044<!-- ========= CONSTRUCTOR DETAIL ======== -->
1045<!-- Protected ctors -->
1046
1047
1048
1049<!-- ========= METHOD DETAIL ======== -->
1050<!-- Public methdos -->
1051
1052<h2>Public Methods</h2>
1053
1054
1055
1056<A NAME="doesNotExist()"></A>
1057
1058<div class="jd-details api apilevel-">
1059    <h4 class="jd-details-title">
1060      <span class="normal">
1061        public
1062        static
1063
1064
1065
1066        <a href="../../../../../../reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a>
1067      </span>
1068      <span class="sympad">doesNotExist</span>
1069      <span class="normal">()</span>
1070    </h4>
1071      <div class="api-level">
1072        <div></div>
1073
1074
1075
1076      </div>
1077    <div class="jd-details-descr">
1078
1079
1080
1081
1082  <div class="jd-tagdata jd-tagdescr"><p>Returns an assert that ensures the view matcher does not find any matching view in the
1083 hierarchy.
1084</p></div>
1085
1086    </div>
1087</div>
1088
1089
1090<A NAME="matches(org.hamcrest.Matcher<? super android.view.View>)"></A>
1091
1092<div class="jd-details api apilevel-">
1093    <h4 class="jd-details-title">
1094      <span class="normal">
1095        public
1096        static
1097
1098
1099
1100        <a href="../../../../../../reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a>
1101      </span>
1102      <span class="sympad">matches</span>
1103      <span class="normal">(Matcher&lt;?&nbsp;super&nbsp;View&gt; viewMatcher)</span>
1104    </h4>
1105      <div class="api-level">
1106        <div></div>
1107
1108
1109
1110      </div>
1111    <div class="jd-details-descr">
1112
1113
1114
1115
1116  <div class="jd-tagdata jd-tagdescr"><p>Returns a generic <code><a href="../../../../../../reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that a view exists in the view hierarchy
1117 and is matched by the given view matcher.
1118</p></div>
1119
1120    </div>
1121</div>
1122
1123
1124<A NAME="selectedDescendantsMatch(org.hamcrest.Matcher<android.view.View>, org.hamcrest.Matcher<android.view.View>)"></A>
1125
1126<div class="jd-details api apilevel-">
1127    <h4 class="jd-details-title">
1128      <span class="normal">
1129        public
1130        static
1131
1132
1133
1134        <a href="../../../../../../reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a>
1135      </span>
1136      <span class="sympad">selectedDescendantsMatch</span>
1137      <span class="normal">(Matcher&lt;View&gt; selector, Matcher&lt;View&gt; matcher)</span>
1138    </h4>
1139      <div class="api-level">
1140        <div></div>
1141
1142
1143
1144      </div>
1145    <div class="jd-details-descr">
1146
1147
1148
1149
1150  <div class="jd-tagdata jd-tagdescr"><p>Returns a generic <code><a href="../../../../../../reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that the descendant views selected by the
1151 selector match the specified matcher.
1152
1153  Example: onView(rootView).check(selectedDescendantsMatch(
1154 not(isAssignableFrom(TextView.class)), hasContentDescription()));
1155</p></div>
1156
1157    </div>
1158</div>
1159
1160
1161
1162
1163
1164<!-- ========= METHOD DETAIL ======== -->
1165
1166
1167
1168<!-- ========= END OF CLASS DATA ========= -->
1169<A NAME="navbar_top"></A>
1170</div> <!-- jd-content -->
1171
1172<div class="wrap">
1173  <div class="dac-footer">
1174    <div class="cols dac-footer-main">
1175      <div class="col-1of2">
1176        <a class="dac-footer-getnews" data-modal-toggle="newsletter" href="javascript:;">Get news &amp; tips <span
1177          class="dac-fab dac-primary"><i class="dac-sprite dac-mail"></i></span></a>
1178      </div>
1179      <div class="col-1of2 dac-footer-reachout">
1180        <div class="dac-footer-contact">
1181          <a class="dac-footer-contact-link" href="http://android-developers.blogspot.com/">Blog</a>
1182          <a class="dac-footer-contact-link" href="/support.html">Support</a>
1183        </div>
1184        <div class="dac-footer-social">
1185          <a class="dac-fab dac-footer-social-link" href="https://www.youtube.com/user/androiddevelopers"><i class="dac-sprite dac-youtube"></i></a>
1186          <a class="dac-fab dac-footer-social-link" href="https://plus.google.com/+AndroidDevelopers"><i class="dac-sprite dac-gplus"></i></a>
1187          <a class="dac-fab dac-footer-social-link" href="https://twitter.com/AndroidDev"><i class="dac-sprite dac-twitter"></i></a>
1188        </div>
1189      </div>
1190    </div>
1191
1192    <hr class="dac-footer-separator"/>
1193
1194
1195      <p class="dac-footer-copyright">
1196
1197  Except as noted, this content is licensed under <a
1198  href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
1199  For details and restrictions, see the <a href="../../../../../../license.html">
1200  Content License</a>.
1201      </p>
1202      <p class="dac-footer-build">
1203
1204    Android &nbsp;r &mdash;
1205<script src="../../../../../../timestamp.js" type="text/javascript"></script>
1206<script>document.write(BUILD_TIMESTAMP)</script>
1207
1208      </p>
1209
1210
1211    <p class="dac-footer-links">
1212      <a href="/about/index.html">About Android</a>
1213      <a href="/auto/index.html">Auto</a>
1214      <a href="/tv/index.html">TV</a>
1215      <a href="/wear/index.html">Wear</a>
1216      <a href="/legal.html">Legal</a>
1217
1218      <span id="language" class="locales">
1219        <select name="language" onchange="changeLangPref(this.value, true)">
1220          <option value="en" selected="selected">English</option>
1221          <option value="es">Español</option>
1222          <option value="ja">日本語</option>
1223          <option value="ko">한국어</option>
1224          <option value="ru">Русский</option>
1225          <option value="zh-cn">中文(简体)</option>
1226          <option value="zh-tw">中文(繁體)</option>
1227        </select>
1228      </span>
1229    </p>
1230  </div>
1231</div> <!-- end footer -->
1232
1233<div data-modal="newsletter" data-newsletter data-swap class="dac-modal newsletter">
1234  <div class="dac-modal-container">
1235    <div class="dac-modal-window">
1236      <header class="dac-modal-header">
1237        <button class="dac-modal-header-close" data-modal-toggle><i class="dac-sprite dac-close"></i></button>
1238        <div class="dac-swap" data-swap-container>
1239          <section class="dac-swap-section dac-active dac-down">
1240            <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>
1241            <p class="dac-modal-header-subtitle">&#42; Required Fields</p>
1242          </section>
1243          <section class="dac-swap-section dac-up">
1244            <h2 class="norule dac-modal-header-title">Hooray!</h2>
1245          </section>
1246        </div>
1247      </header>
1248      <div class="dac-swap" data-swap-container>
1249        <section class="dac-swap-section dac-active dac-left">
1250          <form action="https://docs.google.com/forms/d/1QgnkzbEJIDu9lMEea0mxqWrXUJu0oBCLD7ar23V0Yys/formResponse" class="dac-form" method="post" target="dac-newsletter-iframe">
1251            <section class="dac-modal-content">
1252              <fieldset class="dac-form-fieldset">
1253                <div class="cols">
1254                  <div class="col-1of2 newsletter-leftCol">
1255                    <div class="dac-form-input-group">
1256                      <label for="newsletter-full-name" class="dac-form-floatlabel">Full name</label>
1257                      <input type="text" class="dac-form-input" name="entry.1357890476" id="newsletter-full-name" required>
1258                      <span class="dac-form-required">*</span>
1259                    </div>
1260                    <div class="dac-form-input-group">
1261                      <label for="newsletter-email" class="dac-form-floatlabel">Email address</label>
1262                      <input type="email" class="dac-form-input" name="entry.472100832" id="newsletter-email" required>
1263                      <span class="dac-form-required">*</span>
1264                    </div>
1265                  </div>
1266                  <div class="col-1of2 newsletter-rightCol">
1267                    <div class="dac-form-input-group">
1268                      <label for="newsletter-company" class="dac-form-floatlabel">Company / developer name</label>
1269                      <input type="text" class="dac-form-input" name="entry.1664780309" id="newsletter-company">
1270                    </div>
1271                    <div class="dac-form-input-group">
1272                      <label for="newsletter-play-store" class="dac-form-floatlabel">One of your Play Store app URLs</label>
1273                      <input type="url" class="dac-form-input" name="entry.47013838" id="newsletter-play-store" required>
1274                      <span class="dac-form-required">*</span>
1275                    </div>
1276                  </div>
1277                </div>
1278              </fieldset>
1279              <fieldset class="dac-form-fieldset">
1280                <div class="cols">
1281                  <div class="col-1of2 newsletter-leftCol">
1282                    <legend class="dac-form-legend">Which best describes your business:<span class="dac-form-required">*</span>
1283                    </legend>
1284                    <div class="dac-form-radio-group">
1285                      <input type="radio" value="Apps" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-app" required>
1286                      <label for="newsletter-business-type-app" class="dac-form-radio-button"></label>
1287                      <label for="newsletter-business-type-app" class="dac-form-label">Apps</label>
1288                    </div>
1289                    <div class="dac-form-radio-group">
1290                      <input type="radio" value="Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-games" required>
1291                      <label for="newsletter-business-type-games" class="dac-form-radio-button"></label>
1292                      <label for="newsletter-business-type-games" class="dac-form-label">Games</label>
1293                    </div>
1294                    <div class="dac-form-radio-group">
1295                      <input type="radio" value="Apps and Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-appsgames" required>
1296                      <label for="newsletter-business-type-appsgames" class="dac-form-radio-button"></label>
1297                      <label for="newsletter-business-type-appsgames" class="dac-form-label">Apps &amp; Games</label>
1298                    </div>
1299                  </div>
1300                  <div class="col-1of2 newsletter-rightCol newsletter-checkboxes">
1301                    <div class="dac-form-radio-group">
1302                      <div class="dac-media">
1303                        <div class="dac-media-figure">
1304                          <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.">
1305                          <label for="newsletter-add" class="dac-form-checkbox-button"></label>
1306                        </div>
1307                        <div class="dac-media-body">
1308                          <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>
1309                        </div>
1310                      </div>
1311                    </div>
1312                    <div class="dac-form-radio-group">
1313                      <div class="dac-media">
1314                        <div class="dac-media-figure">
1315                          <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/).">
1316                          <label for="newsletter-terms" class="dac-form-checkbox-button"></label>
1317                        </div>
1318                        <div class="dac-media-body">
1319                          <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>
1320                        </div>
1321                      </div>
1322                    </div>
1323                  </div>
1324                </div>
1325              </fieldset>
1326            </section>
1327            <footer class="dac-modal-footer">
1328              <div class="cols">
1329                <div class="col-2of5">
1330                </div>
1331              </div>
1332              <button type="submit" value="Submit" class="dac-fab dac-primary dac-large dac-modal-action"><i class="dac-sprite dac-arrow-right"></i></button>
1333            </footer>
1334          </form>
1335        </section>
1336        <section class="dac-swap-section dac-right">
1337          <div class="dac-modal-content">
1338            <p class="newsletter-success-message">
1339              You have successfully signed up for the latest Android developer news and tips.
1340            </p>
1341          </div>
1342        </section>
1343      </div>
1344    </div>
1345  </div>
1346</div> <!-- end footer -->
1347
1348</div><!-- end doc-content -->
1349
1350</div> <!-- end .cols -->
1351</div> <!-- end body-content -->
1352
1353
1354
1355
1356
1357
1358</body>
1359</html>
1360