Android/Eclipse: how can I add an image in the res

2019-03-08 02:53发布

I am completely new with Android/Eclipse. I can't figure out how to add an image in the /res/drawable folder of my Android Eclipse project.

12条回答
闹够了就滚
2楼-- · 2019-03-08 03:29

You just need to copy/cut and paste the images into drawable folder using windows/mac file explorer

To refresh the workspace follow the steps mentioned in this question Eclipse: How do i refresh an entire workspace? F5 doesn't do it

If that does not work you might wanna restart eclispe

查看更多
Animai°情兽
3楼-- · 2019-03-08 03:30

Do you want to add an image from your computer? Just right click the folder in Eclipse and click Import

查看更多
迷人小祖宗
4楼-- · 2019-03-08 03:30

Open folder path of Android application, open src folder then Add your image in /res/drawable folder

查看更多
趁早两清
5楼-- · 2019-03-08 03:32

Copy the image CTRL + C then in Eclipse select drawable folder, right click -> Paste

查看更多
贼婆χ
6楼-- · 2019-03-08 03:33

Thanks for the information .It helped me out as my project was somehow not visible in workspace therefore I had to insert the image from ECLIPSE IDE. Also another way to do it is: The image to be inserted should be copied ctrl+c and then right click on the drawable folder and PASTE it. The image comes in drawable folder using ECLIPSE IDE. You can use the image as an icon of the application using Manifest File-android:icon="@drawable/image_name"

查看更多
三岁会撩人
7楼-- · 2019-03-08 03:38

For Android Studio:

  1. Right click on res, new Image Asset

  2. On Asset type choose Action Bar and Tab Icons

  3. Choose the image path

  4. Give your image a name in Resource name

  5. Next->Finish

The image will be saved in the /res/drawable folder!

查看更多
登录 后发表回答