ImageView imageView = findViewById(R.id.my_image_view); int imageWidth = imageView.getWidth();In this example, a new instance of the ImageView class is created and assigned to the variable `imageView`. The `getWidth()` method is then called on this instance to retrieve the width of the image displayed inside the ImageView. The resulting value is stored in the variable `imageWidth`. The android.widget package is part of the Android framework and provides a collection of UI components that can be used to build Android applications. The android.widget.ImageView class is part of this package and is used for displaying images in an Android application.