private <T> void applyItemView(final SimpleitemlistItemViewBinding itemBinding, final T value, final ItemGroup<T, Object> itemGroup, final Func5<T, ItemGroup<T, Object>, Context, View, ViewGroup, View> viewMapper) {
            final View currentView = itemBinding.itemViewAnchor.getChildAt(0);
            final View newView = viewMapper.call(value, itemGroup, getContext(), currentView, itemBinding.itemViewAnchor);

            if (currentView != newView) {
                itemBinding.itemViewAnchor.removeAllViews();
                itemBinding.itemViewAnchor.addView(newView);
            }
        }
This view displays and maintains a list of simple view items, mainly for (single or multiple)
item selection lists. It provides special support for grouping, filtering and "select all" for such
lists.
main/src/main/java/cgeo/geocaching/ui/SimpleItemListView.java