Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

LayoutInflaterCompat

public final class LayoutInflaterCompat
extends Object

java.lang.Object
   ↳ androidx.core.view.LayoutInflaterCompat


Helper for accessing features in LayoutInflater.

Summary

Public methods

static LayoutInflaterFactory getFactory(LayoutInflater inflater)

This method is deprecated. Use setFactory2(LayoutInflater, LayoutInflater.Factory2) to set and LayoutInflater.getFactory2() to get the factory.

static void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory)

This method is deprecated. Use setFactory2(LayoutInflater, LayoutInflater.Factory2) instead to set and LayoutInflater.getFactory2() to get the factory.

static void setFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory)

Attach a custom LayoutInflater.Factory2 for creating views while using this LayoutInflater.

Inherited methods

Public methods

getFactory

public static LayoutInflaterFactory getFactory (LayoutInflater inflater)

This method is deprecated.
Use setFactory2(LayoutInflater, LayoutInflater.Factory2) to set and LayoutInflater.getFactory2() to get the factory.

Return the current LayoutInflaterFactory (or null). This is called on each element name. If the factory returns a View, add that to the hierarchy. If it returns null, proceed to call onCreateView(name).

Parameters
inflater LayoutInflater

Returns
LayoutInflaterFactory The LayoutInflaterFactory associated with the LayoutInflater. Will be null if the inflater does not have a LayoutInflaterFactory but a raw LayoutInflater.Factory.

setFactory

public static void setFactory (LayoutInflater inflater, 
                LayoutInflaterFactory factory)

This method is deprecated.
Use setFactory2(LayoutInflater, LayoutInflater.Factory2) instead to set and LayoutInflater.getFactory2() to get the factory.

Attach a custom Factory interface for creating views while using this LayoutInflater. This must not be null, and can only be set once; after setting, you can not change the factory.

Parameters
inflater LayoutInflater

factory LayoutInflaterFactory

setFactory2

public static void setFactory2 (LayoutInflater inflater, 
                LayoutInflater.Factory2 factory)

Attach a custom LayoutInflater.Factory2 for creating views while using this LayoutInflater. This must not be null, and can only be set once; after setting, you can not change the factory.

Parameters
inflater LayoutInflater

factory LayoutInflater.Factory2