In my application I need ImageView with rounded corners, So I have set ImageView inside framelayout, When I set the scaleType centerCrop, the image set inside the ImageView is stretching in first loading and, again refreshing the page the image is not stretching and set with round corners.How can I avoid the first stretching.Thanks in advance
Here is the XML code
<FrameLayout
android:id="@+id/imageframe"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/image"
android:layout_width="@dimen/dp_80"
android:layout_height="@dimen/dp_80"
android:background="@drawable/image_rounded"
android:src="@drawable/dummypost1"
android:scaleType="centerCrop"/>
<ImageView
android:src="@drawable/image_rounded"
android:layout_width="@dimen/dp_80"
android:layout_height="@dimen/dp_80"
android:scaleType="centerCrop"/>
</FrameLayout>