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

ErrorFragment

public class ErrorFragment
extends BrandedFragment

java.lang.Object
   ↳ android.app.Fragment
     ↳ android.support.v17.leanback.app.BrandedFragment
       ↳ android.support.v17.leanback.app.ErrorFragment


This class was deprecated in API level 27.1.0.
use ErrorSupportFragment

A fragment for displaying an error indication.

Summary

Inherited constants

From interface android.content.ComponentCallbacks2

Public constructors

ErrorFragment()

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)
void onStart()
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.BrandedFragment
From class android.app.Fragment