An Android example with a custom view with pan event.