How to use View Stub in android?
Answers
Answered by
0
Like the documentation says, ViewStub is a View that is inflated lazily. ViewStub stub = (ViewStub) findViewById(R.id.stub); View inflated = stub.inflate(); When the method inflate() is invoked the ViewStub is removed from its parent and replaced with the right View (the root view of mySubTree layout).
Similar questions
Math,
6 months ago
CBSE BOARD XII,
6 months ago
Social Sciences,
6 months ago
Science,
1 year ago
Computer Science,
1 year ago
Hindi,
1 year ago
CBSE BOARD X,
1 year ago