Search in sources :

Example 1 with ViewManager

use of com.tmall.wireless.vaf.framework.ViewManager in project Tangram-Android by alibaba.

the class PojoAdapterBuilder method newAdapter.

@Override
public PojoGroupBasicAdapter newAdapter(@NonNull final Context context, @NonNull final VirtualLayoutManager layoutManager, @NonNull final ServiceManager serviceManager) {
    BaseCellBinderResolver componentBinderResolver = serviceManager.getService(BaseCellBinderResolver.class);
    BaseCardBinderResolver cardBinderResolver = serviceManager.getService(BaseCardBinderResolver.class);
    MVHelper mvHelper = serviceManager.getService(MVHelper.class);
    ViewManager viewManager = serviceManager.getService(ViewManager.class);
    final PojoGroupBasicAdapter adapter = new PojoGroupBasicAdapter(context, layoutManager, componentBinderResolver, cardBinderResolver, mvHelper, viewManager);
    return adapter;
}
Also used : MVHelper(com.tmall.wireless.tangram.MVHelper) ViewManager(com.tmall.wireless.vaf.framework.ViewManager)

Aggregations

MVHelper (com.tmall.wireless.tangram.MVHelper)1 ViewManager (com.tmall.wireless.vaf.framework.ViewManager)1