LayoutInflaterCompat

Added in 1.1.0

class LayoutInflaterCompat


Helper for accessing features in LayoutInflater.

Summary

Public functions

java-static LayoutInflaterFactory!

This function is deprecated.

Use setFactory2 to set and getFactory2 to get the factory.

java-static Unit

This function is deprecated.

Use setFactory2 instead to set and getFactory2 to get the factory.

java-static Unit

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

Public functions

getFactory

Added in 1.1.0
Deprecated in 1.1.0
java-static fun getFactory(inflater: LayoutInflater!): LayoutInflaterFactory!

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).

Returns
LayoutInflaterFactory!

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

See also
getFactory

setFactory

Added in 1.1.0
Deprecated in 1.1.0
java-static fun setFactory(inflater: LayoutInflater, factory: LayoutInflaterFactory): Unit

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.

See also
setFactory

setFactory2

Added in 1.1.0
java-static fun setFactory2(inflater: LayoutInflater, factory: LayoutInflater.Factory2): Unit

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.

See also
setFactory2