ErrorFragment

Added in 1.1.0
Deprecated in 1.1.0

public class ErrorFragment extends BrandedFragment


A fragment for displaying an error indication.

Summary

Public constructors

This method is deprecated. Deprecated in Java

Public methods

@Nullable Drawable

This method is deprecated. Deprecated in Java

@Nullable View.OnClickListener

This method is deprecated. Deprecated in Java

@Nullable String

This method is deprecated. Deprecated in Java

@Nullable Drawable

This method is deprecated. Deprecated in Java

@Nullable CharSequence

This method is deprecated. Deprecated in Java

boolean

This method is deprecated. Deprecated in Java

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

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void
setDefaultBackground(boolean translucent)

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

Inherited Constants

From android.content.ComponentCallbacks2
static final int

This field is deprecated. Deprecated in Java

static final int

This field is deprecated.

static final int

This field is deprecated.

static final int

This field is deprecated.

static final int

This field is deprecated.

static final int

This field is deprecated.

static final int

This field is deprecated. Deprecated in Java

Inherited methods

From androidx.leanback.app.BrandedFragment
@Nullable Drawable

This method is deprecated. Deprecated in Java

int

This method is deprecated. Deprecated in Java

@Nullable SearchOrbView.Colors

This method is deprecated. Deprecated in Java

@Nullable CharSequence

This method is deprecated. Deprecated in Java

@Nullable View

This method is deprecated. Deprecated in Java

@Nullable TitleViewAdapter

This method is deprecated. Deprecated in Java

void
installTitleView(
    @NonNull LayoutInflater inflater,
    @NonNull ViewGroup parent,
    @Nullable Bundle savedInstanceState
)

This method is deprecated. Deprecated in Java

final boolean

This method is deprecated. Deprecated in Java

void

This method is deprecated.

@NonNull View
onInflateTitleView(
    @NonNull LayoutInflater inflater,
    @Nullable ViewGroup parent,
    @Nullable Bundle savedInstanceState
)

This method is deprecated. Deprecated in Java

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState)

This method is deprecated.

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void
showTitle(int flags)

This method is deprecated. Deprecated in Java

void
showTitle(boolean show)

This method is deprecated. Deprecated in Java

From android.app.Fragment
void
dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args)

This method is deprecated.

final boolean

This method is deprecated.

final Activity

This method is deprecated.

boolean

This method is deprecated.

boolean

This method is deprecated.

final Bundle

This method is deprecated.

final FragmentManager

This method is deprecated.

Context

This method is deprecated.

Transition

This method is deprecated.

Transition

This method is deprecated.

final FragmentManager

This method is deprecated.

final Object

This method is deprecated.

final int

This method is deprecated.

final LayoutInflater

This method is deprecated.

LoaderManager

This method is deprecated.

final Fragment

This method is deprecated.

Transition

This method is deprecated.

final Resources

This method is deprecated.

final boolean

This method is deprecated.

Transition

This method is deprecated.

Transition

This method is deprecated.

Transition

This method is deprecated.

final String
getString(int resId)

This method is deprecated.

final String

This method is deprecated.

final Fragment

This method is deprecated.

final int

This method is deprecated.

final CharSequence
getText(int resId)

This method is deprecated.

boolean

This method is deprecated.

View

This method is deprecated.

final int

This method is deprecated.

static Fragment
instantiate(Context context, String fname)

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

final boolean

This method is deprecated.

void
onActivityCreated(Bundle savedInstanceState)

This method is deprecated.

void
onActivityResult(int requestCode, int resultCode, Intent data)

This method is deprecated.

void
onAttach(Activity activity)

This method is deprecated.

void
onAttachFragment(Fragment childFragment)

This method is deprecated.

void

This method is deprecated.

boolean

This method is deprecated.

void
onCreate(Bundle savedInstanceState)

This method is deprecated.

Animator
onCreateAnimator(int transit, boolean enter, int nextAnim)

This method is deprecated.

void
onCreateContextMenu(
    ContextMenu menu,
    View v,
    ContextMenu.ContextMenuInfo menuInfo
)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

LayoutInflater
onGetLayoutInflater(Bundle savedInstanceState)

This method is deprecated.

void
onHiddenChanged(boolean hidden)

This method is deprecated.

