Most visited

Recently visited

BrowseFragment.MainFragmentAdapterRegistry

public static final class BrowseFragment.MainFragmentAdapterRegistry
extends Object

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


注册表类维护Row子类到BrowseFragment.FragmentFactory的映射。 BrowseRowFragment自动注册BrowseFragment.ListRowFragmentFactory以处理ListRow 开发人员可以覆盖这一点,如果他们想使用自定义片段,他们可以注册BrowseFragment.FragmentFactoryPageRow

Summary

Public constructors

BrowseFragment.MainFragmentAdapterRegistry()

Public methods

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

Inherited methods

From class java.lang.Object

Public constructors

BrowseFragment.MainFragmentAdapterRegistry

BrowseFragment.MainFragmentAdapterRegistry ()

Public methods

createFragment

Fragment createFragment (Object item)

Parameters
item Object
Returns
Fragment

registerFragment

void registerFragment (Class rowClass, 
                FragmentFactory factory)

Parameters
rowClass Class
factory FragmentFactory

Hooray!