I\'m looking for a way to include a layout programmatically instead of using the XML tag include like in my example:
include
ViewStub stub = (ViewStub) findViewById(R.id.text_post); stub.setLayoutResource(R.layout.profile_header); View inflated = stub.inflate();