Simple library that enables to resize an ImageView to width-ratio e.g 0.75 of width
<com.cardova.ratioimageview.RatioImageView
android:layout_width="100dp"
android:layout_height="wrap_content"
android:src="@color/colorPrimary"
app:ratio="2.0"
/>
app:ratio="2.0"
- ratio indicates the height multiplier of the ImageView