Kotlin: Draggable ImageView

There are multiple ways to implement a draggable ImageView in Kotlin for Android. Here’s one way to get started:

For simplicity, use the design tab on your main_activity_xml file to drag a new ImageView to your main activity: