Search in sources :

Example 1 with ItemLayoutSelector

use of org.robobinding.widget.adapterview.ItemLayoutSelector 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;
}
Also used : MultiItemLayoutSelector(org.robobinding.widget.adapterview.MultiItemLayoutSelector) ItemLayoutSelector(org.robobinding.widget.adapterview.ItemLayoutSelector) SingleItemLayoutSelector(org.robobinding.widget.adapterview.SingleItemLayoutSelector) ItemBinder(org.robobinding.ItemBinder) RefreshableItemPresentationModel(org.robobinding.itempresentationmodel.RefreshableItemPresentationModel) ItemLayoutBinder(org.robobinding.widget.adapterview.ItemLayoutBinder)

Aggregations

ItemBinder (org.robobinding.ItemBinder)1 RefreshableItemPresentationModel (org.robobinding.itempresentationmodel.RefreshableItemPresentationModel)1 ItemLayoutBinder (org.robobinding.widget.adapterview.ItemLayoutBinder)1 ItemLayoutSelector (org.robobinding.widget.adapterview.ItemLayoutSelector)1 MultiItemLayoutSelector (org.robobinding.widget.adapterview.MultiItemLayoutSelector)1 SingleItemLayoutSelector (org.robobinding.widget.adapterview.SingleItemLayoutSelector)1