public SimpleItemListModel<T> setDisplayViewMapper(@LayoutRes final int layoutResId, final Action3<T, ItemGroup<T, Object>, View> fillView, final BiFunction<T, ItemGroup<T, Object>, String> textFilterMapper) {
        if (layoutResId != 0 && fillView != null) {
            setDisplayViewMapper((item, itemGroup, ctx, view, viewGroup) -> {
                //get or create view
                final View realView = view == null ? LayoutInflater.from(ctx).inflate(layoutResId, viewGroup, false) : view;
                //fill view
                fillView.call(item, itemGroup, realView);
                //return view
                return realView;
            }, textFilterMapper);
        }

        return this;
    }
Sets a view provider for items based on a layout
main/src/main/java/cgeo/geocaching/ui/SimpleItemListModel.java