Question and answer is powered by AnsPress.io
In my android apps, I want to add an image. How can I add an image in Android?
Copy the image and open android studio and open your project and choose drawable -> right-click and Paste.
Apply this code:
<ImageView android:id="@+id/image" android:layout_width="match_parent" android:layout_height="150dp" android:src="@drawable/your_image_name" />