The in built image in android studio is being displayed but if i am using any other image (in png or jpg),it is not being displayed(only white screen is being shown)

I have used image view tag and added the image using src attribute.

This is the code i tried.

<ImageView
        android:src="@drawable/party"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scaleType="centerCrop" />

Can u please suggest the changes for the expected solution? Thanks in advance

0 Answers