Java android.view ViewStub fields, constructors, methods, implement or subclass

Example usage for Java android.view ViewStub fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view ViewStub.

The text is from its open source code.

Constructor

Method

intgetInflatedId()
Returns the id taken by the inflated view.
intgetVisibility()
Returns the visibility status for this view.
Viewinflate()
Inflates the layout resource identified by #getLayoutResource() and replaces this StubbedView in its parent by the inflated layout resource.
voidsetLayoutParams(ViewGroup.LayoutParams params)
Set the layout parameters associated with this view.
voidsetLayoutResourceAsync") public void setLayoutResource(@LayoutRes int layoutResource)
Specifies the layout resource to inflate when this StubbedView becomes visible or invisible or when #inflate() is invoked.
voidsetOnInflateListener(OnInflateListener inflateListener)
Specifies the inflate listener to be notified after this ViewStub successfully inflated its layout resource.
voidsetVisibilityAsync") 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.