1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119<!DOCTYPE html>
120<html devsite>
121<head>
122
123
124    <meta name="top_category" value="develop" />
125
126    <meta name="subcategory" value="reference" />
127
128
129      <meta name="book_path" value="/reference/android/support/test/_book.yaml" />
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145<title>PositionAssertions</title>
146
147
148</head>
149
150<body class="gc-documentation develop reference api apilevel-">
151<div id="doc-api-level" class="" style="display:none"></div>
152
153
154
155
156<div id="naMessage"></div>
157
158<div id="api-info-block">
159<div class="api-level">
160
161
162
163
164</div>
165
166
167
168
169
170
171
172
173
174
175
176<div class="sum-details-links">
177
178Summary:
179
180
181
182
183
184
185
186
187
188
189
190  <a href="#pubmethods">Methods</a>
191
192
193
194
195  &#124; <a href="#inhmethods">Inherited Methods</a>
196
197&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
198
199</div><!-- end sum-details-links -->
200</div><!-- end api-info-block -->
201
202<div class="api apilevel-" id="jd-content">
203
204<!-- ======== START OF CLASS DATA ======== -->
205
206<h1 class="api-title">PositionAssertions</h1>
207<p>
208<code class="api-signature">
209  public
210
211  final
212
213  class
214  PositionAssertions
215</code>
216<br>
217
218
219<code class="api-signature">
220
221    extends Object
222
223
224
225</code>
226
227<code class="api-signature">
228
229
230
231</code>
232
233</p><table class="jd-inheritance-table">
234
235
236  <tr>
237
238    <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object
239    </td>
240  </tr>
241
242
243  <tr>
244
245      <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
246
247    <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.assertion.PositionAssertions
248    </td>
249  </tr>
250
251
252</table>
253
254
255
256
257<br><hr>
258
259
260  <p>A collection of <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code>s for checking relative position of elements on the screen.
261</p>
262
263
264
265
266
267
268
269<h2 class="api-section">Summary</h2>
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297<!-- ========== METHOD SUMMARY =========== -->
298<table id="pubmethods" class="responsive methods">
299<tr><th colspan="2"><h3>Public methods</h3></th></tr>
300
301
302
303
304  <tr class="api apilevel-" >
305
306
307    <td><code>
308
309
310        static
311
312
313        <a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code>
314    </td>
315
316    <td width="100%">
317      <code>
318      <a href="/reference/android/support/test/espresso/assertion/PositionAssertions.html#isAbove(org.hamcrest.Matcher<android.view.View>)">isAbove</a>(Matcher&lt;View&gt; matcher)
319      </code>
320
321        <p>Returns an Assertion that asserts that view displayed is completely above
322 the view matching the given matcher.
323
324
325</p>
326
327    </td>
328  </tr>
329
330
331
332  <tr class="api apilevel-" >
333
334
335    <td><code>
336
337
338        static
339
340
341        <a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code>
342    </td>
343
344    <td width="100%">
345      <code>
346      <a href="/reference/android/support/test/espresso/assertion/PositionAssertions.html#isBelow(org.hamcrest.Matcher<android.view.View>)">isBelow</a>(Matcher&lt;View&gt; matcher)
347      </code>
348
349        <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely
350 below the view matching the given matcher.
351
352
353</p>
354
355    </td>
356  </tr>
357
358
359
360  <tr class="api apilevel-" >
361
362
363    <td><code>
364
365
366        static
367
368
369        <a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code>
370    </td>
371
372    <td width="100%">
373      <code>
374      <a href="/reference/android/support/test/espresso/assertion/PositionAssertions.html#isBottomAlignedWith(org.hamcrest.Matcher<android.view.View>)">isBottomAlignedWith</a>(Matcher&lt;View&gt; matcher)
375      </code>
376
377        <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely
378 aligned to bottom with the view matching the given matcher.
379
380
381</p>
382
383    </td>
384  </tr>
385
386
387
388  <tr class="api apilevel-" >
389
390
391    <td><code>
392
393
394        static
395
396
397        <a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code>
398    </td>
399
400    <td width="100%">
401      <code>
402      <a href="/reference/android/support/test/espresso/assertion/PositionAssertions.html#isLeftAlignedWith(org.hamcrest.Matcher<android.view.View>)">isLeftAlignedWith</a>(Matcher&lt;View&gt; matcher)
403      </code>
404
405        <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely aligned
406 to the left as the view matching the given matcher.
407
408
409</p>
410
411    </td>
412  </tr>
413
414
415
416  <tr class="api apilevel-" >
417
418
419    <td><code>
420
421
422        static
423
424
425        <a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code>
426    </td>
427
428    <td width="100%">
429      <code>
430      <a href="/reference/android/support/test/espresso/assertion/PositionAssertions.html#isLeftOf(org.hamcrest.Matcher<android.view.View>)">isLeftOf</a>(Matcher&lt;View&gt; matcher)
431      </code>
432
433        <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely left of
434 the view matching the given matcher.
435
436
437</p>
438
439    </td>
440  </tr>
441
442
443
444  <tr class="api apilevel-" >
445
446
447    <td><code>
448
449
450        static
451
452
453        <a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code>
454    </td>
455
456    <td width="100%">
457      <code>
458      <a href="/reference/android/support/test/espresso/assertion/PositionAssertions.html#isRightAlignedWith(org.hamcrest.Matcher<android.view.View>)">isRightAlignedWith</a>(Matcher&lt;View&gt; matcher)
459      </code>
460
461        <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely aligned
462 to the right as the view matching the given matcher.
463
464
465</p>
466
467    </td>
468  </tr>
469
470
471
472  <tr class="api apilevel-" >
473
474
475    <td><code>
476
477
478        static
479
480
481        <a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code>
482    </td>
483
484    <td width="100%">
485      <code>
486      <a href="/reference/android/support/test/espresso/assertion/PositionAssertions.html#isRightOf(org.hamcrest.Matcher<android.view.View>)">isRightOf</a>(Matcher&lt;View&gt; matcher)
487      </code>
488
489        <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely right of
490 the view matching the given matcher.
491
492
493</p>
494
495    </td>
496  </tr>
497
498
499
500  <tr class="api apilevel-" >
501
502
503    <td><code>
504
505
506        static
507
508
509        <a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code>
510    </td>
511
512    <td width="100%">
513      <code>
514      <a href="/reference/android/support/test/espresso/assertion/PositionAssertions.html#isTopAlignedWith(org.hamcrest.Matcher<android.view.View>)">isTopAlignedWith</a>(Matcher&lt;View&gt; matcher)
515      </code>
516
517        <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely
518  aligned to top with the view matching the given matcher.
519
520
521</p>
522
523    </td>
524  </tr>
525
526
527
528</table>
529
530
531
532
533
534
535
536<!-- ========== METHOD SUMMARY =========== -->
537<table id="inhmethods" class="methods inhtable">
538<tr><th><h3>Inherited methods</h3></th></tr>
539
540
541<tr class="api apilevel-" >
542<td colspan="2">
543
544  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
545          ><img height="34" id="inherited-methods-java.lang.Object-trigger"
546          src="/assets/images/styles/disclosure_down.png"
547          class="jd-expando-trigger-img" /></a>From
548class
549<code>
550
551    java.lang.Object
552
553</code>
554<div id="inherited-methods-java.lang.Object">
555  <div id="inherited-methods-java.lang.Object-list"
556        class="jd-inheritedlinks">
557  </div>
558  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
559    <table class="jd-sumtable-expando responsive">
560
561
562
563
564  <tr class="api apilevel-" >
565
566
567    <td><code>
568
569
570
571
572
573        Object</code>
574    </td>
575
576    <td width="100%">
577      <code>
578      clone()
579      </code>
580
581    </td>
582  </tr>
583
584
585
586  <tr class="api apilevel-" >
587
588
589    <td><code>
590
591
592
593
594
595        boolean</code>
596    </td>
597
598    <td width="100%">
599      <code>
600      equals(Object arg0)
601      </code>
602
603    </td>
604  </tr>
605
606
607
608  <tr class="api apilevel-" >
609
610
611    <td><code>
612
613
614
615
616
617        void</code>
618    </td>
619
620    <td width="100%">
621      <code>
622      finalize()
623      </code>
624
625    </td>
626  </tr>
627
628
629
630  <tr class="api apilevel-" >
631
632
633    <td><code>
634
635
636
637        final
638
639        Class&lt;?&gt;</code>
640    </td>
641
642    <td width="100%">
643      <code>
644      getClass()
645      </code>
646
647    </td>
648  </tr>
649
650
651
652  <tr class="api apilevel-" >
653
654
655    <td><code>
656
657
658
659
660
661        int</code>
662    </td>
663
664    <td width="100%">
665      <code>
666      hashCode()
667      </code>
668
669    </td>
670  </tr>
671
672
673
674  <tr class="api apilevel-" >
675
676
677    <td><code>
678
679
680
681        final
682
683        void</code>
684    </td>
685
686    <td width="100%">
687      <code>
688      notify()
689      </code>
690
691    </td>
692  </tr>
693
694
695
696  <tr class="api apilevel-" >
697
698
699    <td><code>
700
701
702
703        final
704
705        void</code>
706    </td>
707
708    <td width="100%">
709      <code>
710      notifyAll()
711      </code>
712
713    </td>
714  </tr>
715
716
717
718  <tr class="api apilevel-" >
719
720
721    <td><code>
722
723
724
725
726
727        String</code>
728    </td>
729
730    <td width="100%">
731      <code>
732      toString()
733      </code>
734
735    </td>
736  </tr>
737
738
739
740  <tr class="api apilevel-" >
741
742
743    <td><code>
744
745
746
747        final
748
749        void</code>
750    </td>
751
752    <td width="100%">
753      <code>
754      wait(long arg0, int arg1)
755      </code>
756
757    </td>
758  </tr>
759
760
761
762  <tr class="api apilevel-" >
763
764
765    <td><code>
766
767
768
769        final
770
771        void</code>
772    </td>
773
774    <td width="100%">
775      <code>
776      wait(long arg0)
777      </code>
778
779    </td>
780  </tr>
781
782
783
784  <tr class="api apilevel-" >
785
786
787    <td><code>
788
789
790
791        final
792
793        void</code>
794    </td>
795
796    <td width="100%">
797      <code>
798      wait()
799      </code>
800
801    </td>
802  </tr>
803
804
805
806    </table>
807  </div>
808</div>
809</td></tr>
810
811
812</table>
813
814
815
816<!-- XML Attributes -->
817
818
819<!-- Enum Values -->
820
821
822<!-- Constants -->
823
824
825<!-- Fields -->
826
827
828<!-- Public ctors -->
829
830
831
832<!-- ========= CONSTRUCTOR DETAIL ======== -->
833<!-- Protected ctors -->
834
835
836
837<!-- ========= METHOD DETAIL ======== -->
838<!-- Public methdos -->
839
840<h2 class="api-section">Public methods</h2>
841
842
843
844<A NAME="isAbove(org.hamcrest.Matcher<android.view.View>)"></A>
845
846<div class="api apilevel-">
847    <h3 class="api-name">isAbove</h3>
848    <div class="api-level">
849      <div></div>
850
851
852
853    </div>
854<pre class="api-signature no-pretty-print">
855<a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a> isAbove (Matcher&lt;View&gt; matcher)</pre>
856
857
858
859
860  <p>Returns an Assertion that asserts that view displayed is completely above
861 the view matching the given matcher.</p>
862    <table class="responsive">
863    <tr><th colspan=2>Parameters</th></tr>
864      <tr>
865        <td><code>matcher</code></td>
866        <td width="100%">
867          <code>Matcher</code>
868          <!-- no parameter comment --></td>
869      </tr>
870    </table>
871    <table class="responsive">
872      <tr><th colspan=2>Returns</th></tr>
873      <tr>
874        <td><code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code></td>
875        <td width="100%"><!-- no returns description in source --></td>
876      </tr>
877    </table>
878      <table class="responsive">
879      <tr><th colspan=2>Throws</th></tr>
880        <tr>
881          <td><code></code></td>
882          <td width="100%">if there is more than 1 pixel of vertical overlap.</td>
883        </tr>
884        <tr>
885          <td><code><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></code></td>
886          <td width="100%">if more than one view matches the given matcher.</td>
887        </tr>
888        <tr>
889          <td><code><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></code></td>
890          <td width="100%">if no views match the given matcher.
891</td>
892        </tr>
893      </table>
894
895
896</div>
897
898
899<A NAME="isBelow(org.hamcrest.Matcher<android.view.View>)"></A>
900
901<div class="api apilevel-">
902    <h3 class="api-name">isBelow</h3>
903    <div class="api-level">
904      <div></div>
905
906
907
908    </div>
909<pre class="api-signature no-pretty-print">
910<a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a> isBelow (Matcher&lt;View&gt; matcher)</pre>
911
912
913
914
915  <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely
916 below the view matching the given matcher.</p>
917    <table class="responsive">
918    <tr><th colspan=2>Parameters</th></tr>
919      <tr>
920        <td><code>matcher</code></td>
921        <td width="100%">
922          <code>Matcher</code>
923          <!-- no parameter comment --></td>
924      </tr>
925    </table>
926    <table class="responsive">
927      <tr><th colspan=2>Returns</th></tr>
928      <tr>
929        <td><code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code></td>
930        <td width="100%"><!-- no returns description in source --></td>
931      </tr>
932    </table>
933      <table class="responsive">
934      <tr><th colspan=2>Throws</th></tr>
935        <tr>
936          <td><code></code></td>
937          <td width="100%">if there is more than 1 pixel of vertical overlap.</td>
938        </tr>
939        <tr>
940          <td><code><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></code></td>
941          <td width="100%">if more than one view matches the given matcher.</td>
942        </tr>
943        <tr>
944          <td><code><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></code></td>
945          <td width="100%">if no views match the given matcher.
946</td>
947        </tr>
948      </table>
949
950
951</div>
952
953
954<A NAME="isBottomAlignedWith(org.hamcrest.Matcher<android.view.View>)"></A>
955
956<div class="api apilevel-">
957    <h3 class="api-name">isBottomAlignedWith</h3>
958    <div class="api-level">
959      <div></div>
960
961
962
963    </div>
964<pre class="api-signature no-pretty-print">
965<a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a> isBottomAlignedWith (Matcher&lt;View&gt; matcher)</pre>
966
967
968
969
970  <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely
971 aligned to bottom with the view matching the given matcher.
972
973 <p>The bottom 'y' coordinate of the view displayed must equal the bottom 'y'
974 coordinate of the view matching the given matcher.</p>
975    <table class="responsive">
976    <tr><th colspan=2>Parameters</th></tr>
977      <tr>
978        <td><code>matcher</code></td>
979        <td width="100%">
980          <code>Matcher</code>
981          <!-- no parameter comment --></td>
982      </tr>
983    </table>
984    <table class="responsive">
985      <tr><th colspan=2>Returns</th></tr>
986      <tr>
987        <td><code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code></td>
988        <td width="100%"><!-- no returns description in source --></td>
989      </tr>
990    </table>
991      <table class="responsive">
992      <tr><th colspan=2>Throws</th></tr>
993        <tr>
994          <td><code></code></td>
995          <td width="100%">if the views are not aligned bottom.</td>
996        </tr>
997        <tr>
998          <td><code><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></code></td>
999          <td width="100%">if more than one view matches the given matcher.</td>
1000        </tr>
1001        <tr>
1002          <td><code><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></code></td>
1003          <td width="100%">if no views match the given matcher.
1004</td>
1005        </tr>
1006      </table>
1007
1008
1009</div>
1010
1011
1012<A NAME="isLeftAlignedWith(org.hamcrest.Matcher<android.view.View>)"></A>
1013
1014<div class="api apilevel-">
1015    <h3 class="api-name">isLeftAlignedWith</h3>
1016    <div class="api-level">
1017      <div></div>
1018
1019
1020
1021    </div>
1022<pre class="api-signature no-pretty-print">
1023<a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a> isLeftAlignedWith (Matcher&lt;View&gt; matcher)</pre>
1024
1025
1026
1027
1028  <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely aligned
1029 to the left as the view matching the given matcher.
1030
1031 <p>The left 'x' coordinate of the view displayed must equal the left 'x'
1032 coordinate of the view matching the given matcher.</p>
1033    <table class="responsive">
1034    <tr><th colspan=2>Parameters</th></tr>
1035      <tr>
1036        <td><code>matcher</code></td>
1037        <td width="100%">
1038          <code>Matcher</code>
1039          <!-- no parameter comment --></td>
1040      </tr>
1041    </table>
1042    <table class="responsive">
1043      <tr><th colspan=2>Returns</th></tr>
1044      <tr>
1045        <td><code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code></td>
1046        <td width="100%"><!-- no returns description in source --></td>
1047      </tr>
1048    </table>
1049      <table class="responsive">
1050      <tr><th colspan=2>Throws</th></tr>
1051        <tr>
1052          <td><code></code></td>
1053          <td width="100%">if the views are not aligned to the left.</td>
1054        </tr>
1055        <tr>
1056          <td><code><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></code></td>
1057          <td width="100%">if more than one view matches the given matcher.</td>
1058        </tr>
1059        <tr>
1060          <td><code><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></code></td>
1061          <td width="100%">if no views match the given matcher.
1062</td>
1063        </tr>
1064      </table>
1065
1066
1067</div>
1068
1069
1070<A NAME="isLeftOf(org.hamcrest.Matcher<android.view.View>)"></A>
1071
1072<div class="api apilevel-">
1073    <h3 class="api-name">isLeftOf</h3>
1074    <div class="api-level">
1075      <div></div>
1076
1077
1078
1079    </div>
1080<pre class="api-signature no-pretty-print">
1081<a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a> isLeftOf (Matcher&lt;View&gt; matcher)</pre>
1082
1083
1084
1085
1086  <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely left of
1087 the view matching the given matcher.</p>
1088    <table class="responsive">
1089    <tr><th colspan=2>Parameters</th></tr>
1090      <tr>
1091        <td><code>matcher</code></td>
1092        <td width="100%">
1093          <code>Matcher</code>
1094          <!-- no parameter comment --></td>
1095      </tr>
1096    </table>
1097    <table class="responsive">
1098      <tr><th colspan=2>Returns</th></tr>
1099      <tr>
1100        <td><code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code></td>
1101        <td width="100%"><!-- no returns description in source --></td>
1102      </tr>
1103    </table>
1104      <table class="responsive">
1105      <tr><th colspan=2>Throws</th></tr>
1106        <tr>
1107          <td><code></code></td>
1108          <td width="100%">if there is more than 1 pixel of horizontal overlap.</td>
1109        </tr>
1110        <tr>
1111          <td><code><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></code></td>
1112          <td width="100%">if more than one view matches the given matcher.</td>
1113        </tr>
1114        <tr>
1115          <td><code><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></code></td>
1116          <td width="100%">if no views match the given matcher.
1117</td>
1118        </tr>
1119      </table>
1120
1121
1122</div>
1123
1124
1125<A NAME="isRightAlignedWith(org.hamcrest.Matcher<android.view.View>)"></A>
1126
1127<div class="api apilevel-">
1128    <h3 class="api-name">isRightAlignedWith</h3>
1129    <div class="api-level">
1130      <div></div>
1131
1132
1133
1134    </div>
1135<pre class="api-signature no-pretty-print">
1136<a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a> isRightAlignedWith (Matcher&lt;View&gt; matcher)</pre>
1137
1138
1139
1140
1141  <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely aligned
1142 to the right as the view matching the given matcher.
1143
1144 <p>The right 'x' coordinate of the view displayed must equal the right 'x'
1145 coordinate of the view matching the given matcher.</p>
1146    <table class="responsive">
1147    <tr><th colspan=2>Parameters</th></tr>
1148      <tr>
1149        <td><code>matcher</code></td>
1150        <td width="100%">
1151          <code>Matcher</code>
1152          <!-- no parameter comment --></td>
1153      </tr>
1154    </table>
1155    <table class="responsive">
1156      <tr><th colspan=2>Returns</th></tr>
1157      <tr>
1158        <td><code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code></td>
1159        <td width="100%"><!-- no returns description in source --></td>
1160      </tr>
1161    </table>
1162      <table class="responsive">
1163      <tr><th colspan=2>Throws</th></tr>
1164        <tr>
1165          <td><code></code></td>
1166          <td width="100%">if the views are not aligned to the right.</td>
1167        </tr>
1168        <tr>
1169          <td><code><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></code></td>
1170          <td width="100%">if more than one view matches the given matcher.</td>
1171        </tr>
1172        <tr>
1173          <td><code><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></code></td>
1174          <td width="100%">if no views match the given matcher.
1175</td>
1176        </tr>
1177      </table>
1178
1179
1180</div>
1181
1182
1183<A NAME="isRightOf(org.hamcrest.Matcher<android.view.View>)"></A>
1184
1185<div class="api apilevel-">
1186    <h3 class="api-name">isRightOf</h3>
1187    <div class="api-level">
1188      <div></div>
1189
1190
1191
1192    </div>
1193<pre class="api-signature no-pretty-print">
1194<a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a> isRightOf (Matcher&lt;View&gt; matcher)</pre>
1195
1196
1197
1198
1199  <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely right of
1200 the view matching the given matcher.</p>
1201    <table class="responsive">
1202    <tr><th colspan=2>Parameters</th></tr>
1203      <tr>
1204        <td><code>matcher</code></td>
1205        <td width="100%">
1206          <code>Matcher</code>
1207          <!-- no parameter comment --></td>
1208      </tr>
1209    </table>
1210    <table class="responsive">
1211      <tr><th colspan=2>Returns</th></tr>
1212      <tr>
1213        <td><code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code></td>
1214        <td width="100%"><!-- no returns description in source --></td>
1215      </tr>
1216    </table>
1217      <table class="responsive">
1218      <tr><th colspan=2>Throws</th></tr>
1219        <tr>
1220          <td><code></code></td>
1221          <td width="100%">if there is more than 1 pixel of horizontal overlap.</td>
1222        </tr>
1223        <tr>
1224          <td><code><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></code></td>
1225          <td width="100%">if more than one view matches the given matcher.</td>
1226        </tr>
1227        <tr>
1228          <td><code><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></code></td>
1229          <td width="100%">if no views match the given matcher.
1230</td>
1231        </tr>
1232      </table>
1233
1234
1235</div>
1236
1237
1238<A NAME="isTopAlignedWith(org.hamcrest.Matcher<android.view.View>)"></A>
1239
1240<div class="api apilevel-">
1241    <h3 class="api-name">isTopAlignedWith</h3>
1242    <div class="api-level">
1243      <div></div>
1244
1245
1246
1247    </div>
1248<pre class="api-signature no-pretty-print">
1249<a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a> isTopAlignedWith (Matcher&lt;View&gt; matcher)</pre>
1250
1251
1252
1253
1254  <p>Returns a <code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code> that asserts that view displayed is completely
1255  aligned to top with the view matching the given matcher.
1256
1257 <p>The top 'y' coordinate of the view displayed must equal the top 'y'
1258 coordinate of the view matching the given matcher.</p>
1259    <table class="responsive">
1260    <tr><th colspan=2>Parameters</th></tr>
1261      <tr>
1262        <td><code>matcher</code></td>
1263        <td width="100%">
1264          <code>Matcher</code>
1265          <!-- no parameter comment --></td>
1266      </tr>
1267    </table>
1268    <table class="responsive">
1269      <tr><th colspan=2>Returns</th></tr>
1270      <tr>
1271        <td><code><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></code></td>
1272        <td width="100%"><!-- no returns description in source --></td>
1273      </tr>
1274    </table>
1275      <table class="responsive">
1276      <tr><th colspan=2>Throws</th></tr>
1277        <tr>
1278          <td><code></code></td>
1279          <td width="100%">if the views are not aligned top.</td>
1280        </tr>
1281        <tr>
1282          <td><code><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></code></td>
1283          <td width="100%">if more than one view matches the given matcher.</td>
1284        </tr>
1285        <tr>
1286          <td><code><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></code></td>
1287          <td width="100%">if no views match the given matcher.
1288</td>
1289        </tr>
1290      </table>
1291
1292
1293</div>
1294
1295
1296
1297
1298
1299<!-- ========= METHOD DETAIL ======== -->
1300
1301
1302
1303<!-- ========= END OF CLASS DATA ========= -->
1304
1305</div><!-- end jd-content -->
1306
1307
1308
1309<div class="data-reference-resources-wrapper">
1310
1311  <ul data-reference-resources>
1312
1313
1314
1315    <li><h2>Classes</h2>
1316      <ul>
1317          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/assertion/LayoutAssertions.html">LayoutAssertions</a></li>
1318          <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/assertion/PositionAssertions.html">PositionAssertions</a></li>
1319          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/assertion/ViewAssertions.html">ViewAssertions</a></li>
1320      </ul>
1321    </li>
1322
1323
1324
1325  </ul>
1326
1327</div>
1328
1329
1330
1331</body>
1332</html>
1333