public CoordinatesFormatSwitcher setView(final TextView view) {
        this.view = view;
        this.view.setOnClickListener(v -> {
            position = (position + 1) % availableFormats.length;
            renderView();
        });
        renderView();
        return this;
    }
view click listener to automatically switch different coordinate formats
main/src/main/java/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java