You will need to create 4 images. mdpi will be the base, mdpi is 100%. Others follow this formula:

Put each image in the corresponding resources folder, drawable-ldpi , drawable-mdpi , drawable-hdpi , drawable-xhdpi . Android will choose the appropriate option depending on the current device.
Then in your layout just wrap_content your width and height, there is no need to specify a fixed size:
<ImageView android:src="@drawable/my_image" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
source share