I have a problem.
I slip my Screen in two areas with 2 ViewStubs.
But if i inflated the ViewStubs they are no more accessible and i can't inflate an other View within this ViewStub.
So what is an alternative to use these kind containers.
Here some Code. You all love Code:
ViewStub contentSpace = (ViewStub) findViewById(R.id.ContentSpace);
contentSpace.setLayoutResource(R.layout.view1);
contentSpace.inflate();
contentSpace.setInflatedId(R.id.Content);
RelativeLayout content = (RelativeLayout) findViewById(R.id.Content);
contentSpace.setLayoutResource(R.layout.view1); //crash
contentSpace.inflate();