public void setRange(final T minSelected, final T maxSelected) {
        final float minValue = Math.max(itemToPosition.containsKey(minSelected) ? itemToPosition.get(minSelected) : 0, 0);
        final float maxValue = Math.min(itemToPosition.containsKey(maxSelected) ? itemToPosition.get(maxSelected) : this.items.size() - 1, this.items.size() - 1);
        binding.sliderInternal.setValues(minValue, maxValue);
    }
View displays and maintains a slider where user can select single or range of items from a sorted item list.
main/src/main/java/cgeo/geocaching/ui/ItemRangeSlider.java