Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.
added in version 24.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

BrowseSupportFragment.MainFragmentAdapterRegistry

public static final class BrowseSupportFragment.MainFragmentAdapterRegistry
extends Object

java.lang.Object
   ↳ android.support.v17.leanback.app.BrowseSupportFragment.MainFragmentAdapterRegistry


Registry class maintaining the mapping of Row subclasses to BrowseSupportFragment.FragmentFactory. BrowseRowFragment automatically registers BrowseSupportFragment.ListRowFragmentFactory for handling ListRow. Developers can override that and also if they want to use custom fragment, they can register a custom BrowseSupportFragment.FragmentFactory against PageRow.

Summary

Public constructors

BrowseSupportFragment.MainFragmentAdapterRegistry()

Public methods

Fragment createFragment(Object item)
void registerFragment(Class rowClass, FragmentFactory factory)

Inherited methods

From class java.lang.Object

Public constructors

BrowseSupportFragment.MainFragmentAdapterRegistry

added in version 24.1.0
BrowseSupportFragment.MainFragmentAdapterRegistry ()

Public methods

createFragment

added in version 24.1.0
Fragment createFragment (Object item)

Parameters
item Object

Returns
Fragment

registerFragment

added in version 24.1.0
void registerFragment (Class rowClass, 
                FragmentFactory factory)

Parameters
rowClass Class

factory FragmentFactory