+ 4

how can we insert a picture in my application in android studio

mobile application development

16th Nov 2016, 2:21 PM
jacob limbi
jacob limbi - avatar
2 odpowiedzi
+ 2
You need an ImageView You can define it via XML and proceed with the settings with Java. depending where your image is located, you can use different methods to retrieve it. Check out this link: https://developer.android.com/reference/android/widget/ImageView.html
16th Nov 2016, 2:40 PM
Arsal Ali
Arsal Ali - avatar
+ 2
First put your image on the src > drawables (on left side of android studio). Then on your layout you put an ImageView and on his setting you have "src" or "background " you can choose what you want, I recommend background. Hope it helps!
16th Nov 2016, 2:41 PM
João Lourenço