HomeSort by relevance Sort by last modified time
    Searched defs:viewStub (Results 1 - 4 of 4) sorted by null

  /cts/tests/tests/view/src/android/view/cts/
ViewStubTest.java 31 import android.view.ViewStub;
32 import android.view.ViewStub.OnInflateListener;
36 * Test {@link ViewStub}.
58 new ViewStub(mContext);
60 new ViewStub(mContext, 10);
62 new ViewStub(mContext, attrs);
64 new ViewStub(mContext, attrs, 30);
68 ViewStub viewStub = new ViewStub(mContext)
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ViewStubTest.java 5 import android.view.ViewStub;
27 ViewStub viewStub = new ViewStub(ctxt);
31 viewStub.setId(stubId);
32 viewStub.setInflatedId(inflatedId);
33 viewStub.setLayoutResource(R.layout.media);
37 root.addView(viewStub);
40 View inflatedView = viewStub.inflate();
52 ViewStub viewStub = new ViewStub(ctxt
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowViewStub.java 7 import android.view.ViewStub;
17 @Implements(ViewStub.class)
19 @RealObject ViewStub viewStub;
24 private ViewStub.OnInflateListener mInflateListener;
67 ViewParent viewParent = viewStub.getParent();
72 LayoutInflater factory = LayoutInflater.from(viewStub.getContext());
79 int index = parent.indexOfChild(viewStub);
81 // parent.removeViewInLayout(viewStub);
93 mInflateListener.onInflate(viewStub, view)
    [all...]
  /frameworks/base/core/java/android/view/
LayoutInflater.java 646 if (view instanceof ViewStub) {
647 // Use the same context when inflating ViewStub later.
648 final ViewStub viewStub = (ViewStub) view;
649 viewStub.setLayoutInflater(cloneInContext((Context) args[0]));
    [all...]

Completed in 3113 milliseconds