Home
last modified time | relevance | path

Searched refs:viewStub (Results 1 – 2 of 2) sorted by relevance

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DViewStubTest.java27 ViewStub viewStub = new ViewStub(ctxt); in inflate_shouldReplaceOriginalWithLayout() local
31 viewStub.setId(stubId); in inflate_shouldReplaceOriginalWithLayout()
32 viewStub.setInflatedId(inflatedId); in inflate_shouldReplaceOriginalWithLayout()
33 viewStub.setLayoutResource(R.layout.media); in inflate_shouldReplaceOriginalWithLayout()
37 root.addView(viewStub); in inflate_shouldReplaceOriginalWithLayout()
40 View inflatedView = viewStub.inflate(); in inflate_shouldReplaceOriginalWithLayout()
52 ViewStub viewStub = new ViewStub(ctxt, in shouldApplyAttributes() local
58 assertEquals(R.id.include_id, viewStub.getInflatedId()); in shouldApplyAttributes()
59 assertEquals(R.layout.media, viewStub.getLayoutResource()); in shouldApplyAttributes()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowViewStub.java19 @RealObject ViewStub viewStub; field in ShadowViewStub
67 ViewParent viewParent = viewStub.getParent(); in inflate()
72 LayoutInflater factory = LayoutInflater.from(viewStub.getContext()); in inflate()
79 int index = parent.indexOfChild(viewStub); in inflate()
93 mInflateListener.onInflate(viewStub, view); in inflate()