void
onInflate(
    Activity activity,
    AttributeSet attrs,
    Bundle savedInstanceState
)

This method is deprecated.

void

This method is deprecated.

void
onMultiWindowModeChanged(boolean isInMultiWindowMode)

This method is deprecated.

boolean

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
onPictureInPictureModeChanged(boolean isInPictureInPictureMode)

This method is deprecated.

void

This method is deprecated.

void
onRequestPermissionsResult(
    int requestCode,
    String[] permissions,
    int[] grantResults
)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
onTrimMemory(int level)

This method is deprecated.

void
onViewCreated(View view, Bundle savedInstanceState)

This method is deprecated.

void
onViewStateRestored(Bundle savedInstanceState)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

final void
requestPermissions(String[] permissions, int requestCode)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
setHasOptionsMenu(boolean hasMenu)

This method is deprecated.

void

This method is deprecated.

void
setMenuVisibility(boolean menuVisible)

This method is deprecated.

void

This method is deprecated.

void
setRetainInstance(boolean retain)

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void

This method is deprecated.

void
setTargetFragment(Fragment fragment, int requestCode)

This method is deprecated.

void
setUserVisibleHint(boolean isVisibleToUser)

This method is deprecated.

boolean

This method is deprecated.

void

This method is deprecated.

void
startActivityForResult(Intent intent, int requestCode)

This method is deprecated.

void
startIntentSenderForResult(
    IntentSender intent,
    int requestCode,
    Intent fillInIntent,
    int flagsMask,
    int flagsValues,
    int extraFlags,
    Bundle options
)

This method is deprecated.

void

This method is deprecated.

String

This method is deprecated.

void

This method is deprecated.

Public constructors

ErrorFragment

Added in 1.1.0
Deprecated in 1.1.0
public ErrorFragment()

Public methods

getBackgroundDrawable

Added in 1.1.0
Deprecated in 1.1.0
public @Nullable Drawable getBackgroundDrawable()

Returns the background drawable. May be null if a default is used.

getButtonClickListener

Added in 1.1.0
Deprecated in 1.1.0
public @Nullable View.OnClickListener getButtonClickListener()

Returns the button click listener.

getButtonText

Added in 1.1.0
Deprecated in 1.1.0
public @Nullable String getButtonText()

Returns the button text.

getImageDrawable

Added in 1.1.0
Deprecated in 1.1.0
public @Nullable Drawable getImageDrawable()

Returns the drawable used for the error image.

getMessage

Added in 1.1.0
Deprecated in 1.1.0
public @Nullable CharSequence getMessage()

Returns the error message.

isBackgroundTranslucent

Added in 1.1.0
Deprecated in 1.1.0
public boolean isBackgroundTranslucent()

Returns true if the background is translucent.

onCreateView

Added in 1.1.0
Deprecated in 1.1.0
public @Nullable View onCreateView(
    LayoutInflater inflater,
    @Nullable ViewGroup container,
    Bundle savedInstanceState
)

onStart

public void onStart()

setBackgroundDrawable

Added in 1.1.0
Deprecated in 1.1.0
public void setBackgroundDrawable(@Nullable Drawable drawable)

Sets a drawable for the fragment background.

Parameters
@Nullable Drawable drawable

The drawable used for the background.

setButtonClickListener

Added in 1.1.0
Deprecated in 1.1.0
public void setButtonClickListener(@Nullable View.OnClickListener clickListener)

Set the button click listener.

Parameters
@Nullable View.OnClickListener clickListener

The click listener for the button.

setButtonText

Added in 1.1.0
Deprecated in 1.1.0
public void setButtonText(@Nullable String text)

Sets the button text.

Parameters
@Nullable String text

The button text.

setDefaultBackground

Added in 1.1.0
Deprecated in 1.1.0
public void setDefaultBackground(boolean translucent)

Sets the default background.

Parameters
boolean translucent

True to set a translucent background.

setImageDrawable

Added in 1.1.0
Deprecated in 1.1.0
public void setImageDrawable(@Nullable Drawable drawable)

Sets the drawable to be used for the error image.

Parameters
@Nullable Drawable drawable

The drawable used for the error image.

setMessage

Added in 1.1.0
Deprecated in 1.1.0
public void setMessage(@Nullable CharSequence message)

Sets the error message.

Parameters
@Nullable CharSequence message

The error message.