Searched refs:viewStub (Results 1 – 2 of 2) sorted by relevance
27 ViewStub viewStub = new ViewStub(ctxt); in inflate_shouldReplaceOriginalWithLayout() local31 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() local58 assertEquals(R.id.include_id, viewStub.getInflatedId()); in shouldApplyAttributes()59 assertEquals(R.layout.media, viewStub.getLayoutResource()); in shouldApplyAttributes()
19 @RealObject ViewStub viewStub; field in ShadowViewStub67 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()