use of org.robobinding.PredefinedPendingAttributesForView in project RoboBinding by RoboBinding.
the class BindingViewInflater method addPredefinedPendingAttributesForViewGroup.
private void addPredefinedPendingAttributesForViewGroup(Collection<PredefinedPendingAttributesForView> predefinedPendingAttributesForViewGroup, View rootView) {
for (PredefinedPendingAttributesForView predefinedPendingAttributesForView : predefinedPendingAttributesForViewGroup) {
PendingAttributesForView pendingAttributesForView = predefinedPendingAttributesForView.createPendingAttributesForView(rootView);
resolveAndAddViewBindingAttributes(pendingAttributesForView);
}
}
use of org.robobinding.PredefinedPendingAttributesForView in project RoboBinding by RoboBinding.
the class BindingViewInflaterTest method createAPredefinedPendingAttributesForView.
private Collection<PredefinedPendingAttributesForView> createAPredefinedPendingAttributesForView() {
PredefinedPendingAttributesForView predefinedPendingAttributesForView = mock(PredefinedPendingAttributesForView.class);
PendingAttributesForView pendingAttributesForView = mock(PendingAttributesForView.class);
when(predefinedPendingAttributesForView.createPendingAttributesForView(any(View.class))).thenReturn(pendingAttributesForView);
return Lists.newArrayList(predefinedPendingAttributesForView);
}
use of org.robobinding.PredefinedPendingAttributesForView in project RoboBinding by RoboBinding.
the class BindingViewInflater method inflateView.
public InflatedViewWithRoot inflateView(int layoutId, Collection<PredefinedPendingAttributesForView> predefinedPendingAttributesForViewGroup, ViewGroup root, boolean attachToRoot) {
resolvedBindingAttributesForChildViews = Lists.newArrayList();
errors = new ViewHierarchyInflationErrorsException();
View rootView = nonBindingViewInflater.inflate(layoutId, root, attachToRoot);
addPredefinedPendingAttributesForViewGroup(predefinedPendingAttributesForViewGroup, rootView);
return createInflatedViewWithRoot(rootView);
}
Aggregations