ErrorFragment
class ErrorFragment : BrandedFragment
kotlin.Any | |||
↳ | android.app.Fragment | ||
↳ | androidx.leanback.app.BrandedFragment | ||
↳ | androidx.leanback.app.ErrorFragment |
A fragment for displaying an error indication.
Summary
Public constructors |
---|
Public functions |
|
---|---|
Drawable? |
Returns the background drawable. |
View.OnClickListener? |
Returns the button click listener. |
String? |
Returns the button text. |
Drawable? |
Returns the drawable used for the error image. |
CharSequence? |
Returns the error message. |
Boolean |
Returns true if the background is translucent. |
View? |
This function is deprecated. |
Unit |
This function is deprecated. |
Unit |
Sets a drawable for the fragment background. |
Unit |
Set the button click listener. |
Unit |
Sets the button text. |
Unit |
Sets the default background. |
Unit |
Sets the drawable to be used for the error image. |
Unit |
Sets the error message. |
Inherited Constants |
||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited functions |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Public constructors
Public functions
fungetBackgroundDrawable(): Drawable?
Returns the background drawable. May be null if a default is used.
funonCreateView(
inflater: LayoutInflater!,
container: ViewGroup?,
savedInstanceState: Bundle!
): View?
funsetBackgroundDrawable(drawable: Drawable?): Unit
Sets a drawable for the fragment background.
Parameters | |
---|---|
drawable: Drawable? |
The drawable used for the background. |
funsetButtonClickListener(clickListener: View.OnClickListener?): Unit
Set the button click listener.
Parameters | |
---|---|
clickListener: View.OnClickListener? |
The click listener for the button. |
funsetButtonText(text: String?): Unit
Sets the button text.
Parameters | |
---|---|
text: String? |
The button text. |
funsetDefaultBackground(translucent: Boolean): Unit
Sets the default background.
Parameters | |
---|---|
translucent: Boolean |
True to set a translucent background. |
funsetImageDrawable(drawable: Drawable?): Unit
Sets the drawable to be used for the error image.
Parameters | |
---|---|
drawable: Drawable? |
The drawable used for the error image. |
funsetMessage(message: CharSequence?): Unit
Sets the error message.
Parameters | |
---|---|
message: CharSequence? |
The error message. |