Example usage for android.view LayoutInflater setFactory

List of usage examples for android.view LayoutInflater setFactory

Introduction

In this page you can find the example usage for android.view LayoutInflater setFactory.

Prototype

public void setFactory(Factory factory) 

Source Link

Document

Attach a custom Factory interface for creating views while using this LayoutInflater.

Usage

From source file:com.mobilesolutionworks.android.managedview.test.DemoInFragment.java

@Override
public LayoutInflater getLayoutInflater(Bundle savedInstanceState) {
    LayoutInflater inflater = super.getLayoutInflater(savedInstanceState);
    inflater = inflater.cloneInContext(inflater.getContext());

    inflater.setFactory(this);
    return inflater;
}