RootMatchers

public final class RootMatchers
extends Object

java.lang.Object
   ↳ android.support.test.espresso.matcher.RootMatchers


Root对象的匹配器集合。

Summary

Fields

public static final Matcher<Root> DEFAULT

Espresso的默认匹配器 Root

Public methods

static Matcher<Root> isDialog()

匹配 Root这是对话框(即

static Matcher<Root> isFocusable()

匹配 Root ,可以采取窗口焦点。

static Matcher<Root> isPlatformPopup()

与弹出式匹配的 Root - 类似自动填充建议或操作栏微调器。

static Matcher<Root> isTouchable()

匹配 Root可以接收触摸事件。

static Matcher<Root> withDecorView(Matcher<View> decorViewMatcher)

与匹配给定视图匹配器的装饰视图匹配 Root

Inherited methods

From class java.lang.Object

Fields

DEFAULT

Matcher<Root> DEFAULT

意式咖啡的默认匹配器 Root

Public methods

isDialog

Matcher<Root> isDialog ()

与对话相匹配 Root (即不是当前恢复活动的窗口)。

Returns
Matcher<Root>

isFocusable

Matcher<Root> isFocusable ()

匹配 Root可以采取窗口焦点。

Returns
Matcher<Root>

isPlatformPopup

Matcher<Root> isPlatformPopup ()

与弹出窗口相匹配的 Root - 如自动填充建议或操作栏微调器。

Returns
Matcher<Root>

isTouchable

Matcher<Root> isTouchable ()

匹配 Root可以接收触摸事件。

Returns
Matcher<Root>

withDecorView

Matcher<Root> withDecorView (Matcher<View> decorViewMatcher)

与匹配给定视图匹配器的装饰视图匹配 Root

Parameters
decorViewMatcher Matcher
Returns
Matcher<Root>