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.FragmentFactory
对PageRow
的定制。
摘要(Summary)
Public constructors
BrowseSupportFragment.MainFragmentAdapterRegistry
BrowseSupportFragment.MainFragmentAdapterRegistry ()
公共方法(Public methods)
createFragment
Fragment createFragment (Object item)
参数(Parameters) |
item |
Object
|
registerFragment
void registerFragment (Class rowClass,
FragmentFactory factory)
参数(Parameters) |
rowClass |
Class
|
factory |
FragmentFactory
|