android.support.v7.widget.ActionBarContextView源码实例Demo

类android.support.v7.widget.ActionBarContextView源码实例Demo

下面列出了android.support.v7.widget.ActionBarContextView 类实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: anvil   文件: AppCompatv7DSL.java
public static BaseDSL.ViewClassResult actionBarContextView() {
  return BaseDSL.v(ActionBarContextView.class);
}
 
源代码2 项目: anvil   文件: AppCompatv7DSL.java
public static Void actionBarContextView(Anvil.Renderable r) {
  return BaseDSL.v(ActionBarContextView.class, r);
}
 
源代码3 项目: otp-authenticator   文件: MainActivityTest.java
public void test005EditMode() throws InterruptedException {

        onView(withId(R.id.action_edit)).check(doesNotExist());

        onData(anything()).inAdapterView(withId(R.id.listView))
                .atPosition(0)
                .perform(longClick());

        onView(withId(R.id.action_edit)).check(matches(isDisplayed()));
        onView(withId(R.id.action_delete)).check(matches(isDisplayed()));
        ActionBarContextView.class.getCanonicalName();
        onView(allOf(isDescendantOfA(withClassName(Matchers.containsString("ActionBarContextView"))), withText(codes[0][0]))).check(matches(isDisplayed()));


        onData(anything()).inAdapterView(withId(R.id.listView))
                .atPosition(1)
                .perform(longClick());



        onView(withId(R.id.action_edit)).check(matches(isDisplayed()));
        onView(withId(R.id.action_delete)).check(matches(isDisplayed()));
        onView(allOf(isDescendantOfA(withClassName(Matchers.containsString("ActionBarContextView"))), withText(codes[1][0]))).check(matches(isDisplayed()));


        onView(withId(R.id.listView)).perform(pressBack());

        onView(withId(R.id.action_edit)).check(doesNotExist());
    }
 
源代码评论
动弹
沙发等你来抢
 类方法
 同包方法