added in version 22.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

ErrorSupportFragment

public class ErrorSupportFragment
extends BrandedSupportFragment

java.lang.Object
   ↳ android.support.v4.app.Fragment
     ↳ android.support.v17.leanback.app.BrandedSupportFragment
       ↳ android.support.v17.leanback.app.ErrorSupportFragment


A fragment for displaying an error indication.

Summary

Public constructors

ErrorSupportFragment()

Public methods

Drawable getBackgroundDrawable()

Returns the background drawable.

View.OnClickListener getButtonClickListener()

Returns the button click listener.

String getButtonText()

Returns the button text.

Drawable getImageDrawable()

Returns the drawable used for the error image.

CharSequence getMessage()

Returns the error message.

boolean isBackgroundTranslucent()

Returns true if the background is translucent.

View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

Called to have the fragment instantiate its user interface view.

void onStart()

Called when the Fragment is visible to the user.

void setBackgroundDrawable(Drawable drawable)

Sets a drawable for the fragment background.

void setButtonClickListener(View.OnClickListener clickListener)

Set the button click listener.

void setButtonText(String text)

Sets the button text.

void setDefaultBackground(boolean translucent)

Sets the default background.

void setImageDrawable(Drawable drawable)

Sets the drawable to be used for the error image.

void setMessage(CharSequence message)

Sets the error message.

Inherited methods

From class android.support.v17.leanback.app.BrandedSupportFragment