我想滚动到当前屏幕的底部显示,但是
发布于 2015-04-15 07:50:09
好吧,根据你问题中很少的信息,我能提出的建议是:
其中withRowText()是用于匹配ROW3中特定文本的自定义匹配器,如下所示:
public static Matcher<Object> withRowText(String expectedText) {
Checks.checkNotNull(expectedText);
return withRowText(equalTo(expectedText));
}
public static Matcher<Object> withRowText(final Matcher<String> itemTextMatcher) {
Checks.checkNotNull(itemTextMatcher);
return new BoundedMatcher<Object, ROWObject>(ROWObject.class) {
@Override
public boolean matchesSafely(ROWObject rowObject) {
return itemTextMatcher.matches(rowObject.text);
}
@Override
public void describeTo(Description description) {
description.appendText("with rowObject: ");
itemTextMatcher.describeTo(description);
}
};
}顺便说一句,"GridView是一个在二维可滚动网格中显示项目的ViewGroup。“
https://stackoverflow.com/questions/29568063
复制相似问题