LeanbackPreferenceFragment
abstract class LeanbackPreferenceFragment : BaseLeanbackPreferenceFragment
This fragment provides a fully decorated leanback-style preference fragment, including a list background and header.
The following sample code shows a simple leanback preference fragment that is populated from a resource. The resource it loads is:
The fragment needs only to implement onCreatePreferences(Bundle, String)
to populate the list of preference objects:
Summary
Public methods
|
open View! |
|
open Unit |
|
open Unit |
Set the title to be shown above the preference list
|
Public constructors
<init>
LeanbackPreferenceFragment()
Public methods
onViewCreated
open fun onViewCreated(view: View!, savedInstanceState: Bundle!): Unit
setTitle
open fun setTitle(title: CharSequence!): Unit
Set the title to be shown above the preference list