@Override
        public int getItemViewType(final int position) {
            //For all types the same item is created.
            //However we have to make sure that items are reused only within their type
            //--> this is what this function takes care of by assigning unique view types to them
            final ListItem itemData = getItems().get(position);
            return itemData.type.ordinal();
        }
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