public class ViewStubProxy
extends java.lang.Object
| Constructor and Description |
|---|
ViewStubProxy(android.view.ViewStub viewStub) |
| Modifier and Type | Method and Description |
|---|---|
ViewDataBinding |
getBinding() |
android.view.View |
getRoot() |
android.view.ViewStub |
getViewStub() |
boolean |
isInflated() |
void |
setContainingBinding(ViewDataBinding containingBinding) |
void |
setOnInflateListener(android.view.ViewStub.OnInflateListener listener)
Sets the
ViewStub.OnInflateListener to be called when the ViewStub inflates. |
public void setContainingBinding(ViewDataBinding containingBinding)
public boolean isInflated()
true if the ViewStub has replaced itself with the inflated layout
or false if not.public android.view.View getRoot()
null is returned prior to inflation.public ViewDataBinding getBinding()
null prior to inflation or if there is no binding associated with the layout.public android.view.ViewStub getViewStub()
null if the ViewStub has been inflated.public void setOnInflateListener(android.view.ViewStub.OnInflateListener listener)
ViewStub.OnInflateListener to be called when the ViewStub inflates. The proxy must
have an OnInflateListener, so listener will be called immediately after
the proxy's listener is called.listener - The OnInflateListener to notify of successful inflation