Android ViewStub: Lightweight View Optimization
- ViewStub is a lightweight View that can be used as a placeholder in a layout file without displaying specific content.
- ViewStub can dynamically load a specific view at runtime and replace the placeholder view.
- expand()
- ViewStub can reduce the complexity of layout files and improve performance by not requiring the definition of all possible views that may be used in the layout file.
- Make the view visible.