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
| |
From
class
java.lang.Object
| |
From
interface
android.content.ComponentCallbacks2
| |
From
interface
android.view.View.OnCreateContextMenuListener
| |
From
interface
android.content.ComponentCallbacks
|
Public constructors
Public methods
getBackgroundDrawable
Drawable getBackgroundDrawable ()
Returns the background drawable. May be null if a default is used.
Returns | |
---|---|
Drawable |
getButtonClickListener
View.OnClickListener getButtonClickListener ()
Returns the button click listener.
Returns | |
---|---|
View.OnClickListener |
getButtonText
String getButtonText ()
Returns the button text.
Returns | |
---|---|
String |
getImageDrawable
Drawable getImageDrawable ()
Returns the drawable used for the error image.
Returns | |
---|---|
Drawable |
getMessage
CharSequence getMessage ()
Returns the error message.
Returns | |
---|---|
CharSequence |
isBackgroundTranslucent
boolean isBackgroundTranslucent ()
Returns true if the background is translucent.
Returns | |
---|---|
boolean |
onCreateView
View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
Parameters | |
---|---|
inflater |
LayoutInflater |
container |
ViewGroup |
savedInstanceState |
Bundle |
Returns | |
---|---|
View |
onStart
void onStart ()
setBackgroundDrawable
void setBackgroundDrawable (Drawable drawable)
Sets a drawable for the fragment background.
Parameters | |
---|---|
drawable |
Drawable : The drawable used for the background.
|
setButtonClickListener
void setButtonClickListener (View.OnClickListener clickListener)
Set the button click listener.
Parameters | |
---|---|
clickListener |
View.OnClickListener : The click listener for the button.
|
setButtonText
void setButtonText (String text)
Sets the button text.
Parameters | |
---|---|
text |
String : The button text.
|
setDefaultBackground
void setDefaultBackground (boolean translucent)
Sets the default background.
Parameters | |
---|---|
translucent |
boolean : True to set a translucent background.
|
setImageDrawable
void setImageDrawable (Drawable drawable)
Sets the drawable to be used for the error image.
Parameters | |
---|---|
drawable |
Drawable : The drawable used for the error image.
|
setMessage
void setMessage (CharSequence message)
Sets the error message.
Parameters | |
---|---|
message |
CharSequence : The error message.
|
Interfaces
- BrowseFragment.FragmentHost
- BrowseFragment.MainFragmentAdapterProvider
- BrowseFragment.MainFragmentRowsAdapterProvider
- BrowseSupportFragment.FragmentHost
- BrowseSupportFragment.MainFragmentAdapterProvider
- BrowseSupportFragment.MainFragmentRowsAdapterProvider
- HeadersFragment.OnHeaderClickedListener
- HeadersFragment.OnHeaderViewSelectedListener
- HeadersSupportFragment.OnHeaderClickedListener
- HeadersSupportFragment.OnHeaderViewSelectedListener
- SearchFragment.SearchResultProvider
- SearchSupportFragment.SearchResultProvider
Classes
- BackgroundManager
- BaseFragment
- BaseSupportFragment
- BrandedFragment
- BrandedSupportFragment
- BrowseFragment
- BrowseFragment.BrowseTransitionListener
- BrowseFragment.FragmentFactory
- BrowseFragment.ListRowFragmentFactory
- BrowseFragment.MainFragmentAdapter
- BrowseFragment.MainFragmentAdapterRegistry
- BrowseFragment.MainFragmentRowsAdapter
- BrowseSupportFragment
- BrowseSupportFragment.BrowseTransitionListener
- BrowseSupportFragment.FragmentFactory
- BrowseSupportFragment.ListRowFragmentFactory
- BrowseSupportFragment.MainFragmentAdapter
- BrowseSupportFragment.MainFragmentAdapterRegistry
- BrowseSupportFragment.MainFragmentRowsAdapter
- DetailsFragment
- DetailsFragmentBackgroundController
- DetailsSupportFragment
- DetailsSupportFragmentBackgroundController
- ErrorFragment
- ErrorSupportFragment
- GuidedStepFragment
- GuidedStepSupportFragment
- HeadersFragment
- HeadersSupportFragment
- OnboardingFragment
- OnboardingSupportFragment
- PlaybackFragment
- PlaybackFragmentGlueHost
- PlaybackSupportFragment
- PlaybackSupportFragmentGlueHost
- ProgressBarManager
- RowsFragment
- RowsFragment.MainFragmentAdapter
- RowsFragment.MainFragmentRowsAdapter
- RowsSupportFragment
- RowsSupportFragment.MainFragmentAdapter
- RowsSupportFragment.MainFragmentRowsAdapter
- SearchFragment
- SearchSupportFragment
- VerticalGridFragment
- VerticalGridSupportFragment
- VideoFragment
- VideoFragmentGlueHost
- VideoSupportFragment
- VideoSupportFragmentGlueHost