Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

LeanbackPreferenceFragmentCompat

abstract class LeanbackPreferenceFragmentCompat : BaseLeanbackPreferenceFragmentCompat
kotlin.Any
   ↳ androidx.fragment.app.Fragment
   ↳ androidx.preference.PreferenceFragmentCompat
   ↳ androidx.leanback.preference.BaseLeanbackPreferenceFragmentCompat
   ↳ androidx.leanback.preference.LeanbackPreferenceFragmentCompat

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

Inherited constants
Public constructors

Public methods
open View?
onCreateView(@NonNull inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?)

open Unit
onViewCreated(@NonNull view: View, savedInstanceState: Bundle?)

open Unit

Set the title to be shown above the preference list

Inherited functions