Click here to Skip to main content
15,887,342 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, i want to put a picture into my Android App. But somehow there isn't a drawable folder where the picture should be given. What can I do? Or is there another possibility to put a picture in?
<ImageButton
       android:src="@android:drawable/ic_menu_gallery"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:id="@+id/imageButton1" />


What I have tried:

I looked for this problem in the internet, but couldn't find anything..
Posted
Comments
David Crow 24-Jul-18 15:29pm    
If it's a picture in your project's drawable folder, it should be:

android:src="@drawable/ic_menu_gallery"


If the folder does not exist, you simply need to create it (and add a picture to it). What IDE are you using?
Member 13917889 25-Jul-18 2:10am    
im using visual studio. so i just have to create an folder "drawable" and put the picture in it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900