ImageView myImageView = findViewById(R.id.my_image_view); myImageView.clearAnimation();In this example, we retrieve a reference to an ImageView object using its ID and then call the clearAnimation() method on it. This is a method provided by the Android SDK, which belongs to the android.widget package.