Adding image to my app

49 Views Asked by At

What to type in the src box to add an image into an app in android?

I was developing my first app and wanted to add images. I double clicked the image button on the screen of the mobile and src box showed up. I know I can not fill the box with url directly. What should I fill in?

1

There are 1 best solutions below

3
Hespen On BEST ANSWER

Put the images in your Drawable folder (lowercase name), for example image.png Then in the XML you can write android:src="@drawable/image"