Most visited

Recently visited

LayoutInflaterFactory

public interface LayoutInflaterFactory

android.support.v4.view.LayoutInflaterFactory


LayoutInflaterCompat.setFactory()一起LayoutInflaterCompat.setFactory() 提供与LayoutInflater.Factory2相同的API。

Summary

Public methods

abstract View onCreateView(View parent, String name, Context context, AttributeSet attrs)

钩子可以提供从LayoutInflater膨胀时调用的钩子。

Public methods

onCreateView

View onCreateView (View parent, 
                String name, 
                Context context, 
                AttributeSet attrs)

钩子可以提供从LayoutInflater膨胀时调用的钩子。 您可以使用它来自定义XML布局文件中可用的标签名称。

Parameters
parent View: The parent that the created view will be placed in; note that this may be null.
name String: Tag name to be inflated.
context Context: The context the view is being created in.
attrs AttributeSet: Inflation attributes as specified in XML file.
Returns
View View Newly created view. Return null for the default behavior.

Hooray!