LayoutMatchers

public final class LayoutMatchers
extends Object

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


一组Hamcrest匹配来检测典型布局问题。

Summary

Public methods

static Matcher hasEllipsizedText()

匹配具有椭圆化文本的TextView元素。

static Matcher hasMultilineText()

匹配具有多行文本的TextView元素。

Inherited methods

From class java.lang.Object

Public methods

hasEllipsizedText

Matcher hasEllipsizedText ()

匹配具有椭圆化文本的TextView元素。 如果文本太长以至于无法放入TextView中,则可以将其忽略('Too long'显示为'Too l'|'或''long')或切断('Too long'显示为'Too l “)。 虽然在某些情况下可以接受,但通常表示用户体验不佳

Returns
Matcher

hasMultilineText

Matcher hasMultilineText ()

匹配具有多行文本的TextView元素。

Returns
Matcher