android.support.v7.widget.ActionBarContextView Java Examples
The following examples show how to use
android.support.v7.widget.ActionBarContextView.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AppCompatv7DSL.java From anvil with MIT License | 4 votes |
public static BaseDSL.ViewClassResult actionBarContextView() { return BaseDSL.v(ActionBarContextView.class); }
Example #2
Source File: AppCompatv7DSL.java From anvil with MIT License | 4 votes |
public static Void actionBarContextView(Anvil.Renderable r) { return BaseDSL.v(ActionBarContextView.class, r); }
Example #3
Source File: MainActivityTest.java From otp-authenticator with MIT License | 3 votes |
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()); }