Most visited

Recently visited

BrowseSupportFragment.MainFragmentAdapterRegistry

public static final class BrowseSupportFragment.MainFragmentAdapterRegistry
extends Object

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


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

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

BrowseSupportFragment.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!