I have an Android Application, where I have an ImageView, I need to keep the size constant, there can be various images that I need to put into this ImageView
ImageView
You can also try this, suppose if you want to make a back image button and you have "500x500 png" and want it to fit in small button size.
add this line of code to your Imageview.
android:scaleType="fitXY"
EXAMPLE: