public interface LayoutInflaterFactory
android.support.v4.view.LayoutInflaterFactory |
与LayoutInflaterCompat.setFactory()
一起LayoutInflaterCompat.setFactory()
。 提供与LayoutInflater.Factory2
相同的API。
Public methods |
|
---|---|
abstract View |
onCreateView(View parent, String name, Context context, AttributeSet attrs) 钩子可以提供从LayoutInflater膨胀时调用的钩子。 |
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. |