Lines Matching refs:factory
243 * name. If the factory returns a View, add that to the hierarchy. If it
251 * Return the current {@link Factory2}. Returns null if no factory is set
252 * or the set factory does not implement the {@link Factory2} interface.
254 * name. If the factory returns a View, add that to the hierarchy. If it
264 * after setting, you can not change the factory. This is
265 * called on each element name as the xml is parsed. If the factory returns
267 * factory default {@link #onCreateView} method is called.
270 * LayoutInflater and want to add your own factory to it, use
273 * merge your own factory with whatever factory the original instance is
276 public void setFactory(Factory factory) {
278 throw new IllegalStateException("A factory has already been set on this LayoutInflater");
280 if (factory == null) {
281 throw new NullPointerException("Given factory can not be null");
285 mFactory = factory;
287 mFactory = new FactoryMerger(factory, null, mFactory, mFactory2);
295 public void setFactory2(Factory2 factory) {
297 throw new IllegalStateException("A factory has already been set on this LayoutInflater");
299 if (factory == null) {
300 throw new NullPointerException("Given factory can not be null");
304 mFactory = mFactory2 = factory;
306 mFactory = new FactoryMerger(factory, factory, mFactory, mFactory2);
313 public void setPrivateFactory(Factory2 factory) {
314 mPrivateFactory = factory;