protected virtual View CommonInflate(int resourceId, ViewGroup viewGroup, IMvxLayoutInfactorFactory factory, bool attachToRoot) { using (new MvxBindingContextStackRegistration <IMvxAndroidBindingContext>(this)) { var layoutInflator = _layoutInflater.LayoutInflater; using (var clone = layoutInflator.CloneInContext(_droidContext)) { using (factory) { if (factory != null) { clone.Factory = factory; } var toReturn = clone.Inflate(resourceId, viewGroup, attachToRoot); if (factory != null) { RegisterBindingsWithClearKey(toReturn, factory.CreatedBindings); } return(toReturn); } } } }
protected virtual View CommonInflate(int resourceId, ViewGroup viewGroup, IMvxLayoutInfactorFactory factory, bool attachToRoot) { using (new MvxBindingContextStackRegistration<IMvxAndroidBindingContext>(this)) { var layoutInflator = _layoutInflater.LayoutInflater; using (var clone = layoutInflator.CloneInContext(_droidContext)) { using (factory) { if (factory != null) { clone.Factory = factory; } var toReturn = clone.Inflate(resourceId, viewGroup, attachToRoot); if (factory != null) { RegisterBindingsWithClearKey(toReturn, factory.CreatedBindings); } return toReturn; } } } }
protected virtual View CommonInflate(int resourceId, ViewGroup viewGroup, IMvxLayoutInfactorFactory factory) { return(CommonInflate(resourceId, viewGroup, factory, viewGroup != null)); }
protected virtual View CommonInflate(int resourceId, ViewGroup viewGroup, IMvxLayoutInfactorFactory factory) { return CommonInflate(resourceId, viewGroup, factory, viewGroup != null); }