use of org.robobinding.widget.adapterview.ItemLayoutBinder in project RoboBinding by RoboBinding.
the class DataSetAdapterBuilder method build.
public DataSetAdapter build() {
ItemBinder itemBinder = bindingContext.createItemBinder();
ItemLayoutBinder itemLayoutBinder = new ItemLayoutBinder(itemBinder, itemPredefinedMappings);
ItemLayoutSelector itemLayoutSelector = buildItemLayoutSelector();
DataSetAdapter dataSetAdapter = new DataSetAdapter(valueModelWithPreInitializeViews(), itemLayoutBinder, itemLayoutSelector, new ViewTags<RefreshableItemPresentationModel>(ITEM_PRESENTATION_MODEL_KEY), bindingContext.shouldPreInitializeViews());
registerPropertyChangeListener(dataSetAdapter);
return dataSetAdapter;
}
Aggregations