Example usage for Java android.view ViewStub fields, constructors, methods, implement or subclass
The text is from its open source code.
ViewStub(Context context) | |
ViewStub(Context context, @LayoutRes int layoutResource) Creates a new ViewStub with the specified layout resource. | |
ViewStub(Context context, AttributeSet attrs) |
int | getInflatedId() Returns the id taken by the inflated view. |
int | getVisibility() Returns the visibility status for this view. |
View | inflate() Inflates the layout resource identified by #getLayoutResource() and replaces this StubbedView in its parent by the inflated layout resource. |
void | setLayoutParams(ViewGroup.LayoutParams params) Set the layout parameters associated with this view. |
void | setLayoutResourceAsync") public void setLayoutResource(@LayoutRes int layoutResource) Specifies the layout resource to inflate when this StubbedView becomes visible or invisible or when #inflate() is invoked. |
void | setOnInflateListener(OnInflateListener inflateListener) Specifies the inflate listener to be notified after this ViewStub successfully inflated its layout resource. |
void | setVisibilityAsync") public void setVisibility(int visibility) When visibility is set to #VISIBLE or #INVISIBLE , #inflate() is invoked and this StubbedView is replaced in its parent by the inflated layout resource. |