Search in sources :

Example 1 with PredefinedPendingAttributesForView

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);
    }
}
Also used : PendingAttributesForView(org.robobinding.PendingAttributesForView) PredefinedPendingAttributesForView(org.robobinding.PredefinedPendingAttributesForView) PredefinedPendingAttributesForView(org.robobinding.PredefinedPendingAttributesForView)

Example 2 with PredefinedPendingAttributesForView

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);
}
Also used : PendingAttributesForView(org.robobinding.PendingAttributesForView) PredefinedPendingAttributesForView(org.robobinding.PredefinedPendingAttributesForView) PredefinedPendingAttributesForView(org.robobinding.PredefinedPendingAttributesForView) PendingAttributesForView(org.robobinding.PendingAttributesForView) View(android.view.View) PredefinedPendingAttributesForView(org.robobinding.PredefinedPendingAttributesForView)

Example 3 with 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);
}
Also used : PendingAttributesForView(org.robobinding.PendingAttributesForView) View(android.view.View) PredefinedPendingAttributesForView(org.robobinding.PredefinedPendingAttributesForView)

Aggregations

PendingAttributesForView (org.robobinding.PendingAttributesForView)3 PredefinedPendingAttributesForView (org.robobinding.PredefinedPendingAttributesForView)3 View (android.view.View)2