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

前端 未结 12 1864
名媛妹妹
名媛妹妹 2021-01-30 10:19

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条回答
  • 2021-01-30 10:31

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

    0 讨论(0)
  • 2021-01-30 10:31

    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!

    0 讨论(0)
  • 2021-01-30 10:32

    Right click on drawable folder_new_file- click on advanced button_ link to file in the file system_ then click on browse. finish

    0 讨论(0)
  • 2021-01-30 10:33

    When inserting an image into the drawable folders, another import point in addition to the "no capital letters" rule is that the image name cannot contain dashes or other special characters.

    0 讨论(0)
  • 2021-01-30 10:36

    Just copy the image and paste into Eclipse in the res/drawable directory. Note that the image name should be in lowercase, otherwise it will end up with an error.

    0 讨论(0)
  • 2021-01-30 10:37

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

    0 讨论(0)
提交回复
热议问题