在Android Studio中将图片复制到drawable文件夹后显示错误。

huangapple go评论107阅读模式
英文:

Picture showing error after being copied into drawable in android studio

问题

我想添加注册按钮的图像,但它不支持...我复制了第一张图像并粘贴到drawable中,完美运行,然后我尝试复制第二张图像,但它不显示。问题在哪里?我该如何解决?

我尝试了不同的图像,但问题仍然发生...我应该尝试一次性复制它们吗?

英文:

在Android Studio中将图片复制到drawable文件夹后显示错误。

As you can see I want to add the register button image but it's not supporting....I copied the first image and pasted in drawable worked perfectly then I tried to copy the second one but its not showing. what's the problem? how should I solve this?

I tried different images but same problem occurs...should i try to copy them at once or what?

答案1

得分: 1

尝试将您的图像文件重命名。
将其转换为小写,并将“-”替换为“_”。
图像的名称可能导致错误。
例如,将其命名为register_button_black.png

英文:

try to rename your Image-file.
make it lowercase and replace the '-' by '_'.
There is an error to the image which is caused by the name.
f.e. name it like register_button_black.png.

huangapple
  • 本文由 发表于 2023年7月31日 23:51:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/76805231.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定